From: Takashi Iwai Date: Tue, 21 Jun 2011 06:37:41 +0000 (+0200) Subject: ALSA: hda - Use xxx Boost Volume for VIA X-Git-Tag: MMI-PSA29.97-13-9~18103^2~124^2~69^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=30f7c5d491ec2d515148882fa0b4080ab61d4bb0;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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: Takashi Iwai --- diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index 819267a4e2df..51e7ce010543 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c @@ -1947,7 +1947,7 @@ static int via_auto_create_analog_input_ctls(struct hda_codec *codec, if (caps == -1 || !(caps & AC_AMPCAP_NUM_STEPS)) continue; 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, HDA_COMPOSE_AMP_VAL(pin, 3, 0, HDA_INPUT)); if (err < 0)