From patchwork Fri Sep 14 18:22:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 10601137 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C20221750 for ; Fri, 14 Sep 2018 18:22:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B10E72BAFB for ; Fri, 14 Sep 2018 18:22:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5A4E2BB01; Fri, 14 Sep 2018 18:22:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FB2C2BAFB for ; Fri, 14 Sep 2018 18:22:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727598AbeINXiT (ORCPT ); Fri, 14 Sep 2018 19:38:19 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:57238 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727065AbeINXiT (ORCPT ); Fri, 14 Sep 2018 19:38:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=BawQ3uHYxzuKoDMtsb/OqfJUv81fqvgJJWyxqPMWeMk=; b=PfZMRHZZsVI6v5nhkVBLPx/SE OyzpbRvjugZmDNam/VLwAzMc41GsTDDRXVALtJLNpjyd3O6dbubyd3Uk4II8ywLQucOodTXlBqDCg Em9R+Mxd3zjDYJU2CdIi6FmdUtdEct7gZsKzl8Jr+gGWnbtijlzyF9KPd8f9HfSYyNNrxzOwuoSD7 FpuS7LhPE4Vcw2n6FscZ8CQHu6a2W+LIC8BkKlP5pDQFuvgSC8gtSk2/s7X/yxm4OrFmZuyFuUD3x jqMVYHN6Zk5A5bR6kfuHXkruDnIf2b+1CkgnusvpmH/Vs1rntonvigw4xWOJ64e9ULuCe0jWb9Huj mW/MflGFQ==; Received: from [179.95.0.169] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0sjm-00039Z-0M; Fri, 14 Sep 2018 18:22:38 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.91) (envelope-from ) id 1g0sjj-0000G1-TW; Fri, 14 Sep 2018 15:22:35 -0300 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab Subject: [PATCH 4/4] media: em28xx: make v4l2-compliance happier by starting sequence on zero Date: Fri, 14 Sep 2018 15:22:34 -0300 Message-Id: <88789c529759c28029c89f41442d745d4dd5aae8.1536949178.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The v4l2-compliance tool complains if a video doesn't start with a zero sequence number. While this shouldn't cause any real problem for apps, let's make it happier, in order to better check the v4l2-compliance differences before and after patchsets. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/em28xx/em28xx-video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c index 41ac47f1589c..26859aaf5c93 100644 --- a/drivers/media/usb/em28xx/em28xx-video.c +++ b/drivers/media/usb/em28xx/em28xx-video.c @@ -1093,6 +1093,8 @@ int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count) em28xx_videodbg("%s\n", __func__); + dev->v4l2->field_count = 0; + /* * Make sure streaming is not already in progress for this type * of filehandle (e.g. video, vbi)