linux/drivers/media/i2c
Eugen Hristev cb514c01f6 media: i2c: mt9v032: fix enum mbus codes and frame sizes
[ Upstream commit 1451d5ae35 ]

This driver supports both the mt9v032 (color) and the mt9v022 (mono)
sensors. Depending on which sensor is used, the format from the sensor is
different. The format.code inside the dev struct holds this information.
The enum mbus and enum frame sizes need to take into account both type of
sensors, not just the color one. To solve this, use the format.code in
these functions instead of the hardcoded bayer color format (which is only
used for mt9v032).

[Sakari Ailus: rewrapped commit message]

Suggested-by: Wenyou Yang <wenyou.yang@microchip.com>
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-02-24 08:36:25 +01:00
..
adv748x media: i2c: adv748x: Fix unsafe macros 2020-02-14 16:34:18 -05:00
cx25840
et8ek8
m5mols
s5c73m3
smiapp media: smiapp: Register sensor after enabling runtime PM on the device 2019-12-31 16:44:19 +01:00
Kconfig media: max2175: Fix build error without CONFIG_REGMAP_I2C 2019-12-31 16:43:20 +01:00
Makefile
ad5820.c media: ad5820: Define entity function 2019-12-31 16:44:17 +01:00
ad9389b.c
adp1653.c
adv7170.c
adv7175.c
adv7180.c
adv7183.c
adv7183_regs.h
adv7343.c
adv7343_regs.h
adv7393.c
adv7393_regs.h
adv7511-v4l2.c media: i2c: adv7511-v4l2: drop check because i2c_unregister_device() is NULL safe 2019-08-26 10:44:16 -03:00
adv7604.c
adv7842.c media: i2c: adv7842: drop check because i2c_unregister_device() is NULL safe 2019-08-26 10:44:38 -03:00
ak881x.c
ak7375.c
aptina-pll.c
aptina-pll.h
bt819.c
bt856.c
bt866.c
cs53l32a.c
cs3308.c
cs5345.c
dw9714.c
dw9807-vcm.c
imx214.c
imx258.c
imx274.c
imx319.c
imx355.c
ir-kbd-i2c.c
ks0127.c
ks0127.h
lm3560.c
lm3646.c
m52790.c
max2175.c
max2175.h
ml86v7667.c
msp3400-driver.c
msp3400-driver.h
msp3400-kthreads.c
mt9m001.c
mt9m032.c
mt9m111.c
mt9p031.c
mt9t001.c
mt9t112.c
mt9v011.c
mt9v032.c media: i2c: mt9v032: fix enum mbus codes and frame sizes 2020-02-24 08:36:25 +01:00
mt9v111.c
noon010pc30.c
ov772x.c
ov2640.c
ov2659.c media: i2c: ov2659: Fix missing 720p register config 2019-12-31 16:43:23 +01:00
ov2680.c
ov2685.c
ov5640.c media: ov5640: Fix check for PLL1 exceeding max allowed rate 2020-02-24 08:36:25 +01:00
ov5645.c media: i2c: ov5645: Fix power sequence 2019-08-15 08:08:07 -03:00
ov5647.c
ov5670.c
ov5675.c
ov5695.c
ov6650.c media: ov6650: Fix default format not applied on device probe 2020-01-17 19:48:56 +01:00
ov7251.c
ov7640.c
ov7670.c
ov7740.c
ov8856.c media: ov8856: Check reading clock frequency succeeded 2019-08-15 08:05:40 -03:00
ov9640.c
ov9640.h
ov9650.c media: ov9650: add a sanity check 2019-08-26 14:05:09 -03:00
ov13858.c
rj54n1cb0c.c
s5k4ecgx.c
s5k5baf.c
s5k6a3.c
s5k6aa.c
saa711x_regs.h
saa717x.c
saa6588.c
saa6752hs.c
saa7110.c
saa7115.c
saa7127.c
saa7185.c
smiapp-pll.c
smiapp-pll.h
sony-btf-mpx.c
sr030pc30.c
st-mipid02.c media: st-mipid02: add a check for devm_gpiod_get_optional 2019-12-31 16:44:17 +01:00
tc358743.c
tc358743_regs.h
tda1997x.c
tda1997x_regs.h
tda7432.c
tda9840.c
tea6415c.c
tea6415c.h
tea6420.c
tea6420.h
ths7303.c
ths8200.c
ths8200_regs.h
tlv320aic23b.c
tvaudio.c
tvp514x.c
tvp514x_regs.h
tvp5150.c
tvp5150_reg.h
tvp7002.c
tvp7002_reg.h
tw2804.c
tw9903.c
tw9906.c
tw9910.c
uda1342.c
upd64031a.c
upd64083.c
video-i2c.c
vp27smpx.c
vpx3220.c
vs6624.c
vs6624_regs.h
wm8739.c
wm8775.c