]> www.infradead.org Git - linux-platform-drivers-x86.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)
commit622464c893142f7beac89f5ba8c9773bca5e5004
treed77aa76d085d1b2e3946bf5568389b0c15d16004
parent8eedd3a70a70f51fa963f3ad7fa97afd0c75bd44
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