ALSA: hda - Create "Input Source" control dynamically for STAC/IDT
authorTakashi Iwai <tiwai@suse.de>
Fri, 23 Jan 2009 10:57:22 +0000 (11:57 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 23 Jan 2009 10:57:22 +0000 (11:57 +0100)
commite3c75964666a27cec46d2cccf2d9806336becd48
tree5b961f9f0aa389b5e17464c77e597cee033f4153
parent028b9445b4b10fa8da61ba7cf14ff72cc877ef41
ALSA: hda - Create "Input Source" control dynamically for STAC/IDT

Instead of fixed kcontrol_new element, build "Input Source" controls
dynamically.  If the number of input-source items is 0 or 1, we don't
need to create such a control.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_sigmatel.c