2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 06:34:11 +08:00

ALSA: hda - fix OOPS in hda_mark_cmd_cache_dirty

Obvious copy-paste error.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
David Henningsson 2013-01-15 15:27:19 +01:00 committed by Takashi Iwai
parent 52fd5cbc9b
commit f038fcaca8

View 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++) { for (i = 0; i < codec->amp_cache.buf.used; i++) {
struct hda_amp_info *amp; 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; amp->head.dirty = 1;
} }
} }