V4L/DVB (12794): tm6000: handle also PAL/SECAM resolutions
authorMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 4 Sep 2007 00:51:45 +0000 (21:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:39:41 +0000 (00:39 -0300)
Fix the resolutions for 625 line video standards (european PAL/SECAM)

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-core.c
drivers/staging/tm6000/tm6000-video.c
drivers/staging/tm6000/tm6000.h

index 5e93255..c650d3e 100644 (file)
@@ -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) {
Simple merge
Simple merge