]> git.baikalelectronics.ru Git - kernel.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)
commitd11e96ba2465b66618e3c59f7f65dfc5347aebf5
tree8b91f05a7b466829b4aaee1864eb4d47e0e06905
parent8cae9a40d84e1193327ae4e17ca44b66abbd6ecf
[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