]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitee34af787a3e1796e7c42c7e0780147b882ad9ba
tree016891c36c141beb4e098781a711e23f8e43d259
parentaff64e3de0e14be8df032cacf466a82cb7241341
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