From 30f7c5d491ec2d515148882fa0b4080ab61d4bb0 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <tiwai@suse.de>
Date: Tue, 21 Jun 2011 08:37:41 +0200
Subject: [PATCH] ALSA: hda - Use xxx Boost Volume for VIA
Git-commit: 30f7c5d491ec2d515148882fa0b4080ab61d4bb0
Patch-mainline: 3.1-rc2
References: FATE#314310

Drop "Capture" prefix from the mic-boost names.
Otherwise some control names can overflow the max name length.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

---
 sound/pci/hda/patch_via.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/sound/pci/hda/patch_via.c
+++ b/sound/pci/hda/patch_via.c
@@ -1948,7 +1948,7 @@ static int via_auto_create_analog_input_
 		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)
