ALSA: hda/realtek - Check headset type by unplug and resume
authorKailang Yang <kailang@realtek.com>
Thu, 16 May 2019 08:10:44 +0000 (16:10 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 22 May 2019 12:09:00 +0000 (14:09 +0200)
commitaeac1a0dadb4ab699a61136a5729d048abe6ee5f
tree0d6fa429d2d8487176eed7c818387176b41b36c6
parenta188339ca5a396acc588e5851ed7e19f66b0ebd9
ALSA: hda/realtek - Check headset type by unplug and resume

When system enable HDA power save mode.
This issue will happen on new platform which DMIC connect to PCH.
In Dell headset mode, it will recheck during runtime resume when
headset was plugged.
This patch will move check headset type on unplug and system resume.

[ A few minor code cleanups by tiwai ]

Signed-off-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c