Commit 71eb7dcc authored by Lydia Wang's avatar Lydia Wang Committed by Takashi Iwai

ALSA: HDA VIA: rename vt1708_control_templates[].

To via_control_templates[].
Signed-off-by: default avatarLydia Wang <lydiawang@viatech.com.cn>
Signed-off-by: default avatarLogan Li <loganli@viatech.com.cn>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent ab6734e7
...@@ -367,7 +367,7 @@ static int bind_pin_switch_put(struct snd_kcontrol *kcontrol, ...@@ -367,7 +367,7 @@ static int bind_pin_switch_put(struct snd_kcontrol *kcontrol,
.put = bind_pin_switch_put, \ .put = bind_pin_switch_put, \
.private_value = HDA_COMPOSE_AMP_VAL(0, 3, 0, 0) } .private_value = HDA_COMPOSE_AMP_VAL(0, 3, 0, 0) }
static struct snd_kcontrol_new vt1708_control_templates[] = { static struct snd_kcontrol_new via_control_templates[] = {
HDA_CODEC_VOLUME(NULL, 0, 0, 0), HDA_CODEC_VOLUME(NULL, 0, 0, 0),
HDA_CODEC_MUTE(NULL, 0, 0, 0), HDA_CODEC_MUTE(NULL, 0, 0, 0),
ANALOG_INPUT_MUTE, ANALOG_INPUT_MUTE,
...@@ -430,7 +430,7 @@ static int via_add_control(struct via_spec *spec, int type, const char *name, ...@@ -430,7 +430,7 @@ static int via_add_control(struct via_spec *spec, int type, const char *name,
knew = snd_array_new(&spec->kctls); knew = snd_array_new(&spec->kctls);
if (!knew) if (!knew)
return -ENOMEM; return -ENOMEM;
*knew = vt1708_control_templates[type]; *knew = via_control_templates[type];
knew->name = kstrdup(name, GFP_KERNEL); knew->name = kstrdup(name, GFP_KERNEL);
if (!knew->name) if (!knew->name)
return -ENOMEM; return -ENOMEM;
......
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