Skip to content
Commit 6479c631 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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: default avatarTakashi Iwai <tiwai@suse.de>
parent 44179323
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment