The patch number 8164 was added via Hans Verkuil <[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]

------

From: Hans Verkuil  <[EMAIL PROTECTED]>
cx18/ivtv: choose a better initial TV standard for cards without eeprom.


Signed-off-by: Hans Verkuil <[EMAIL PROTECTED]>


---

 linux/drivers/media/video/cx18/cx18-driver.c |    6 ++++++
 linux/drivers/media/video/ivtv/ivtv-driver.c |    6 ++++++
 2 files changed, 12 insertions(+)

diff -r 54a4582e55d1 -r 6f48169e138f 
linux/drivers/media/video/cx18/cx18-driver.c
--- a/linux/drivers/media/video/cx18/cx18-driver.c      Fri Jun 27 18:16:22 
2008 +0200
+++ b/linux/drivers/media/video/cx18/cx18-driver.c      Sat Jun 28 01:27:25 
2008 +0200
@@ -722,6 +722,12 @@ static int __devinit cx18_probe(struct p
        /* if no tuner was found, then pick the first tuner in the card list */
        if (cx->options.tuner == -1 && cx->card->tuners[0].std) {
                cx->std = cx->card->tuners[0].std;
+               if (cx->std & V4L2_STD_PAL)
+                       cx->std = V4L2_STD_PAL_BG | V4L2_STD_PAL_H;
+               else if (cx->std & V4L2_STD_NTSC)
+                       cx->std = V4L2_STD_NTSC_M;
+               else if (cx->std & V4L2_STD_SECAM)
+                       cx->std = V4L2_STD_SECAM_L;
                cx->options.tuner = cx->card->tuners[0].tuner;
        }
        if (cx->options.radio == -1)
diff -r 54a4582e55d1 -r 6f48169e138f 
linux/drivers/media/video/ivtv/ivtv-driver.c
--- a/linux/drivers/media/video/ivtv/ivtv-driver.c      Fri Jun 27 18:16:22 
2008 +0200
+++ b/linux/drivers/media/video/ivtv/ivtv-driver.c      Sat Jun 28 01:27:25 
2008 +0200
@@ -1132,6 +1132,12 @@ static int __devinit ivtv_probe(struct p
        /* if no tuner was found, then pick the first tuner in the card list */
        if (itv->options.tuner == -1 && itv->card->tuners[0].std) {
                itv->std = itv->card->tuners[0].std;
+               if (itv->std & V4L2_STD_PAL)
+                       itv->std = V4L2_STD_PAL_BG | V4L2_STD_PAL_H;
+               else if (itv->std & V4L2_STD_NTSC)
+                       itv->std = V4L2_STD_NTSC_M;
+               else if (itv->std & V4L2_STD_SECAM)
+                       itv->std = V4L2_STD_SECAM_L;
                itv->options.tuner = itv->card->tuners[0].tuner;
        }
        if (itv->options.radio == -1)


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/6f48169e138f2b52d91ebedc445a415a0ff1119a

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

Reply via email to