Commit 3463d8fa authored by Harvey Harrison's avatar Harvey Harrison Committed by Takashi Iwai

[ALSA] sound: es1968.c fox shadowed variable warning

id is used when initializing the mixer elements, use elem_id here
instead.
sound/pci/es1968.c:1963:25: warning: symbol 'id' shadows an earlier one
sound/pci/es1968.c:129:13: originally declared here
Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 405b0a37
...@@ -1972,7 +1972,7 @@ snd_es1968_mixer(struct es1968 *chip) ...@@ -1972,7 +1972,7 @@ snd_es1968_mixer(struct es1968 *chip)
{ {
struct snd_ac97_bus *pbus; struct snd_ac97_bus *pbus;
struct snd_ac97_template ac97; struct snd_ac97_template ac97;
struct snd_ctl_elem_id id; struct snd_ctl_elem_id elem_id;
int err; int err;
static struct snd_ac97_bus_ops ops = { static struct snd_ac97_bus_ops ops = {
.write = snd_es1968_ac97_write, .write = snd_es1968_ac97_write,
...@@ -1989,14 +1989,14 @@ snd_es1968_mixer(struct es1968 *chip) ...@@ -1989,14 +1989,14 @@ snd_es1968_mixer(struct es1968 *chip)
return err; return err;
/* attach master switch / volumes for h/w volume control */ /* attach master switch / volumes for h/w volume control */
memset(&id, 0, sizeof(id)); memset(&elem_id, 0, sizeof(elem_id));
id.iface = SNDRV_CTL_ELEM_IFACE_MIXER; elem_id.iface = SNDRV_CTL_ELEM_IFACE_MIXER;
strcpy(id.name, "Master Playback Switch"); strcpy(elem_id.name, "Master Playback Switch");
chip->master_switch = snd_ctl_find_id(chip->card, &id); chip->master_switch = snd_ctl_find_id(chip->card, &elem_id);
memset(&id, 0, sizeof(id)); memset(&elem_id, 0, sizeof(elem_id));
id.iface = SNDRV_CTL_ELEM_IFACE_MIXER; elem_id.iface = SNDRV_CTL_ELEM_IFACE_MIXER;
strcpy(id.name, "Master Playback Volume"); strcpy(elem_id.name, "Master Playback Volume");
chip->master_volume = snd_ctl_find_id(chip->card, &id); chip->master_volume = snd_ctl_find_id(chip->card, &elem_id);
return 0; return 0;
} }
......
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