summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ivtv
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/ivtv
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/ivtv')
-rw-r--r--linux/drivers/media/video/ivtv/ivtv-driver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-driver.c b/linux/drivers/media/video/ivtv/ivtv-driver.c
index 284610c3c..c0b98a83b 100644
--- a/linux/drivers/media/video/ivtv/ivtv-driver.c
+++ b/linux/drivers/media/video/ivtv/ivtv-driver.c
@@ -1132,6 +1132,12 @@ static int __devinit ivtv_probe(struct pci_dev *dev,
/* 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)