ALSA: hda - Check power-state before changing in patch_via.c
authorTakashi Iwai <tiwai@suse.de>
Tue, 24 Jan 2012 11:25:50 +0000 (12:25 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 2 Feb 2012 09:15:16 +0000 (10:15 +0100)
Instead of always writing AC_VERB_SET_POWER_STATE, check the current
power-state and don't write again if the value is already set.
This may reduce the click noise upon the dynamic power-state change
(e.g. in analog-input mixer).

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

Simple merge