imx-csi: fix burst size
PATCH 1/1 imx-csi: fix burst size
Setting a burst size of "8" doesn't work for IMX219 with 8-bit bayer, but a burst size of "16" does. Fix this.
--- drivers/staging/media/imx/imx-media-csi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/imx/imx-media-csi.c +1 -1
@@ -341,7 +341,7 @@ static int csi_idmac_setup_channel(struct csi_priv *priv)case V4L2_PIX_FMT_SGBRG8 :case V4L2_PIX_FMT_SGRBG8 :case V4L2_PIX_FMT_SRGGB8 : - burst_size =8 ; + burst_size =16 ; passthrough = true; passthrough_bits =8 ;break ;
Signature · 1 line
2.7.4
Philipp Zabel
maintainerHi Russell,
Quoted 2 lines · Russell King
Setting a burst size of "8" doesn't work for IMX219 with 8-bit bayer, but a burst size of "16" does. Fix this.
Do larger bursts work as well, if the width is divisible by the burst length? Since the Bayer format can't pass through the IC direct path anyway, 32-byte or 64-byte bursts may be possible.
Quoted 17 lines
Signed-off-by Russell King <[email protected]>---
drivers/staging/media/imx/imx-media-csi.c | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/media/imx/imx-media-csi.c +0
-0@@ -341,7 +341,7 @@ static int csi_idmac_setup_channel(struct csi_priv *priv)case
V4L2_PIX_FMT_SGBRG8:
caseV4L2_PIX_FMT_SGRBG8:
caseV4L2_PIX_FMT_SRGGB8:drivers/staging/media/imx/imx-media-csi.c +1
-1- burst_size =8 ; + burst_size =16 ;
Quoted 3 lines
passthrough = true;
passthrough_bits= 8;
break;
regards
Philipp
Quoted 4 lines · Russell King
Setting a burst size of "8" doesn't work for IMX219 with 8-bit bayer, but a burst size of "16" does. Fix this.
Signed-off-by Russell King <[email protected]>
Oh, well, this isn't for me to apply after all.
regards
Philipp
Quoted 17 lines
--- drivers/staging/media/imx/imx-media-csi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/media/imx/imx-media-csi.c +1
-1@@ -341,7 +341,7 @@ static int csi_idmac_setup_channel(struct csi_priv *priv)case V4L2_PIX_FMT_SGBRG8 :case V4L2_PIX_FMT_SGRBG8 :case V4L2_PIX_FMT_SRGGB8 : - burst_size =8 ; + burst_size =16 ; passthrough = true; passthrough_bits =8 ;break ;