--------------------- PatchSet 3080 Date: 2005/03/29 16:33:28 Author: tiwai Branch: HEAD Tag: (none) Log: Summary: Fix the detection of resolution of ac97 controls Fixed the detection of bit resolution of ac97 mixer controls. This will fix the problem with TI ac97 codecs. Members: pci/ac97/ac97_codec.c:1.179->1.180 Index: /sound/pci/ac97/ac97_codec.c diff -u /sound/pci/ac97/ac97_codec.c.old /sound/pci/ac97/ac97_codec.c --- /sound/pci/ac97/ac97_codec.c.old Wed Mar 23 09:04:16 2005 +++ /sound/pci/ac97/ac97_codec.c Tue Mar 29 07:33:28 2005 @@ -1072,9 +1072,9 @@ unsigned short val; snd_ac97_write(ac97, reg, 0x8080 | cbit[i] | (cbit[i] << 8)); val = snd_ac97_read(ac97, reg); - if (! *lo_max && (val & cbit[i])) + if (! *lo_max && (val & 0x7f) == cbit[i]) *lo_max = max[i]; - if (! *hi_max && (val & (cbit[i] << 8))) + if (! *hi_max && ((val >> 8) & 0x7f) == cbit[i]) *hi_max = max[i]; if (*lo_max && *hi_max) break;