ALSA: hda - Refactor input-pin parser for VIA codecs
authorTakashi Iwai <tiwai@suse.de>
Mon, 30 Aug 2010 09:00:19 +0000 (11:00 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 30 Aug 2010 09:00:19 +0000 (11:00 +0200)
commitf3268512c3a5dea587cfe875b8bca98d9e164cd9
tree3d9a79d10eb04d001840daf9c2606ecf8315cc02
parent73413b120d5d6eb6c98451bbc19acf43e0e300ae
ALSA: hda - Refactor input-pin parser for VIA codecs

patch_via.c has redundant codes for parsing the input-pins.  Although
they are pretty similar, but all implemented in different functions
just because of hard-coded ids and slight incompatibilities.
This patch refactors the codes to use the common helper function,
resulting in the reduction of many lines.

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