Commit 30f7c5d4 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Use xxx Boost Volume for VIA

Drop "Capture" prefix from the mic-boost names.
Otherwise some control names can overflow the max name length.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 216c7a0f
...@@ -1947,7 +1947,7 @@ static int via_auto_create_analog_input_ctls(struct hda_codec *codec, ...@@ -1947,7 +1947,7 @@ static int via_auto_create_analog_input_ctls(struct hda_codec *codec,
if (caps == -1 || !(caps & AC_AMPCAP_NUM_STEPS)) if (caps == -1 || !(caps & AC_AMPCAP_NUM_STEPS))
continue; continue;
label = hda_get_autocfg_input_label(codec, cfg, i); label = hda_get_autocfg_input_label(codec, cfg, i);
snprintf(name, sizeof(name), "%s Boost Capture Volume", label); snprintf(name, sizeof(name), "%s Boost Volume", label);
err = via_add_control(spec, VIA_CTL_WIDGET_VOL, name, err = via_add_control(spec, VIA_CTL_WIDGET_VOL, name,
HDA_COMPOSE_AMP_VAL(pin, 3, 0, HDA_INPUT)); HDA_COMPOSE_AMP_VAL(pin, 3, 0, HDA_INPUT));
if (err < 0) if (err < 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