summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-driver.c
diff options
context:
space:
mode:
authorHans Verkuil2008-06-28 04:27:25 +0200
committerMauro Carvalho Chehab2008-07-20 12:15:08 +0200
commitc3cb4d95ae778dbc6a4be1e74672d645fc75c8a7 (patch)
tree088dd6dd709c3cf3a764b547019a8fa96c267435 /drivers/media/video/cx18/cx18-driver.c
parentV4L/DVB (8162): cx18: fix PAL/SECAM support (diff)
downloadkernel-qcow2-linux-c3cb4d95ae778dbc6a4be1e74672d645fc75c8a7.tar.gz
kernel-qcow2-linux-c3cb4d95ae778dbc6a4be1e74672d645fc75c8a7.tar.xz
kernel-qcow2-linux-c3cb4d95ae778dbc6a4be1e74672d645fc75c8a7.zip
V4L/DVB (8164): cx18/ivtv: choose a better initial TV standard for cards without eeprom.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx18/cx18-driver.c')
-rw-r--r--drivers/media/video/cx18/cx18-driver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.c b/drivers/media/video/cx18/cx18-driver.c
index 71bb04ab91d7..2f4909a32540 100644
--- a/drivers/media/video/cx18/cx18-driver.c
+++ b/drivers/media/video/cx18/cx18-driver.c
@@ -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)