ALSA: hda - Fix wrong dirty check in snd_hda_codec_resume_amp()
authorTakashi Iwai <tiwai@suse.de>
Thu, 20 Dec 2012 11:54:18 +0000 (12:54 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jan 2013 07:34:06 +0000 (08:34 +0100)
commit8565f052c5f696ba095a078ea7dbac32460012be
tree137f79d35c0eb4f5643d3333f12023c01acb8e85
parent3bbcd274c295011e9377053ff46f725ad5e7dbc0
ALSA: hda - Fix wrong dirty check in snd_hda_codec_resume_amp()

The dirty entry has to be checked at the beginning in the loop, not in
the inner loop for channels.  This caused a regression that the right
channel isn't properly written.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c