Commit 20167f17 authored by Frank Schaefer's avatar Frank Schaefer Committed by Mauro Carvalho Chehab

[media] bttv: do not save the audio input in audio_mux()

We can't and do not save the mute setting in function audio_mux(), so we
should also not save the input in this function for consistency.
Signed-off-by: default avatarFrank Schäfer <fschaefer.oss@googlemail.com>
Acked-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 598728e9
...@@ -999,8 +999,6 @@ audio_mux(struct bttv *btv, int input, int mute) ...@@ -999,8 +999,6 @@ audio_mux(struct bttv *btv, int input, int mute)
bttv_tvcards[btv->c.type].gpiomask); bttv_tvcards[btv->c.type].gpiomask);
signal = btread(BT848_DSTATUS) & BT848_DSTATUS_HLOC; signal = btread(BT848_DSTATUS) & BT848_DSTATUS_HLOC;
btv->audio = input;
/* automute */ /* automute */
mute_gpio = mute || (btv->opt_automute && (!signal || !btv->users) mute_gpio = mute || (btv->opt_automute && (!signal || !btv->users)
&& !btv->has_radio_tuner); && !btv->has_radio_tuner);
...@@ -1197,8 +1195,9 @@ set_input(struct bttv *btv, unsigned int input, unsigned int norm) ...@@ -1197,8 +1195,9 @@ set_input(struct bttv *btv, unsigned int input, unsigned int norm)
} else { } else {
video_mux(btv,input); video_mux(btv,input);
} }
audio_input(btv, (btv->tuner_type != TUNER_ABSENT && input == 0) ? btv->audio = (btv->tuner_type != TUNER_ABSENT && input == 0) ?
TVAUDIO_INPUT_TUNER : TVAUDIO_INPUT_EXTERN); TVAUDIO_INPUT_TUNER : TVAUDIO_INPUT_EXTERN;
audio_input(btv, btv->audio);
set_tvnorm(btv, norm); set_tvnorm(btv, norm);
} }
...@@ -1707,7 +1706,8 @@ static void radio_enable(struct bttv *btv) ...@@ -1707,7 +1706,8 @@ static void radio_enable(struct bttv *btv)
if (!btv->has_radio_tuner) { if (!btv->has_radio_tuner) {
btv->has_radio_tuner = 1; btv->has_radio_tuner = 1;
bttv_call_all(btv, tuner, s_radio); bttv_call_all(btv, tuner, s_radio);
audio_input(btv, TVAUDIO_INPUT_RADIO); btv->audio = TVAUDIO_INPUT_RADIO;
audio_input(btv, btv->audio);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment