]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
[ALSA] hda-codec - Fix number of pin widgets with STAC codecs
authorTakashi Iwai <tiwai@suse.de>
Fri, 6 Jul 2007 16:17:04 +0000 (18:17 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 20 Jul 2007 09:11:46 +0000 (11:11 +0200)
commita4eed138add1018846d17e813560b0c7c0ae8e01
tree8b91f05a7b466829b4aaee1864eb4d47e0e06905
parent47a2327eac01fa944ab935fc5bb03c3032b2ec37
[ALSA] hda-codec - Fix number of pin widgets with STAC codecs

Use ARRAY_SIZE() to calculate the number of pin widgets for each codec
chip.
This also fixes a typo in STAC9205 code that gives a wrong number (14
instead of 12), which resulted in fatal communication errors.

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