Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp783038pxb; Wed, 15 Sep 2021 13:07:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXlNqmWd2CIDRtb85XnO9ET5FeFMzxyjPxfPJeoD6GIOED4cybPpH7yDsKznEGM1WHRA+Z X-Received: by 2002:aa7:c782:: with SMTP id n2mr1980822eds.77.1631736468806; Wed, 15 Sep 2021 13:07:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631736468; cv=none; d=google.com; s=arc-20160816; b=fFqA61xxUhuCjjyTKdK2wpZ2HPs43SU0o5vs0UjSQHp5ajYSgsdol8L29vwOKWAsYg IjWPKxEfFDF9/jnMANe6wdwkqEby3OBLl0TbGAXZkaEh9GnjWTzj2kYo4PNaY7Z+EwTU PkpJhdZas9zetiXD60ExnTtGRYHlgZ8Rv6SlwYY0rjB2HSybXiPjwTq9nNzGp27+Y2bt bAHdRB72QdYybrufjEoXjwB8sbUCgN/ydsGigVCMdhUm7pDyYutUwevJcMAJURWyNd2F s5/+iPHicVLuPgnhJDwlVLoJ8be9xvbsdt2FgNa+Jh4TvdLsv+/4PlMSqbhMI1QDsfCx a1tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hW/OeF+2xThCoBB4pO2KSop//D4gyfmqL/cgUEWN854=; b=xzI2VOfb7rkyLZKi+2HHab4lpo7eUxw0ZfWW9JOeWrOlfCAJ45i1UzYvfwoDQT8prY FQPcaMkj+Pls0EVQ2bb346jMaHRFdRKrXwCB9vvubXtFf1Xvqcw3201s3nvGSC9j12i9 6DWiwJZLDT2tbGR11V85tMexxwT8Kp1coozMBO9ltrZ6V035lTN8UzUk6k8MFMGV5KsG d1Hk7OjJhbyjqr7E9ebNsxgi+SKUAkRHvslMqQ01pwABMTDLluPkF2dqrmAxSAJZ1gzg UP7tDRzevEbkJst9XJl5g5bcbe9u/FjanCvxhRCJynHOQswZyJTbw3TmhxuLnDL0BobE BUqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZeZC9y8W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o16si870739edi.484.2021.09.15.13.07.23; Wed, 15 Sep 2021 13:07:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZeZC9y8W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231766AbhIOUGz (ORCPT + 99 others); Wed, 15 Sep 2021 16:06:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231777AbhIOUGt (ORCPT ); Wed, 15 Sep 2021 16:06:49 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1274CC061574 for ; Wed, 15 Sep 2021 13:05:30 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id i6so7971796edu.1 for ; Wed, 15 Sep 2021 13:05:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hW/OeF+2xThCoBB4pO2KSop//D4gyfmqL/cgUEWN854=; b=ZeZC9y8WTuQ5xOUUN140j8hngeIb/TNzOMqzz0d7m3aBDsc50IGyYclfdfQx4gY8bE wsAMqtQSlQg8T6q52pvOflBelYePPKb852XpyB2EPiKnWwU1C38V9bESgIZqnrWJkE7L 5iEEFpX7edlN+JQ/YWHU19QaTX3dQPB7SQ4iM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hW/OeF+2xThCoBB4pO2KSop//D4gyfmqL/cgUEWN854=; b=VIHFdxyQP02Kb6xE1ziZTd7zVrq3+Kw439kyYdmrgT16zGaurFrRkifXH0kl6OcG1F Imdqx5wqWL1/gnK6YIrI7r4RU9kpJTcPN7RibasAiIqWCHqYnlaIn9kNuYSKvuqM9XYt ziaU571xJVkk+dsVGgegAsx94P/hMh65WqPLEMk5YYNAMpa0BR8z5bEkSJhYBtz07548 ZpG8MdtLaVguUxMQzlV58/3qWGxr4SVMG2y3c1R+lOMrFSJitsug+apPLpTl8ibV1gCX qKNJ9Z7q6fo3C5mjV7V4CXc0GuU0g6TVFYoQZZwStDikxeNVPhnG2AU/BrbM1RFTHveP L/Eg== X-Gm-Message-State: AOAM531NOBaZ1nKHaCLxxSd9owqVdYyljHhtmjutvV2BQ3spRB/giAOl CamH1TlZZjteeMaqhmYXdQdAD3c1lX5u7g== X-Received: by 2002:a17:906:1f81:: with SMTP id t1mr1948581ejr.510.1631736328496; Wed, 15 Sep 2021 13:05:28 -0700 (PDT) Received: from alco.lan (80.71.134.83.ipv4.parknet.dk. [80.71.134.83]) by smtp.gmail.com with ESMTPSA id m17sm393336ejn.108.2021.09.15.13.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Sep 2021 13:05:28 -0700 (PDT) From: Ricardo Ribalda To: Laurent Pinchart , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, hn.chen@sunplusit.com Cc: Ricardo Ribalda Subject: [PATCH 1/3] media: uvc: Extend documentation of uvc_video_clock_decode() Date: Wed, 15 Sep 2021 22:05:23 +0200 Message-Id: <20210915200525.448941-2-ribalda@chromium.org> X-Mailer: git-send-email 2.33.0.309.g3052b89438-goog In-Reply-To: <20210915200525.448941-1-ribalda@chromium.org> References: <20210915200525.448941-1-ribalda@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make a explicit reference to uvc 1.5, explaining how the algorithm supports the different behaviour of uvc 1.1 and 1.5. Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_video.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/usb/uvc/uvc_video.c b/drivers/media/usb/uvc/uvc_video.c index e16464606b14..77f4090f27d2 100644 --- a/drivers/media/usb/uvc/uvc_video.c +++ b/drivers/media/usb/uvc/uvc_video.c @@ -505,6 +505,9 @@ uvc_video_clock_decode(struct uvc_streaming *stream, struct uvc_buffer *buf, /* To limit the amount of data, drop SCRs with an SOF identical to the * previous one. + * This filtering is also needed for supporting UVC 1.5. Where all the + * data packages of the same frame contains the same sof. In that case + * only the first one will match the host_sof. */ dev_sof = get_unaligned_le16(&data[header_size - 2]); if (dev_sof == stream->clock.last_sof) -- 2.33.0.309.g3052b89438-goog