ALSA: hda/realtek - Support low power consumption for ALC256
authorKailang Yang <kailang@realtek.com>
Wed, 8 May 2019 08:27:03 +0000 (16:27 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 8 May 2019 08:43:16 +0000 (10:43 +0200)
commit6447c962bc47a58c5ddb27d1c7c7dc45ca90bad0
tree948c0c80f72b63b4d3a6136b1b2285b9aad45bc7
parent5095c418b939186c2eac4fabf14d0036656a8ab1
ALSA: hda/realtek - Support low power consumption for ALC256

Remove hp_pin = 0 return. Add the default pin 0x21 as headphone.
Supported low power consumption, it must do depop procedure when
headset jack was plugged or unplugged.
So, alc256_init() and alc256_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.

[ NOTE: this is a quite quite similar change for ALC295 by commit
  d3ba58bb8959 ("ALSA: hda/realtek - Support low power consumption for
  ALC295"), but applied to ALC256 codec instead -- 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