Bug 204727
Summary: | No sound from speakers since kernel 5.1.4 on Positivo Mobile W98 | ||
---|---|---|---|
Product: | Drivers | Reporter: | xenobro (hcdorn) |
Component: | Sound(ALSA) | Assignee: | Jaroslav Kysela (perex) |
Status: | RESOLVED CODE_FIX | ||
Severity: | high | CC: | tiwai |
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
Kernel Version: | 5.1.4 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
alsa-info.txt, kernel 5.1.3
alsa-info.txt, kernel 5.1.4 lscpu lshw dmesg|grep snd Test fix patch Revised fix patch alsa-info, 5.1.3, coef, unpatched, speakers work. alsa-info, 5.1.3 127f4cbfbe5b, coef, unpatched, speakers work alsa-info, 5.1.3 7d2e0a8c884f, coef, unpatched, no speakers alsa-info, 5.1.4, coef, unpatched, no speakers alsa-info, 5.2.11, coef, unpatched, no speakers alsa-info, 5.1.3 7d2e0a8c884f, coef, 2nd patch, speakers work alsa-info, 5.1.4, coef, 2nd patch, speakers work alsa-info, 5.2.11, coef, 2nd patch, speakers work |
Description
xenobro
2019-08-29 00:09:32 UTC
Steps to reproduce the issue: 1. Boot/Install any Linux with sound support and any kernel up to 5.1.3 2. speaker-test -c2 -twav (<-speakers work) 3. Boot/Install any Linux with sound support and any kernel since 5.1.4 4. speaker-test -c2 -twav (<-speakers don't work) If any other info is needed, just tell me and I'll post it. Thank you in advance, xenobro. Created attachment 284681 [details]
alsa-info.txt, kernel 5.1.4
Created attachment 284683 [details]
lscpu
Created attachment 284685 [details]
lshw
Created attachment 284687 [details]
dmesg|grep snd
And reverting the commit 7d2e0a8c884f2 fixes the problem? Also, could you enable COEF dump like echo 1 > /sys/module/snd_hda_codec/parameters/dump_coef and get alsa-info.sh outputs on both kernels to compare the difference of COEF? ... and below is the potential fix patch. Let me know if this works. Created attachment 284689 [details]
Test fix patch
There are changes not only EAPD COEF but also BTLENABLE verb. It's easier to simply move the verb calls instead of papering over all places. The revised patch is below. I've tested with hdaemu, and confirmed that it fixes for various devices. I'm going to submit and merge to upstream at the next occasion. Created attachment 284703 [details]
Revised fix patch
Thank you very much for your help, Mr. Iwai. I've tested the previous patch with kernels 5.1.3 commit 7d2e0a8c884f (blamed by git bisect for the issue), 5.1.4 and 5.2.11 (the latest stable) and it worked perfectly, it solved the issue. I'll test the new one and report until Monday. I ran alsa-info.sh with dump_coef enabled for each mentioned kernel with and without the previous patch, but since there's a new one, I'll upload the unpatched results now and the newly patched ones later. Finally, downgrading the kernel to 5.1.3 commit 127f4cbfbe5b (the last unpatched version with working speakers) does solve the issue, though I'm not sure if "pacman -U" in Arch Linux is what you meant by reverting the commit. Thank you once again and I'll report the results soon, xenobro. Created attachment 284711 [details]
alsa-info, 5.1.3, coef, unpatched, speakers work.
Created attachment 284713 [details]
alsa-info, 5.1.3 127f4cbfbe5b, coef, unpatched, speakers work
Created attachment 284715 [details]
alsa-info, 5.1.3 7d2e0a8c884f, coef, unpatched, no speakers
Created attachment 284717 [details]
alsa-info, 5.1.4, coef, unpatched, no speakers
Created attachment 284719 [details]
alsa-info, 5.2.11, coef, unpatched, no speakers
Good to hear, and thank you for testing. The patch will be included in 5.3-rc7 in the next week, and will be backported to stable trees after that. Mr. Iwai, I'm just here to upload the results of alsa-info.sh with dump_coef enabled for kernels 5.2.11 (latest stable), 5.1.4 (the 1st to have the issue) and 5.1.3 7d2e0a8c884f (blamed by git bisect) with the 2nd patch applied and speakers working again, as I said I'd do it. Once again, thank you very much, xenobro. Created attachment 284799 [details]
alsa-info, 5.1.3 7d2e0a8c884f, coef, 2nd patch, speakers work
Created attachment 284801 [details]
alsa-info, 5.1.4, coef, 2nd patch, speakers work
Created attachment 284803 [details]
alsa-info, 5.2.11, coef, 2nd patch, speakers work
|