Skip to content

Commit

Permalink
ALSA: hda - Create Capture controls dynamically
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai committed Jul 28, 2009
1 parent 4417932 commit 6479c63
Showing 1 changed file with 125 additions and 95 deletions.
Loading

0 comments on commit 6479c63

Please sign in to comment.