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)
commit054d867e032daf55c3343fc6d36c5c5f1e7954db
tree016891c36c141beb4e098781a711e23f8e43d259
parent54c2a89f60fd71b924d0f848ac892442951401a6
ALSA: hda - Check power-state before changing in patch_via.c

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