Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192697
b: refs/heads/master
c: 717ecd2
h: refs/heads/master
i:
  192695: 75bde45
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed May 18, 2010
1 parent 659e5d7 commit 5fa080d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b4c5b1f0582df9231e6e1093e504d7df3a062b9
refs/heads/master: 717ecd2b9a71970698c04f34239c6a1e5d08fbc2
14 changes: 9 additions & 5 deletions trunk/drivers/staging/tm6000/tm6000-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,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);
}
}

Expand Down

0 comments on commit 5fa080d

Please sign in to comment.