Bug 217008

Summary: ALC897: need to switch between Headphones and Mic
Product: Drivers Reporter: Lukasz Stelmach (stlman)
Component: Sound(ALSA)Assignee: Jaroslav Kysela (perex)
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: Intel   
OS: Linux   
Kernel Version: 5.10.158 / 6.2-rc6 Subsystem:
Regression: No Bisected commit-id:
Attachments: alsa-info output on HP EliteDesk 800 G6 Tower PC
ALSA: hda/realtek: Add quirk for HP EliteDesk 800 G6 Tower PC
ALSA: hda/realtek: Add quirk for HP EliteDesk 800 G6 Tower PC

Description Lukasz Stelmach 2023-02-06 20:27:58 UTC
Created attachment 303699 [details]
alsa-info output on HP EliteDesk 800 G6 Tower PC

The symptoms are exactly the same as in #216756 but on HP EliteDesk 800 G6 Tower PC (alsa-info output attached). Apparently pin configuration from ALC897_FIXUP_HP_HSMIC_VERB[1] applied via sysfs fixes the problem

  echo 0x19 0x01a1913c > /sys/class/sound/card0/device/sound/card0/hwC0D0/user_pin_configs
  echo 1 > /sys/class/sound/card0/device/sound/card0/hwC0D0/reconfig 

I am attaching the patch too. I haven't compiled it nor tested in any other way than above.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fe6900bd8156467365bd5b976df64928fdebfeb0
Comment 1 Lukasz Stelmach 2023-02-06 20:31:35 UTC
Created attachment 303700 [details]
ALSA: hda/realtek: Add quirk for HP EliteDesk 800 G6 Tower PC

The connector is in the front of the case, so, the location field of the pin configuration value does not match, but it works fine.
Comment 2 Lukasz Stelmach 2023-02-22 08:54:06 UTC
Created attachment 303771 [details]
ALSA: hda/realtek: Add quirk for HP EliteDesk 800 G6 Tower PC

Removed Change-Id footer.
Comment 3 Jaroslav Kysela 2023-02-22 09:09:53 UTC
Please, send the patch to the alsa-devel@alsa-project.org mailing list: https://www.alsa-project.org/wiki/Mailing-lists .