diff options
-rw-r--r-- | sound/pci/oxygen/virtuoso.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/oxygen/virtuoso.c b/sound/pci/oxygen/virtuoso.c index d163397b85cc..e4e23789080a 100644 --- a/sound/pci/oxygen/virtuoso.c +++ b/sound/pci/oxygen/virtuoso.c | |||
@@ -274,12 +274,12 @@ static void xonar_gpio_changed(struct oxygen *chip) | |||
274 | 274 | ||
275 | static void mute_ac97_ctl(struct oxygen *chip, unsigned int control) | 275 | static void mute_ac97_ctl(struct oxygen *chip, unsigned int control) |
276 | { | 276 | { |
277 | unsigned int index = chip->controls[control]->private_value & 0xff; | 277 | unsigned int priv_idx = chip->controls[control]->private_value & 0xff; |
278 | u16 value; | 278 | u16 value; |
279 | 279 | ||
280 | value = oxygen_read_ac97(chip, 0, index); | 280 | value = oxygen_read_ac97(chip, 0, priv_idx); |
281 | if (!(value & 0x8000)) { | 281 | if (!(value & 0x8000)) { |
282 | oxygen_write_ac97(chip, 0, index, value | 0x8000); | 282 | oxygen_write_ac97(chip, 0, priv_idx, value | 0x8000); |
283 | snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, | 283 | snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, |
284 | &chip->controls[control]->id); | 284 | &chip->controls[control]->id); |
285 | } | 285 | } |