From: Takashi Iwai Date: Tue, 28 Jul 2009 16:20:25 +0000 (+0200) Subject: ALSA: hda - Create Capture controls dynamically X-Git-Tag: v2.6.32-rc1~732^2~13^2~58 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6479c63188290beae83ade3243b9d6eb47d394b6;p=pandora-kernel.git ALSA: hda - Create Capture controls dynamically Instead of static snd_kcontrol_new arrays, create "Capture Volume" and "Capture Switch" controls dynamically based on the mixer attr values (made via HDA_COMPOSE_AMP_VAL()). This reduces the code size and gives more flexibility to change the number of controls later. Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed