ALSA: hda - Create Capture controls dynamically
authorTakashi Iwai <tiwai@suse.de>
Tue, 28 Jul 2009 16:20:25 +0000 (18:20 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 Jul 2009 16:25:03 +0000 (18:25 +0200)
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 <tiwai@suse.de>

No differences found