]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/2.6.20.2/hda-intel-don-t-try-to-probe-invalid-codecs.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 2.6.20.2 / hda-intel-don-t-try-to-probe-invalid-codecs.patch
CommitLineData
2bb74eb3
GKH
1From stable-bounces@linux.kernel.org Tue Feb 6 10:16:59 2007
2From: Takashi Iwai <tiwai@suse.de>
3Date: Tue, 06 Feb 2007 19:15:26 +0100
4Subject: hda-intel - Don't try to probe invalid codecs
5To: stable@kernel.org
6Message-ID: <s5hzm7rup8h.wl%tiwai@suse.de>
7
8From: Takashi Iwai <tiwai@suse.de>
9
10[ALSA] hda-intel - Don't try to probe invalid codecs
11
12Fix the max number of codecs detected by HD-intel (and compatible)
13controllers to 3. Some hardware reports extra bits as if
14connected, and the driver gets confused to probe unexisting codecs.
15
16Signed-off-by: Takashi Iwai <tiwai@suse.de>
17Signed-off-by: Jaroslav Kysela <perex@suse.cz>
18Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
19
20
21---
22 sound/pci/hda/hda_intel.c | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25--- linux-2.6.20.1.orig/sound/pci/hda/hda_intel.c
26+++ linux-2.6.20.1/sound/pci/hda/hda_intel.c
27@@ -199,7 +199,7 @@ enum { SDI0, SDI1, SDI2, SDI3, SDO0, SDO
28
29 /* STATESTS int mask: SD2,SD1,SD0 */
30 #define STATESTS_INT_MASK 0x07
31-#define AZX_MAX_CODECS 4
32+#define AZX_MAX_CODECS 3
33
34 /* SD_CTL bits */
35 #define SD_CTL_STREAM_RESET 0x01 /* stream reset bit */