diff options
author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-09-13 22:46:29 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-13 11:15:12 -0800 |
commit | 453a8a459cc2cd6c975449c04e0720fe118e4056 (patch) | |
tree | ca691269495e3001728420bc9223264f86d4e49c | |
parent | a4e311ed2390394d32806d5fcca5542505f5f47f (diff) | |
download | linux-stable-453a8a459cc2cd6c975449c04e0720fe118e4056.tar.gz linux-stable-453a8a459cc2cd6c975449c04e0720fe118e4056.tar.bz2 linux-stable-453a8a459cc2cd6c975449c04e0720fe118e4056.zip |
media: em28xx: make v4l2-compliance happier by starting sequence on zero
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 <mchehab+samsung@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/media/usb/em28xx/em28xx-video.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c index 73d8ae3d9bcf..92a74bc34527 100644 --- 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(struct em28xx *dev) 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 |