Bug 217008 - ALC897: need to switch between Headphones and Mic
Summary: ALC897: need to switch between Headphones and Mic
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Sound(ALSA) (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: Jaroslav Kysela
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-06 20:27 UTC by Lukasz Stelmach
Modified: 2023-02-22 09:09 UTC (History)
0 users

See Also:
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 (44.60 KB, text/plain)
2023-02-06 20:27 UTC, Lukasz Stelmach
Details
ALSA: hda/realtek: Add quirk for HP EliteDesk 800 G6 Tower PC (1.58 KB, patch)
2023-02-06 20:31 UTC, Lukasz Stelmach
Details | Diff
ALSA: hda/realtek: Add quirk for HP EliteDesk 800 G6 Tower PC (1.52 KB, patch)
2023-02-22 08:54 UTC, Lukasz Stelmach
Details | Diff

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 .

Note You need to log in before you can comment on or make changes to this bug.