The patch number 9243 was added via Magnus Damm <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

video: add byte swap to sh_mobile_ceu driver
Extend the sh_mobile_ceu driver to enable byte swap. This way bytes
are stored in memory in incoming byte order.

Signed-off-by: Magnus Damm <[EMAIL PROTECTED]>
Signed-off-by: Guennadi Liakhovetski <[EMAIL PROTECTED]>
---
 linux/drivers/media/video/sh_mobile_ceu_camera.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


---

 linux/drivers/media/video/sh_mobile_ceu_camera.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff -r 0319c7f49733 -r 1b08df423fed 
linux/drivers/media/video/sh_mobile_ceu_camera.c
--- a/linux/drivers/media/video/sh_mobile_ceu_camera.c  Fri Oct 17 00:50:22 
2008 +0200
+++ b/linux/drivers/media/video/sh_mobile_ceu_camera.c  Fri Oct 17 00:50:56 
2008 +0200
@@ -401,10 +401,10 @@ static int sh_mobile_ceu_set_bus_param(s
         * D7, D6, D5, D4, D3, D2, D1, D0 (D7 written to lowest byte)
         *
         * The lowest three bits of CDOCR allows us to do swapping,
-        * right now we swap the data bytes to the following order:
-        * D1, D0, D3, D2, D5, D4, D7, D6
+        * using 7 we swap the data bytes to match the incoming order:
+        * D0, D1, D2, D3, D4, D5, D6, D7
         */
-       ceu_write(pcdev, CDOCR, 0x00000016);
+       ceu_write(pcdev, CDOCR, 0x00000017);
 
        ceu_write(pcdev, CDWDR, cdwdr_width);
        ceu_write(pcdev, CFWCR, 0); /* keep "datafetch firewall" disabled */


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/1b08df423fedec739e073e3dd4171431186d01a5

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to