Skip to content

Commit

Permalink
[media] bttv: rename field 'audio' in struct 'bttv' to 'audio_input'
Browse files Browse the repository at this point in the history
'audio_input' better describes the meaning of this field.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Frank Schaefer authored and Mauro Carvalho Chehab committed Mar 23, 2013
1 parent 20167f1 commit 2166f0a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion drivers/media/pci/bt8xx/bttv-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -3947,7 +3947,7 @@ static void avermedia_eeprom(struct bttv *btv)
u32 bttv_tda9880_setnorm(struct bttv *btv, u32 gpiobits)
{

if (btv->audio == TVAUDIO_INPUT_TUNER) {
if (btv->audio_input == TVAUDIO_INPUT_TUNER) {
if (bttv_tvnorms[btv->tvnorm].v4l2_id & V4L2_STD_MN)
gpiobits |= 0x10000;
else
Expand Down
12 changes: 6 additions & 6 deletions drivers/media/pci/bt8xx/bttv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ audio_mux(struct bttv *btv, int input, int mute)
static inline int
audio_mute(struct bttv *btv, int mute)
{
return audio_mux(btv, btv->audio, mute);
return audio_mux(btv, btv->audio_input, mute);
}

static inline int
Expand Down Expand Up @@ -1195,9 +1195,9 @@ set_input(struct bttv *btv, unsigned int input, unsigned int norm)
} else {
video_mux(btv,input);
}
btv->audio = (btv->tuner_type != TUNER_ABSENT && input == 0) ?
TVAUDIO_INPUT_TUNER : TVAUDIO_INPUT_EXTERN;
audio_input(btv, btv->audio);
btv->audio_input = (btv->tuner_type != TUNER_ABSENT && input == 0) ?
TVAUDIO_INPUT_TUNER : TVAUDIO_INPUT_EXTERN;
audio_input(btv, btv->audio_input);
set_tvnorm(btv, norm);
}

Expand Down Expand Up @@ -1706,8 +1706,8 @@ static void radio_enable(struct bttv *btv)
if (!btv->has_radio_tuner) {
btv->has_radio_tuner = 1;
bttv_call_all(btv, tuner, s_radio);
btv->audio = TVAUDIO_INPUT_RADIO;
audio_input(btv, btv->audio);
btv->audio_input = TVAUDIO_INPUT_RADIO;
audio_input(btv, btv->audio_input);
}
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/media/pci/bt8xx/bttvp.h
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ struct bttv {

/* video state */
unsigned int input;
unsigned int audio;
unsigned int audio_input;
unsigned int mute;
unsigned long tv_freq;
unsigned int tvnorm;
Expand Down

0 comments on commit 2166f0a

Please sign in to comment.