Bug 212733
Summary: | HP OMEN Laptop dc0019-ur: needs alsa quirk for proper microphone use, mute led | ||
---|---|---|---|
Product: | Drivers | Reporter: | Lukas Veitas (lveitas956) |
Component: | Sound(ALSA) | Assignee: | Jaroslav Kysela (perex) |
Status: | REOPENED --- | ||
Severity: | normal | CC: | tiwai |
Priority: | P1 | ||
Hardware: | Intel | ||
OS: | Linux | ||
Kernel Version: | 5.11.15 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
Screenshot of audio mixer, microphone section, when workarounds are applied
Test fix patch Test recording using internal mic with crackling sounds dmesg output alsa-info.sh file (using patched kernel) Alsa-mixer [Capture] section when patch is applied Alsa-mixer [All] section when patch is applied |
Description
Lukas Veitas
2021-04-20 10:05:53 UTC
To expand on hdajackretask: I am not sure what I have changed there, I am also not sure if all those changes are necessary or proper/correct. I tinkered with it a bunch of times until I had everything working fine. Thanks for the report. Could you check whether the patch below works? Created attachment 296601 [details]
Test fix patch
(In reply to Takashi Iwai from comment #3) > Created attachment 296601 [details] > Test fix patch I'll try testing it later this day. Seems like Manjaro does not want to compile alsa from AUR without dependency breakage. I will try Ubuntu liveCD (it allows full alsa restart quite easily), or install arch/gentoo into usb stick. I don't know if there are simpler solutions, hope that this will suffice. Thanks for the patch, stay tuned (hehe). Well, the patch is for kernel, not alsa-lib or such. Just to be sure. Makes sense as this is a kernel bugzilla... Sorry, I mixed ALSA from kernel and ALSA as application/library. I've started compiling the kernel. Sorry for the delay. I've compiled the kernel, disabled the workarounds, works just like with the workaround. Booted to another (non-patched) kernel to be sure, did not work. So, in conclusion - it works :) Some issues popped up as I haven't tested it very well... I am not sure if those issues are related to Pipewire or bad headphones microphone (or my OS misconfiguration, for that matter). In any case, I'll do more testing to see that everything is working OK. Hold on to the patch for now. Hrm, OK. The patch hasn't been merged yet, so ping me if it actually works or more changes are needed. Created attachment 296631 [details]
Test recording using internal mic with crackling sounds
Every component works fine, except internal mic. It *had* issues before the workaround (stock kernel and no hdajackretask'ing), but it was different (actually, worse). Now it presents low-volume though noticeable small crackling sound. I tried checking if AC adapter would cause this, and the issue still appeared. Could be that the internal mic is trash, or the circuitry is inadequate in suppressing electrical noise. To be honest, the situation is improved with this patch in all fronts, and only somewhat incomplete fix is internal mic, that still works better than without all the trickery. Current concerns are of nitpicky nature (though, I believe, valid). I will try poking around a bit, maybe also trying stock OEM drivers on top of Windows 10 PE. I would also like to add, that current patch could, in my opinion go upstream as-is. Could you give alsa-info.sh output and dmesg output? I'm not sure about the built-in mic problem. It could be that the system needs to use ASoC SOF driver instead for DMIC. Usually the system chooses the right one depending on the existence of DSP, etc, which can be seen in the kernel log. Meanwhile I submitted the current patch. It'll be merged in 5.13-rc1 likely in the next week. Created attachment 296635 [details]
dmesg output
dmesg output (with patched liquorix 5.11.18 kernel)
Created attachment 296637 [details]
alsa-info.sh file (using patched kernel)
alsa-info.sh script (version 0.5.0) generated file with patched Liquorix 5.11.18 kernel
Though alsa-info will most likely show this, but there are few unnecessary/unusable controls present in alsa-mixer. 1) S/PDIF and S/PDIF{1-4} can only be muted/unmuted (with volume level 0) though I am not sure if this is OK / not OK. 2) "Mic Mute-LED Mode" is unnecesary as the keyboard has only sound (speakers/headphones jack) mute led. 3) [Playback] has all items of [Capture], resulting in duplicates when watching [All] (controlling one of these will control BOTH. Also not sure if this for some legitimate reason. Created attachment 296641 [details]
Alsa-mixer [Capture] section when patch is applied
Created attachment 296643 [details]
Alsa-mixer [All] section when patch is applied
Both can be safely ignored. The SPDIF here are rather about HDMI/DP digital bits, so they are valid controls. The mic-mute LED stuff is harmless (although it's useless). In 5.13 kernel, this control was moved to a sysfs entry, and is even less bothering. |