diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-05-21 06:46:22 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-11 15:05:32 -0400 |
commit | 7025e521b1b068af8a47a7625335a605bbd4d7ea (patch) | |
tree | 05017c7f04be834968ccefdccdaa130735235816 /drivers | |
parent | 792a21b0def241e73345e366a456ae7e516ba2f5 (diff) |
[media] bttv: The Hauppauge 61334 needs the msp3410 to do radio demodulation
The (radio) audio out from the tuner (which can also demod FM radio) does not
seem to be hooked up to the msp3410 on this board in any way, so the only way
to get sound from the radio part is to make the msp3410 do the FM radio demod.
The msp3410 can handle this fine, but it is a bit weird compared to how it
is handled on other boards.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/bt8xx/bttv-cards.c | 4 | ||||
-rw-r--r-- | drivers/media/video/bt8xx/bttv-driver.c | 5 | ||||
-rw-r--r-- | drivers/media/video/bt8xx/bttvp.h | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/drivers/media/video/bt8xx/bttv-cards.c b/drivers/media/video/bt8xx/bttv-cards.c index 959d4e15c98e..856ab962cd63 100644 --- a/drivers/media/video/bt8xx/bttv-cards.c +++ b/drivers/media/video/bt8xx/bttv-cards.c | |||
@@ -3648,6 +3648,10 @@ static void __devinit hauppauge_eeprom(struct bttv *btv) | |||
3648 | bttv_tvcards[BTTV_BOARD_HAUPPAUGE_IMPACTVCB].name); | 3648 | bttv_tvcards[BTTV_BOARD_HAUPPAUGE_IMPACTVCB].name); |
3649 | btv->c.type = BTTV_BOARD_HAUPPAUGE_IMPACTVCB; | 3649 | btv->c.type = BTTV_BOARD_HAUPPAUGE_IMPACTVCB; |
3650 | } | 3650 | } |
3651 | |||
3652 | /* The 61334 needs the msp3410 to do the radio demod to get sound */ | ||
3653 | if (tv.model == 61334) | ||
3654 | btv->radio_uses_msp_demodulator = 1; | ||
3651 | } | 3655 | } |
3652 | 3656 | ||
3653 | static int terratec_active_radio_upgrade(struct bttv *btv) | 3657 | static int terratec_active_radio_upgrade(struct bttv *btv) |
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c index a9cfb0f4be48..ff7a589d8e0f 100644 --- a/drivers/media/video/bt8xx/bttv-driver.c +++ b/drivers/media/video/bt8xx/bttv-driver.c | |||
@@ -1218,6 +1218,11 @@ audio_mux(struct bttv *btv, int input, int mute) | |||
1218 | For now this is sufficient. */ | 1218 | For now this is sufficient. */ |
1219 | switch (input) { | 1219 | switch (input) { |
1220 | case TVAUDIO_INPUT_RADIO: | 1220 | case TVAUDIO_INPUT_RADIO: |
1221 | /* Some boards need the msp do to the radio demod */ | ||
1222 | if (btv->radio_uses_msp_demodulator) { | ||
1223 | in = MSP_INPUT_DEFAULT; | ||
1224 | break; | ||
1225 | } | ||
1221 | in = MSP_INPUT(MSP_IN_SCART2, MSP_IN_TUNER1, | 1226 | in = MSP_INPUT(MSP_IN_SCART2, MSP_IN_TUNER1, |
1222 | MSP_DSP_IN_SCART, MSP_DSP_IN_SCART); | 1227 | MSP_DSP_IN_SCART, MSP_DSP_IN_SCART); |
1223 | break; | 1228 | break; |
diff --git a/drivers/media/video/bt8xx/bttvp.h b/drivers/media/video/bt8xx/bttvp.h index db943a8d580d..70fd4f23f605 100644 --- a/drivers/media/video/bt8xx/bttvp.h +++ b/drivers/media/video/bt8xx/bttvp.h | |||
@@ -440,6 +440,7 @@ struct bttv { | |||
440 | /* radio data/state */ | 440 | /* radio data/state */ |
441 | int has_radio; | 441 | int has_radio; |
442 | int radio_user; | 442 | int radio_user; |
443 | int radio_uses_msp_demodulator; | ||
443 | 444 | ||
444 | /* miro/pinnacle + Aimslab VHX | 445 | /* miro/pinnacle + Aimslab VHX |
445 | philips matchbox (tea5757 radio tuner) support */ | 446 | philips matchbox (tea5757 radio tuner) support */ |