]>
Commit | Line | Data |
---|---|---|
2bb74eb3 GKH |
1 | From stable-bounces@linux.kernel.org Tue Feb 6 10:16:59 2007 |
2 | From: Takashi Iwai <tiwai@suse.de> | |
3 | Date: Tue, 06 Feb 2007 19:15:26 +0100 | |
4 | Subject: hda-intel - Don't try to probe invalid codecs | |
5 | To: stable@kernel.org | |
6 | Message-ID: <s5hzm7rup8h.wl%tiwai@suse.de> | |
7 | ||
8 | From: Takashi Iwai <tiwai@suse.de> | |
9 | ||
10 | [ALSA] hda-intel - Don't try to probe invalid codecs | |
11 | ||
12 | Fix the max number of codecs detected by HD-intel (and compatible) | |
13 | controllers to 3. Some hardware reports extra bits as if | |
14 | connected, and the driver gets confused to probe unexisting codecs. | |
15 | ||
16 | Signed-off-by: Takashi Iwai <tiwai@suse.de> | |
17 | Signed-off-by: Jaroslav Kysela <perex@suse.cz> | |
18 | Signed-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 */ |