gspca: First camera mode is skipped
authorFlorin Tudorache <florin_tudorache@live.com>
Sun, 28 Jun 2020 09:24:47 +0000 (11:24 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 06:16:47 +0000 (08:16 +0200)
commit44d42520df8a67f47c1e47d934d6bcd38d87daac
tree0e3a159d26901111cb501313f27ba89a3ae5a8fa
parent94b9ce6870f9c90ac92505482689818b254312f7
gspca: First camera mode is skipped

If a device supports a resolution in 2 different formats, mode[0] is
skipped on first iteration and a different format is selected.

Example: 320x240/YUYV isn't reachable for OV534/ov772x

Signed-off-by: Florin Tudorache <florin_tudorache@live.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/gspca/gspca.c