]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/realtek: Fix speaker amp on HP Envy AiO 32
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 May 2021 09:18:02 +0000 (11:18 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 4 May 2021 09:19:21 +0000 (11:19 +0200)
commit0f3ec573e08384ae614426eac3c4876ef7749360
treed77aa76d085d1b2e3946bf5568389b0c15d16004
parent6230bf2aeb30ada9ca08212c86e0eccba1bea84f
ALSA: hda/realtek: Fix speaker amp on HP Envy AiO 32

HP Envy AiO 32-a12xxx has an external amp that is controlled via GPIO
bit 0x04.  However, unlike other devices, this amp seems to shut down
itself after the certain period, hence the OS needs to up/down the bit
dynamically only during the actual playback.

This patch adds the control of the GPIO bit via the existing pcm_hook
mechanism.  Ideally it should be triggered at the actual stream start,
but we have only the state change at prepare/cleanup, so use those for
switching the GPIO bit on/off.  This should be good enough for the
purpose, and was actually confirmed to work fine.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=212873
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210504091802.13200-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c