Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3428773imu; Sun, 11 Nov 2018 14:54:11 -0800 (PST) X-Google-Smtp-Source: AJdET5d0RQgx5k/CUIjxeQmJlgdpWatEe9j7OgahxvAFmWTLMD57c8RbjevPEe6ypiGIagPKmnfL X-Received: by 2002:a62:6881:: with SMTP id d123-v6mr18277673pfc.195.1541976851344; Sun, 11 Nov 2018 14:54:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541976851; cv=none; d=google.com; s=arc-20160816; b=wYxIJA1LXw4luV+0QjvtTxMZ4wOz0pDoXco7DFN59dyGZUtmY//c6whZSoKZ3Hd+RP jd1sWs/c85hKUYbKMAnDF+AJYCVod+lVNueikvG6O5M/HYqBg3vts5sv7/a22dLd4HKr pREsYhpp525HMUNxwQjP24ifZLZKaphZMZbOxah0gCTbbqijqt0Pv/26NqCMkVIwk1js myt7Gus6PWXu29P3piWEHIBD+ADw5FdolttahnSPlGgDTElHyaiqtllEP9aqfz5La46w xgPtPx5izVJK5D2yKwYA3ZSncpGcAlvWvFyJs1LQsOwPo1hY8S8wYy4mOK9HZDghbgse 5ufg== 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=6bvn5UxMqtgOqzF8fHCVorkQBRw7iEG65wvj7lDslRo=; b=KYUReOE2w85ShDZdDRbh33ReR5QtTw9fQDfcsigtModp32yTyCdp8+0NLCSyd4gSHe QVzGDPAOEcVNUvOglfmGlqqoPEDvU+m6P2WtTYE7IMiU+Qa77HFsNwgo8Air5S2DP+WT l27tY2+uTHBRDVXud6Z3JqoD0BTJaGNl0gySlatk9VcE8PsyNgKzJfw8iiRJeQH4Ty8+ /2lCuxB2pDq2KtFszmI6h2qJ6NSHsTNqj89veTNCTS/uo+fXqM/ADFIGZKFwgMJcSLWk uj+b1Mc7HjFXQxexV3mSVnaqI0J1b6txlS1dFkH5QXMXv8UhTN73GmRUpux7x7345RHo CZrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aCFci5n6; 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 l11-v6si14579129pgm.102.2018.11.11.14.53.56; Sun, 11 Nov 2018 14:54:11 -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=aCFci5n6; 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 S2404111AbeKLIXE (ORCPT + 99 others); Mon, 12 Nov 2018 03:23:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:54642 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390866AbeKLIXC (ORCPT ); Mon, 12 Nov 2018 03:23:02 -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 45D55223CB; Sun, 11 Nov 2018 22:33:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975585; bh=ibSWNeGlobesSXXlq/4o+ITM/VkSb+/68VQgnwMBcok=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aCFci5n67jhl+hZzUY8BX8do2rJkNt+CokOOp+7JjQHVo2qCz977cuOnEFiuUwhda MsHHg7FLVBLFYaaWJ/C425qzTSNRgd60B116CypYqyGpyPa9dqvGX/Oee7gsJdnvpr LzdKPbQ1oUUSj6gDmav/+DORz1f6frfTjJWoGMHA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mauro Carvalho Chehab Subject: [PATCH 4.14 187/222] media: em28xx: make v4l2-compliance happier by starting sequence on zero Date: Sun, 11 Nov 2018 14:24:44 -0800 Message-Id: <20181111221703.688488683@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221647.665769131@linuxfoundation.org> References: <20181111221647.665769131@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.14-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 @@ -900,6 +900,8 @@ static int em28xx_enable_analog_tuner(st if (!mdev || !v4l2->decoder) return 0; + dev->v4l2->field_count = 0; + /* * This will find the tuner that is connected into the decoder. * Technically, this is not 100% correct, as the device may be