diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-25 09:56:16 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-25 09:56:16 -0200 |
commit | 56afdef8a87b3b43ad5c2466a4a71f7ca96d2c3a (patch) | |
tree | f625259910ef164afb29f7958f4ad03e9ec332cd /linux/drivers | |
parent | 3717ed3fadb5ba313c1be3928bfd8f0c0fdf7c36 (diff) | |
download | mediapointer-dvb-s2-56afdef8a87b3b43ad5c2466a4a71f7ca96d2c3a.tar.gz mediapointer-dvb-s2-56afdef8a87b3b43ad5c2466a4a71f7ca96d2c3a.tar.bz2 |
tm6000: Fix color support on tm6010
From: Mauro Carvalho Chehab <mchehab@redhat.com>
TM6010 uses some different registers for format support.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/staging/tm6000/tm6000-core.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/linux/drivers/staging/tm6000/tm6000-core.c b/linux/drivers/staging/tm6000/tm6000-core.c index e6075f4c1..a3f6402da 100644 --- a/linux/drivers/staging/tm6000/tm6000-core.c +++ b/linux/drivers/staging/tm6000/tm6000-core.c @@ -145,12 +145,16 @@ int tm6000_get_reg16 (struct tm6000_core *dev, u8 req, u16 value, u16 index) void tm6000_set_fourcc_format(struct tm6000_core *dev) { - if (dev->fourcc==V4L2_PIX_FMT_UYVY) { - /* Sets driver to UYUV */ - tm6000_set_reg (dev, REQ_07_SET_GET_AVREG, 0xc1, 0xd0); + if (dev->dev_type == TM6010) { + if (dev->fourcc == V4L2_PIX_FMT_UYVY) + tm6000_set_reg (dev, REQ_07_SET_GET_AVREG, 0xc1, 0xfc); + else + tm6000_set_reg (dev, REQ_07_SET_GET_AVREG, 0xc1, 0xfd); } else { - /* Sets driver to YUV2 */ - tm6000_set_reg (dev, REQ_07_SET_GET_AVREG, 0xc1, 0x90); + if (dev->fourcc == V4L2_PIX_FMT_UYVY) + tm6000_set_reg (dev, REQ_07_SET_GET_AVREG, 0xc1, 0xd0); + else + tm6000_set_reg (dev, REQ_07_SET_GET_AVREG, 0xc1, 0x90); } } |