[media] marvell-ccic: fix V4L2_PIX_FMT_SBGGR8 support
The REG_CTRL0 register was never written if this format was selected, instead an error was logged and whatever was last set in that register was used. Surprisingly, that seems to work if YUYV was selected, but we should program this register explicitly. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
85ad0a3f68
commit
8380b7e449
|
@ -786,6 +786,10 @@ static void mcam_ctlr_image(struct mcam_camera *cam)
|
|||
mcam_reg_write_mask(cam, REG_CTRL0,
|
||||
C0_DF_RGB | C0_RGBF_565 | C0_RGB5_BGGR, C0_DF_MASK);
|
||||
break;
|
||||
case V4L2_PIX_FMT_SBGGR8:
|
||||
mcam_reg_write_mask(cam, REG_CTRL0,
|
||||
C0_DF_RGB | C0_RGB5_GRBG, C0_DF_MASK);
|
||||
break;
|
||||
default:
|
||||
cam_err(cam, "camera: unknown format: %#x\n", fmt->pixelformat);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue