| From mkrufky@linuxtv.org Thu Oct 16 15:57:24 2008 |
| From: Jean Delvare <khali@linux-fr.org> |
| Date: Fri, 10 Oct 2008 08:41:43 -0400 |
| Subject: V4L: zr36067: Fix RGBR pixel format |
| To: stable@kernel.org |
| Cc: Jean Delvare <khali@linux-fr.org>, v4l-dvb maintainer list <v4l-dvb-maintainer@linuxtv.org>, Trent Piepho <xyzzy@speakeasy.org>, Mauro Carvalho Chehab <mchehab@infradead.org> |
| Message-ID: <48EF4D87.2000701@linuxtv.org> |
| |
| |
| From: Jean Delvare <khali@linux-fr.org> |
| |
| cherry picked from commit a30ee3c747728f9151664118ffcbdeefd202c332 |
| |
| The zr36067 driver is improperly declaring pixel format RGBP twice, |
| once as "16-bit RGB LE" and once as "16-bit RGB BE". The latter is |
| actually RGBR. Fix the code to properly map both pixel formats. |
| |
| Signed-off-by: Jean Delvare <khali@linux-fr.org> |
| Acked-by: Trent Piepho <xyzzy@speakeasy.org> |
| Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> |
| Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> |
| |
| --- |
| drivers/media/video/zoran_driver.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| --- a/drivers/media/video/zoran_driver.c |
| +++ b/drivers/media/video/zoran_driver.c |
| @@ -134,7 +134,7 @@ const struct zoran_format zoran_formats[ |
| }, { |
| .name = "16-bit RGB BE", |
| ZFMT(-1, |
| - V4L2_PIX_FMT_RGB565, V4L2_COLORSPACE_SRGB), |
| + V4L2_PIX_FMT_RGB565X, V4L2_COLORSPACE_SRGB), |
| .depth = 16, |
| .flags = ZORAN_FORMAT_CAPTURE | |
| ZORAN_FORMAT_OVERLAY, |