ALSA: hda - fix OOPS in hda_mark_cmd_cache_dirty
authorDavid Henningsson <david.henningsson@canonical.com>
Tue, 15 Jan 2013 14:27:19 +0000 (15:27 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 15 Jan 2013 14:32:46 +0000 (15:32 +0100)
Obvious copy-paste error.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c

index b28e4031b8a1adeb988598ceb2804deb5534c205..e6cdad713734dc9a1af62a31511ca81440775848 100644 (file)
@@ -3794,7 +3794,7 @@ static void hda_mark_cmd_cache_dirty(struct hda_codec *codec)
        }
        for (i = 0; i < codec->amp_cache.buf.used; i++) {
                struct hda_amp_info *amp;
-               amp = snd_array_elem(&codec->cmd_cache.buf, i);
+               amp = snd_array_elem(&codec->amp_cache.buf, i);
                amp->head.dirty = 1;
        }
 }