android_kernel_samsung_a7y1.../drivers/media/i2c
Eugen Hristev eb462e70d0 media: i2c: mt9v032: fix enum mbus codes and frame sizes
[ Upstream commit 1451d5ae351d938a0ab1677498c893f17b9ee21d ]

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-04-07 13:55:40 +02:00
..
cx25840 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
m5mols A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
s5c73m3 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smiapp A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
soc_camera media: ov6650: Fix .get_fmt() V4L2_SUBDEV_FORMAT_TRY support 2020-04-07 13:43:49 +02:00
ad9389b.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adp1653.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adv7170.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adv7175.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adv7180.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adv7183_regs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adv7183.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adv7343_regs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adv7343.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adv7393_regs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adv7393.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adv7511-v4l2.c media: i2c: fix warning same module names 2020-04-06 19:55:07 +02:00
adv7604.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adv7842.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ak881x.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
aptina-pll.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
aptina-pll.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
as3645a.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bt819.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bt856.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bt866.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cs53l32a.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cs5345.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ir-kbd-i2c.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ks0127.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ks0127.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lm3560.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lm3646.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
m52790.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile media: i2c: fix warning same module names 2020-04-06 19:55:07 +02:00
ml86v7667.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
msp3400-driver.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
msp3400-driver.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
msp3400-kthreads.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mt9m032.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mt9p031.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mt9t001.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mt9v011.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mt9v032.c media: i2c: mt9v032: fix enum mbus codes and frame sizes 2020-04-07 13:55:40 +02:00
noon010pc30.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ov2659.c media: ov2659: fix unbalanced mutex_lock/unlock 2020-04-07 13:41:31 +02:00
ov7640.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ov7670.c media: v4l2: i2c: ov7670: Fix PLL bypass register values 2020-04-06 16:42:47 +02:00
ov9650.c media: ov9650: add a sanity check 2020-04-07 07:38:52 +02:00
s5k4ecgx.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
s5k5baf.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
s5k6a3.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
s5k6aa.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
saa711x_regs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
saa717x.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
saa6588.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
saa6752hs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
saa7110.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
saa7115.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
saa7127.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
saa7185.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smiapp-pll.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smiapp-pll.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sony-btf-mpx.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sr030pc30.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tc358743_regs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tc358743.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tda7432.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tda9840.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tea6415c.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tea6415c.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tea6420.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tea6420.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ths7303.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ths8200_regs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ths8200.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tlv320aic23b.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tvaudio.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tvp514x_regs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tvp514x.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tvp5150_reg.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tvp5150.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tvp7002_reg.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tvp7002.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tw2804.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tw9903.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tw9906.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
uda1342.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
upd64031a.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
upd64083.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vp27smpx.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vpx3220.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vs6624_regs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vs6624.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wm8739.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wm8775.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30