Skip to content

Commit

Permalink
V4L/DVB (10209): tveeprom: Properly initialize tuner type (BZ#11367)
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Jan 29, 2009
1 parent dbdf03b commit 3e478c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/media/video/tveeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,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 */
Expand Down

0 comments on commit 3e478c0

Please sign in to comment.