diff options
author | Mauro Carvalho Chehab | 2007-09-04 02:51:45 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2010-05-18 05:39:41 +0200 |
commit | 4475c0444303842743049c420f41de04907e44d9 (patch) | |
tree | c832ad468988c6266025d1e1a9e555bb7b0a13bb /drivers/staging/tm6000/tm6000-core.c | |
parent | V4L/DVB (12793): tm6000: On some kernels, eeprom reading were generating a bug (diff) | |
download | kernel-qcow2-linux-4475c0444303842743049c420f41de04907e44d9.tar.gz kernel-qcow2-linux-4475c0444303842743049c420f41de04907e44d9.tar.xz kernel-qcow2-linux-4475c0444303842743049c420f41de04907e44d9.zip |
V4L/DVB (12794): tm6000: handle also PAL/SECAM resolutions
Fix the resolutions for 625 line video standards (european PAL/SECAM)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging/tm6000/tm6000-core.c')
-rw-r--r-- | drivers/staging/tm6000/tm6000-core.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/staging/tm6000/tm6000-core.c b/drivers/staging/tm6000/tm6000-core.c index 5e9325582bde..c650d3e926a3 100644 --- a/drivers/staging/tm6000/tm6000-core.c +++ b/drivers/staging/tm6000/tm6000-core.c @@ -421,9 +421,24 @@ REG PAL PAL_M PAL_N SECAM NTSC Comp. PAL PAL_M PAL_N SECAM NTSC 0x3f 0x00 0x00 0x00 0x00 0x00 */ + +void tm6000_get_std_res(struct tm6000_core *dev) +{ + /* Currently, those are the only supported resoltions */ + if (dev->norm & V4L2_STD_525_60) { + dev->height=480; + } else { + dev->height=576; + } + dev->width=720; + +printk("tm6000: res= %dx%d\n",dev->width,dev->height); +} + int tm6000_set_standard (struct tm6000_core *dev, v4l2_std_id *norm) { dev->norm=*norm; + tm6000_get_std_res(dev); /* HACK: Should use, instead, the common code!!! */ if (*norm & V4L2_STD_PAL_M) { |