aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ivtv/ivtv-driver.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-06-27 22:27:25 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:15:08 -0400
commitc3cb4d95ae778dbc6a4be1e74672d645fc75c8a7 (patch)
tree088dd6dd709c3cf3a764b547019a8fa96c267435 /drivers/media/video/ivtv/ivtv-driver.c
parentc1738904d6808a091d7d496b445d20671d513ad4 (diff)
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/ivtv/ivtv-driver.c')
-rw-r--r--drivers/media/video/ivtv/ivtv-driver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c
index 9e6a6490387..41fd79279bb 100644
--- a/drivers/media/video/ivtv/ivtv-driver.c
+++ b/drivers/media/video/ivtv/ivtv-driver.c
@@ -1128,6 +1128,12 @@ static int __devinit ivtv_probe(struct pci_dev *dev,
1128 /* if no tuner was found, then pick the first tuner in the card list */ 1128 /* if no tuner was found, then pick the first tuner in the card list */
1129 if (itv->options.tuner == -1 && itv->card->tuners[0].std) { 1129 if (itv->options.tuner == -1 && itv->card->tuners[0].std) {
1130 itv->std = itv->card->tuners[0].std; 1130 itv->std = itv->card->tuners[0].std;
1131 if (itv->std & V4L2_STD_PAL)
1132 itv->std = V4L2_STD_PAL_BG | V4L2_STD_PAL_H;
1133 else if (itv->std & V4L2_STD_NTSC)
1134 itv->std = V4L2_STD_NTSC_M;
1135 else if (itv->std & V4L2_STD_SECAM)
1136 itv->std = V4L2_STD_SECAM_L;
1131 itv->options.tuner = itv->card->tuners[0].tuner; 1137 itv->options.tuner = itv->card->tuners[0].tuner;
1132 } 1138 }
1133 if (itv->options.radio == -1) 1139 if (itv->options.radio == -1)