]> err.no Git - linux-2.6/blobdiff - drivers/media/video/cx18/cx18-driver.c
V4L/DVB (8167): cx18: set correct audio inputs for tuner and line-in 2.
[linux-2.6] / drivers / media / video / cx18 / cx18-driver.c
index 71bb04ab91d798a5a108e585ab74cd0427654b35..2f4909a325402fb3442008a1c137caa76f185c07 100644 (file)
@@ -722,6 +722,12 @@ static int __devinit cx18_probe(struct pci_dev *dev,
        /* 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)