hda-intel - Fix codec probe with ATI controllers
authorTakashi Iwai <tiwai@suse.de>
Sun, 18 Mar 2007 22:19:29 +0000 (18:19 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 23 Mar 2007 19:49:26 +0000 (12:49 -0700)
commit0a67204c5d11aca00fafc3ebe95be9a72447f70c
treee343fe77b644cd9b94b8b54353db09260d6c313f
parentc04a52befd3ae4bdb755fd1e4538d20a6711fd5b
hda-intel - Fix codec probe with ATI controllers

[ALSA] hda-intel - Fix codec probe with ATI contorllers

ATI controllers may have up to 4 codecs while ICH up to 3.
Thus the earlier fix to change AZX_MAX_CODECS to 3 cause a regression
on some devices that have the audio codec at bit#3.
Now max codecs is defined according to the driver type, either 3 or 4.
Currently 4 is set only to ATI chips.  Other might need the same
change, too.

Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/hda/hda_intel.c