aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/pci/ac97/ac97_codec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c
index 0b024ec1f709..7d2854de0c10 100644
--- a/sound/pci/ac97/ac97_codec.c
+++ b/sound/pci/ac97/ac97_codec.c
@@ -1072,9 +1072,9 @@ static void check_volume_resolution(ac97_t *ac97, int reg, unsigned char *lo_max
1072 unsigned short val; 1072 unsigned short val;
1073 snd_ac97_write(ac97, reg, 0x8080 | cbit[i] | (cbit[i] << 8)); 1073 snd_ac97_write(ac97, reg, 0x8080 | cbit[i] | (cbit[i] << 8));
1074 val = snd_ac97_read(ac97, reg); 1074 val = snd_ac97_read(ac97, reg);
1075 if (! *lo_max && (val & cbit[i])) 1075 if (! *lo_max && (val & 0x7f) == cbit[i])
1076 *lo_max = max[i]; 1076 *lo_max = max[i];
1077 if (! *hi_max && (val & (cbit[i] << 8))) 1077 if (! *hi_max && ((val >> 8) & 0x7f) == cbit[i])
1078 *hi_max = max[i]; 1078 *hi_max = max[i];
1079 if (*lo_max && *hi_max) 1079 if (*lo_max && *hi_max)
1080 break; 1080 break;