i.MX6 CSI: Fix MIPI camera operation in RAW/Bayer mode
PATCH 1/1 i.MX6 CSI: Fix MIPI camera operation in RAW/Bayer mode
Without this fix, in 8-bit Y/Bayer mode, every other 8-byte group of pixels is lost.
Not sure about possible side effects, though.
drivers/staging/media/imx/imx-media-csi.c +1 -1
@@ -340,7 +340,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 · 4 lines
Krzysztof Halasa Industrial Research Institute for Automation and Measurements PIAP Al. Jerozolimskie 202, 02-486 Warsaw, Poland
Fabio Estevam
reviewerHi Krzysztof,
Quoted 9 lines · Krzysztof Hałasa
Without this fix, in 8-bit Y/Bayer mode, every other 8-byte group of pixels is lost.
Not sure about possible side effects, though.Signed-off-by Krzysztof Hałasa <[email protected]>
drivers/staging/media/imx/imx-media-csi.c static int csi_idmac_setup_channel(struct csi_priv *priv) · line 346
Quoted 8 lines
drivers/staging/media/imx/imx-media-csi.c +1
-1@@ -340,7 +340,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 ;
Russell has sent the same fix and Philipp made a comment about the possibility of using 32-byte or 64-byte bursts:
http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2017-October/111960.html
Quoted 7 lines · Fabio Estevam
Quoted 7 lines
drivers/staging/media/imx/imx-media-csi.c +0
-1@@ -340,7 +340,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 ;
Quoted 8 lines
drivers/staging/media/imx/imx-media-csi.c static int csi_idmac_setup_channel(struct csi_priv *priv) · line 346
Quoted 4 lines
drivers/staging/media/imx/imx-media-csi.c +1
-0+ burst_size =16 ; passthrough = true; passthrough_bits =8 ;break ;Russell has sent the same fix and Philipp made a comment about the possibility of using 32-byte or 64-byte bursts:
http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2017-October/111960.html
Great.
Sometimes I wonder how many people are working on exactly the same stuff.
Signature · 4 lines
Krzysztof Halasa Industrial Research Institute for Automation and Measurements PIAP Al. Jerozolimskie 202, 02-486 Warsaw, Poland
Quoted 18 lines · Krzysztof Hałasa
Quoted 7 lines · Fabio Estevam
Quoted 7 lines
drivers/staging/media/imx/imx-media-csi.c +0
-1@@ -340,7 +340,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 ;Quoted 8 lines
drivers/staging/media/imx/imx-media-csi.c static int csi_idmac_setup_channel(struct csi_priv *priv) · line 346
Quoted 4 lines
drivers/staging/media/imx/imx-media-csi.c +1
-0+ burst_size =16 ; passthrough = true; passthrough_bits =8 ;break ;Russell has sent the same fix and Philipp made a comment about the possibility of using 32-byte or 64-byte bursts:
http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2017-October/111960.html
Quoted 4 lines
Great.
Sometimes I wonder how many people are working on exactly the same stuff.
I do wish the patch was merged (which fixes a real problem) rather than hanging around for optimisation questions. We can always increase it in the future if it's deemed that a larger burst size is beneficial.
Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up
Fabio Estevam
reviewerQuoted 3 lines · Russell King - ARM Linux
I do wish the patch was merged (which fixes a real problem) rather than hanging around for optimisation questions. We can always increase it in the future if it's deemed that a larger burst size is beneficial.
Agreed.
Philipp Zabel
maintainerQuoted 19 lines · Russell King - ARM Linux
Quoted 18 lines · Krzysztof Hałasa
Quoted 15 lines · Fabio Estevam
drivers/staging/media/imx/imx-media-csi.c static int csi_idmac_setup_channel(struct csi_priv *priv) · line 346
Quoted 11 lines
drivers/staging/media/imx/imx-media-csi.c +1
-1@@ -340,7 +340,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 ;Russell has sent the same fix and Philipp made a comment about the possibility of using 32-byte or 64-byte bursts:
http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2017-October/111960.html
Quoted 8 lines
Quoted 4 lines
Great.
Sometimes I wonder how many people are working on exactly the same stuff.
I do wish the patch was merged (which fixes a real problem) rather than hanging around for optimisation questions. We can always increase it in the future if it's deemed that a larger burst size is beneficial.
I am sorry, that patch should have been part of last week's pull request. I'll send another one for -rc6.
regards
Philipp