]> git.baikalelectronics.ru Git - kernel.git/commit
media: em28xx: use a default format if TRY_FMT fails
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 14 Sep 2018 03:22:40 +0000 (23:22 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 17 Sep 2018 17:10:30 +0000 (13:10 -0400)
commit36dbe0248fa59a207397593338e883491d409d0d
tree0e04a06f2802cb4eaa1b25d53b4dad2c6537973b
parent83b4468df3815fa5724e26fa118f017674f8e4ac
media: em28xx: use a default format if TRY_FMT fails

Follow the V4L2 spec, as warned by v4l2-compliance:

warn: v4l2-test-formats.cpp(732): TRY_FMT cannot handle an invalid pixelformat.
warn: v4l2-test-formats.cpp(733): This may or may not be a problem. For more information see:

warn: v4l2-test-formats.cpp(734): http://www.mail-archive.com/linux-media@vger.kernel.org/msg56550.html

Cc: stable@vger.kernel.org
Fixes: 287ff0781803 ("V4L/DVB (9927): em28xx: use a more standard way to specify video formats")
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/em28xx/em28xx-video.c