Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7243434rwl; Fri, 30 Dec 2022 05:52:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXtmPYNTEgDDUHS2rTAMBN+CaLNR5dY0VKwgTUVz/yliFhTuF4bg4MOknnRiK8BLQXSAG8LC X-Received: by 2002:a17:906:eb8f:b0:7ae:7e6:3a87 with SMTP id mh15-20020a170906eb8f00b007ae07e63a87mr25146137ejb.41.1672408371730; Fri, 30 Dec 2022 05:52:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672408371; cv=none; d=google.com; s=arc-20160816; b=oV3hCVJ3DkDxwWb1N9AMJL1riaQAmNdnemNpPpDWVWX9RkJw+rWkuvb1EaZlZlvbNo 9u1QjMUDo4vsiAdGvb8rhdgl00qVvL628MkXaghCvalDK4BKHG18rPfDteJOjQdiHr+w IB+ThgT/aAF7fUR7jrDTzo/DIaXK2V3e0q/xFq2ZFT9aCJ73xRdtmjzjmkWY5ArjvytE kuuxjhvOMkj0FgWWPfelFV1+r+sLYheyIWaQ6AyJHE/VsmzHY0EtFaUF42lDnzCDyGed syVTFlXBHLzYlM8XxkMSC0QqFAarr1mbEZUzPOPVqdX9fZXeYN1xtRH4Dx6fSy/bn26J zYzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=n3K2MTZ6kAY42IeLJa1j/GehMFh2zZWS5yC7Ga7xl0g=; b=f7CsKRT3zWKT87mi1/5uvYqhB4S+NV2LFrVnGNsIAzaBU05mMjaa5fsvZ3giUJX47h yHdedTxhTiJY/w56pdJuAT6N3F5Gx3hDu033t0Zz7MM5ly5DiX6xLYFRK6Tv8LGiImoI m1xIov8FTR9JE1rmlbk0LEMK9SZ8fs8Pni3qN1/OCuIyR/bsMTDzX33zvnqQmpTqop3/ UP+rvV+W7KC7PUr06gjUBC4eKiBqOBH6r20YkUdU+2sHlrAgwX8W//PcOBNko+vgcbWF wftgepmInW1XIThlCaBYMf8Zz5M0YptZyoZDXVr/4pi41elGOHiGb3JSY2Pthhm84/gW oBDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="JA/F++lU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn21-20020a17090794d500b007c4f6870a9fsi19847208ejc.554.2022.12.30.05.52.37; Fri, 30 Dec 2022 05:52:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="JA/F++lU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235034AbiL3NhA (ORCPT + 63 others); Fri, 30 Dec 2022 08:37:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbiL3Ng7 (ORCPT ); Fri, 30 Dec 2022 08:36:59 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59844DE8D; Fri, 30 Dec 2022 05:36:58 -0800 (PST) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0BCBE2F5; Fri, 30 Dec 2022 14:36:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1672407416; bh=wv1AV7X/uWKMU9wRGXYtfli0dTrUxZJgNcnxbZIPMXw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JA/F++lUFbYj5/xuzDD3FHhbE5B10JhVIpFjw3sYsQbkEs1PmdzEaIq2/j6I72GQo 3CNbYv9oWbQlzvuQivJ2i/DR8SSFxnka6Os+eSSy2LXUvMvND7ZqtA8ksyuKba3wST QeXWozDmsYuiN1jn1utg0zlDGcZEFmC/SpYQ5yGE= Date: Fri, 30 Dec 2022 15:36:51 +0200 From: Laurent Pinchart To: Ricardo Ribalda Cc: Mauro Carvalho Chehab , "hn.chen" , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND v2 1/8] media: uvc: Extend documentation of uvc_video_clock_decode() Message-ID: References: <20220920-resend-hwtimestamp-v2-0-0d7978a817cc@chromium.org> <20220920-resend-hwtimestamp-v2-1-0d7978a817cc@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220920-resend-hwtimestamp-v2-1-0d7978a817cc@chromium.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ricardo, Thank you for the patch. s/uvc/uvcvideo/ in the subject line. On Fri, Dec 02, 2022 at 06:02:41PM +0100, Ricardo Ribalda wrote: > Make a explicit reference to uvc 1.5, explaining how the algorithm s/a explicit/an explicit/ s/uvc/UVC/ > supports the different behaviour of uvc 1.1 and 1.5. Ditto. > Tested-by: HungNien Chen > 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 170a008f4006..ab56e65ca324 100644 > --- a/drivers/media/usb/uvc/uvc_video.c > +++ b/drivers/media/usb/uvc/uvc_video.c > @@ -517,6 +517,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. * To limit the amount of data, drop SCRs with an SOF identical to the * previous one. This filtering is also needed to support UVC 1.5, where * all the data packets of the same frame contains the same SOF. In that * case only the first one will match the host_sof. Conditionally-Reviewed-by: Laurent Pinchart I can fix this when applying if there's no other need to submit a v3. > */ > dev_sof = get_unaligned_le16(&data[header_size - 2]); > if (dev_sof == stream->clock.last_sof) > -- Regards, Laurent Pinchart