Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3471200imu; Sun, 11 Nov 2018 15:52:18 -0800 (PST) X-Google-Smtp-Source: AJdET5fiMWLZ15StcLm2S8oTjzfzCqohYFVtelUbg7+VmdTQm7CgkuNo0OEcvsGY3UL5fMsaRBj7 X-Received: by 2002:a63:7044:: with SMTP id a4mr15124324pgn.359.1541980338582; Sun, 11 Nov 2018 15:52:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541980338; cv=none; d=google.com; s=arc-20160816; b=js2VPTDf7TVlTLkYghI0pJI6CLEENJV62Uf8ZWqCxT08s4On0xnMCsDP8sMCTehgep 7c7p3BneUHepv8Qac8V0eirLjJKWm+ThcxEX7zUtZuZOX8bgNvk/kp47l0ZRxiDLNDMD cGsTQeh2jCMPtqtrtWIZ9ixXqrkT5snwsOE7n/TGrqE1DyLJHu/c7OgktdDDZH60MUSs cYEPIDY0lsLV9raI927uryiJfOIjUjO/L1mqxRSZ0jnfZXy8c2sTC/9xTsLJTes8HkAS GxbTFPYHYuPbCeZ8YTIO3p20A0kdmevNGwDxySm5KFl902V2uwgXY8UPlaE0QtYhyehN OCSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ucLU3ATchYoNY4bph4ZT21CqyW2mKeuWCztCV5I96gY=; b=R9XGSaQHuMJVUSgnLl7MtWtVc8Yyx7JpvjSBsORr9fgdz8HKKAK1HHhrg+DPuht0rS 9AF93vGWhKiVDZWhs35J2tgD9J57Dx1M2jNnU5HHZ4SB5JOSDNXdgHZVdWsqpYda1yFV CsQdw71N8XtnkfAlLZfprHiwTSNA75dAwONSIkzNo12m3aVprTflfxQMsFZiv50fsOjI K99bLDeUcDA1gpJfBHrGWNeqhxB8aWEIZvJYpKbS7PYDLrE2p3jJi4cMVF5/UfWYq3Jk FXsS9ffBwQVY9AuKSVOpay1b5hV336DPF5wVVsm5FOoGzCvQrhHsU1XcLRonOx7W3Mbq MHYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jOyomgDK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5-v6si11430388plh.157.2018.11.11.15.52.03; Sun, 11 Nov 2018 15:52:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jOyomgDK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732944AbeKLISf (ORCPT + 99 others); Mon, 12 Nov 2018 03:18:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:38154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732908AbeKLISd (ORCPT ); Mon, 12 Nov 2018 03:18:33 -0500 Received: from localhost (unknown [206.108.79.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5479C22353; Sun, 11 Nov 2018 22:28:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975317; bh=eCQ+R1+DpqiEO/1sBW6z/qJdkUJK+ImvEPDQl0mRwzw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jOyomgDKFr8BBhWV+OGiNXKL3V5q5uA2CmTnZkOJ5LD4XjFlMcSY32+fRAdUwvro1 2OFGMaK+CaPm/UlMGc83TzNxNBtGNkpltnqLeXl4ErfJTUVgfOWBma5FLJhBpIor5y ZH0CxETnvTn44yz8qo2nyh1PWaDaYqE2OA9fw4wQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mauro Carvalho Chehab Subject: [PATCH 4.19 308/361] media: em28xx: make v4l2-compliance happier by starting sequence on zero Date: Sun, 11 Nov 2018 14:20:55 -0800 Message-Id: <20181111221658.041753848@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mauro Carvalho Chehab commit afeaade90db4c5dab93f326d9582be1d5954a198 upstream. 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. This is actually an old issue. It is there since at least its videobuf2 conversion, e. g. changeset 3829fadc461 ("[media] em28xx: convert to videobuf2"), if VB1 wouldn't suffer from the same issue. Cc: stable@vger.kernel.org Fixes: d3829fadc461 ("[media] em28xx: convert to videobuf2") Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/usb/em28xx/em28xx-video.c | 2 ++ 1 file changed, 2 insertions(+) --- 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 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)