diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-09 09:38:47 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-09 09:38:47 -0200 |
commit | 4118a629619ca1fad4d6a7cef891ad6849ba16f6 (patch) | |
tree | 28e3290c4b8dd4585062e08bc66f334e7620ce2a /linux | |
parent | 66bbf1302a15fc58a244694583e5b2caf70203fe (diff) | |
download | mediapointer-dvb-s2-4118a629619ca1fad4d6a7cef891ad6849ba16f6.tar.gz mediapointer-dvb-s2-4118a629619ca1fad4d6a7cef891ad6849ba16f6.tar.bz2 |
tveeprom: Properly initialize tuner type (BZ#11367)
From: Mauro Carvalho Chehab <mchehab@redhat.com>
If Hauppauge eeprom is corrupted, the driver returns tuner = 0, instead
of TUNER_ABSENT.
This makes the drivers to initialize tuner, instead of handling the
manual parameter.
Since the tuner core rejects that a tuner to have their type changed,
this breaks the manual tuner override.
Priority: high
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/video/tveeprom.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tveeprom.c b/linux/drivers/media/video/tveeprom.c index c1809a56b..de93ac3b5 100644 --- a/linux/drivers/media/video/tveeprom.c +++ b/linux/drivers/media/video/tveeprom.c @@ -428,6 +428,9 @@ void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee, const char *t_fmt_name2[8] = { " none", "", "", "", "", "", "", "" }; memset(tvee, 0, sizeof(*tvee)); + tvee->tuner_type = TUNER_ABSENT; + tvee->tuner2_type = TUNER_ABSENT; + done = len = beenhere = 0; /* Different eeprom start offsets for em28xx, cx2388x and cx23418 */ |