Google
  Web www.spinics.net

[PATCH] zr36067: Fix RGBR pixel format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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@xxxxxxxxxxxx>
Acked-by: Trent Piepho <xyzzy@xxxxxxxxxxxxx>
Cc: Ronald S. Bultje <rbultje@xxxxxxxxxxxxxxxxxxx>
---
Mauro, can you please apply this patch? Thanks.

 drivers/media/video/zoran_driver.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.27-rc5.orig/drivers/media/video/zoran_driver.c	2008-09-05 15:12:55.000000000 +0200
+++ linux-2.6.27-rc5/drivers/media/video/zoran_driver.c	2008-09-05 15:13:11.000000000 +0200
@@ -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,


-- 
Jean Delvare

_______________________________________________
v4l-dvb-maintainer mailing list
v4l-dvb-maintainer@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/v4l-dvb-maintainer

[Linux Media]     [Older V4L]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [SSH]     [Linux USB]

-->
Add to Google Powered by Linux

Google PageRank Checking tool