summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx18/cx18-driver.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-06-28 01:27:25 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-06-28 01:27:25 +0200
commita02b1ddfea23031e1d76b2e46fadbcce623de6dc (patch)
tree032fda513a1ea6f32d64a3b2691c7c7502e347db /linux/drivers/media/video/cx18/cx18-driver.c
parent1ebb6eae3f9dc67b3bb68184bb1e4dd911263688 (diff)
downloadmediapointer-dvb-s2-a02b1ddfea23031e1d76b2e46fadbcce623de6dc.tar.gz
mediapointer-dvb-s2-a02b1ddfea23031e1d76b2e46fadbcce623de6dc.tar.bz2
cx18/ivtv: choose a better initial TV standard for cards without eeprom.
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/cx18/cx18-driver.c')
-rw-r--r--linux/drivers/media/video/cx18/cx18-driver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx18/cx18-driver.c b/linux/drivers/media/video/cx18/cx18-driver.c
index 71bb04ab9..2f4909a32 100644
--- a/linux/drivers/media/video/cx18/cx18-driver.c
+++ b/linux/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)