ALSA: hda/realtek - Support low power consumption for ALC295
authorKailang Yang <kailang@realtek.com>
Mon, 6 May 2019 07:09:42 +0000 (15:09 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 7 May 2019 09:18:21 +0000 (11:18 +0200)
commitd3ba58bb895915f7f9105e0844441d2ca7d83340
tree935823f39ee4fe1a92df3a441a4c91b936c9babf
parent7f641e26a6df9269cb25dd7a4b0a91d6586ed441
ALSA: hda/realtek - Support low power consumption for ALC295

Enter to close more power control widgets at suspend.
Remove hp_pin check. Add the default pin 0x21 as headphone.
Supported low power consumption, it must do depop procedure when
headset jack was plugged or unplugged.
So, alc225_init() and alc225_shutup() must run delay when headset
jack was plugged or unplugged.
If depop procedure not run with delay, it will have a chance to let
power consumption raise high.

[ A few compile fixes by tiwai ]

Fixes: 8983eb602af5 ("ALSA: hda/realtek - Move to ACT_INIT state")
Signed-off-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c