[Bug 1171246] New: Internal sound card not working on Bay Trail chip set (sound card chtmax98090)
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 Bug ID: 1171246 Summary: Internal sound card not working on Bay Trail chip set (sound card chtmax98090) Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.2 Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Sound Assignee: tiwai@suse.com Reporter: gtettamanzi@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 837439 --> http://bugzilla.opensuse.org/attachment.cgi?id=837439&action=edit Alsa info default kernele no ucm folder added Good day. I'm running 15.2 Plasma on a re purposed Chromebook Asus C300, Bay Trail hwid QUAWKS, sound cards chtmax98090 and HDA Intel PCH. The latter, hdmi sound device, is detected and it is working. Out of the box, the chtmax98090 is not presented in pulseaudio devices and therefore is not available. I added the /usr/share/alsa/ucm/chtmax98090/ which is available from GitHub (https://github.com/plbossart/UCM) - I patched the HiFi.conf (see attachments) to make intenal mics working. After reboot, the chtmax98090 is listed in pulseaudio devices but when selected is not playing any sound. I installed the vanilla kernel 5.7 from Kernel:vanilla and rebooted: success, the chtmax98090 is working. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 http://bugzilla.opensuse.org/show_bug.cgi?id=1171246#c1 --- Comment #1 from Gabriele Tettamanzi <gtettamanzi@gmail.com> --- Created attachment 837440 --> http://bugzilla.opensuse.org/attachment.cgi?id=837440&action=edit hernel default ucm folder added -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 http://bugzilla.opensuse.org/show_bug.cgi?id=1171246#c2 --- Comment #2 from Gabriele Tettamanzi <gtettamanzi@gmail.com> --- Created attachment 837441 --> http://bugzilla.opensuse.org/attachment.cgi?id=837441&action=edit alsa-info kernel vanilla usm folder added -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 http://bugzilla.opensuse.org/show_bug.cgi?id=1171246#c3 --- Comment #3 from Gabriele Tettamanzi <gtettamanzi@gmail.com> --- Created attachment 837442 --> http://bugzilla.opensuse.org/attachment.cgi?id=837442&action=edit HiFi.conf internal mics fixed -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 http://bugzilla.opensuse.org/show_bug.cgi?id=1171246#c4 --- Comment #4 from Gabriele Tettamanzi <gtettamanzi@gmail.com> --- Few more points: - the same workaround is working with the vanilla kernel from Kernel:stable - the same bug and the same workaround applies to 15.1 - the same bug applies to Tumbleweed, however I've been not able to find a workaround, I guess because it is using the new alsa UCM2 - other distros: Debian Bullseye, kernel 5.6, alsa UCM2 is working out of the box, Kubuntu 20.04 is not working (k5.4 - alsa UCM2), Debian Buster is working with a similar workaround as oS as well as the *buntu 18.04 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 http://bugzilla.opensuse.org/show_bug.cgi?id=1171246#c23 --- Comment #23 from Gabriele Tettamanzi <gtettamanzi@gmail.com> --- (In reply to Takashi Iwai from comment #22)
Would we track this remaining issue for Leap 15.2? Or are you happy with TW support? I'm running Tumbleweed on the two my rigs at present and there's a workaround for this bug.
I'm happy to re install 15.2 and track down this bug if you can take some time for it. Shall we? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 http://bugzilla.opensuse.org/show_bug.cgi?id=1171246#c24 --- Comment #24 from Takashi Iwai <tiwai@suse.com> --- Heh, I'm fine to go ahead if you can be patient enough ;) My rough guess is again some missing mixer bits that are needed to be set up in UCM profile. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 http://bugzilla.opensuse.org/show_bug.cgi?id=1171246#c25 --- Comment #25 from Gabriele Tettamanzi <gtettamanzi@gmail.com> --- Created attachment 838521 --> http://bugzilla.opensuse.org/attachment.cgi?id=838521&action=edit Alsa info report with default 15.2 installation + UCMv1 GOOGLE-Quawks-1.0-Quawks Sound not working, sound card controls shown by pavucontrol-qt -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 http://bugzilla.opensuse.org/show_bug.cgi?id=1171246#c26 --- Comment #26 from Gabriele Tettamanzi <gtettamanzi@gmail.com> --- Created attachment 838522 --> http://bugzilla.opensuse.org/attachment.cgi?id=838522&action=edit GOOGLE-Quawks-1.0-Quawks UCMv1 profile -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 http://bugzilla.opensuse.org/show_bug.cgi?id=1171246#c27 --- Comment #27 from Gabriele Tettamanzi <gtettamanzi@gmail.com> --- (In reply to Takashi Iwai from comment #24)
Heh, I'm fine to go ahead if you can be patient enough ;) Take your time, it should be great if we could fix it consistently with Leap 15.2 release schedule.
My rough guess is again some missing mixer bits that are needed to be set up in UCM profile
Fresh install of 15.2 RC build 671.5, Plasma. uname -r 5.3.18-lp152.17-default cat /proc/asound/cards 0 [PCH ]: HDA-Intel - HDA Intel PCH HDA Intel PCH at 0xd0714000 irq 90 1 [chtmax98090 ]: chtmax98090 - chtmax98090 GOOGLE-Quawks-1.0-Quawks Pulseaudio does not show the sound card controls. I first tried my old chtmax98090 UCMv1 profile, but testing it with alsaucm it was blaming about missing GOOGLE-Quawks-1.0-Quawks folder/profile. I removed the chtmax98090 profile and I added GOOGLE-Quawks-1.0-Quawks UCMv1 profile (attachment #838522), also improving the Internal Mic and Headset Mic device section according to the modifications you made in UCMv2 profile. alsaucm worked with no errors. After reboot, pavucontrol-qt shows the sound card control but no sound is coming from it. I inspected alsa parameters by alsamixer: they look good to me. I attached the alsa-info report for this condition (#838521). A couple of additional notes: - pavucontrol-qt reports "No protocol specified", I never noticed it before... - I tried to change the string "chtmax98090" to "GOOGLE-Quawks-1.0-Quawks" in the HiFi.conf file, but alsaucm gives errors in this condition, therefore I reverted it. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 http://bugzilla.opensuse.org/show_bug.cgi?id=1171246#c29 --- Comment #29 from Gabriele Tettamanzi <gtettamanzi@gmail.com> --- (In reply to Takashi Iwai from comment #28)
OK, let's try the same approach as we've done for TW at first.
Restore the controls via "alsactl restore -f somefile" from the good-working set (from either Debian or TW), then retest the playback.
I didn't keep Debian. I stored the controls in TBW and restres them in Leap 15.2: no changes, pulseaudio sound card controls are shown but it does not emit any sound. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 http://bugzilla.opensuse.org/show_bug.cgi?id=1171246#c30 --- Comment #30 from Takashi Iwai <tiwai@suse.com> --- Do you still have TW system? If yes, you can install Leap 15.2 kernel (5.3.x-based) onto TW system, boot with it and check whether it still works. If 5.3.y kernel and the rest TW system combo doesn't work, it means there is something missing in the kernel side. For that, grab kernel-default.rpm from http://download.opensuse.org/distribution/leap/15.2/repo/ then install it via zypper in --oldpackage kernel-default-5.3*.rpm and boot with this one. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 http://bugzilla.opensuse.org/show_bug.cgi?id=1171246#c31 --- Comment #31 from Gabriele Tettamanzi <gtettamanzi@gmail.com> --- (In reply to Takashi Iwai from comment #30)
Do you still have TW system? If yes, you can install Leap 15.2 kernel (5.3.x-based) onto TW system, boot with it and check whether it still works.
If 5.3.y kernel and the rest TW system combo doesn't work, it means there is something missing in the kernel side.
For that, grab kernel-default.rpm from http://download.opensuse.org/distribution/leap/15.2/repo/
then install it via zypper in --oldpackage kernel-default-5.3*.rpm
and boot with this one.
I installed 5.3.18-lp152.17-default from Leap repo on TBW and rebooted the system: pulseaudio shows sound card controls, no sound is played. As a side note, kernel v5.3 on Debian and Ubuntu had the same behavior. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 http://bugzilla.opensuse.org/show_bug.cgi?id=1171246#c33 Gabriele Tettamanzi <gtettamanzi@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(gtettamanzi@gmail | |.com) | --- Comment #33 from Gabriele Tettamanzi <gtettamanzi@gmail.com> --- (In reply to Takashi Iwai from comment #32)
Thanks. So it's some patch after 5.3.x, and I took a look through the changes. There is no significant change in the max98090 codec side, but in the machine driver, there is one hot spot, commit d5e120422db8808e1c8b1507900ca393a877c58f ASoC: intel: cht_bsw_max98090_ti: Add all Chromebooks that need pmc_plt_clk_0 quirk
I'm building a test kernel with that backport on top of the latest Leap 15.2 kernel git. It's being built in OBS home:tiwai:bsc1171246 repo, and the package will appear later at http://download.opensuse.org/repositories/home:/tiwai:/bsc1171246/standard/
Please give it a try. uname -r 5.3.18-lp152.1.g6c59351-default
UCMv1 profile attachment #838522 in place. It works! I tested both internal speakers and headphone and both internal mic and headset mic. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 http://bugzilla.opensuse.org/show_bug.cgi?id=1171246#c34 --- Comment #34 from Takashi Iwai <tiwai@suse.com> --- Good to hear! Now I pushed the fix to SLE15-SP2 / Leap 15.2 kernel so that it'll be included in the first update kernel. The remaining task is to add a UCMv1 profile to alsa package. I'll work on it later. Until then just keep your own file. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 http://bugzilla.opensuse.org/show_bug.cgi?id=1171246#c35 --- Comment #35 from Gabriele Tettamanzi <gtettamanzi@gmail.com> --- (In reply to Takashi Iwai from comment #34)
Good to hear!
Now I pushed the fix to SLE15-SP2 / Leap 15.2 kernel so that it'll be included in the first update kernel.
The remaining task is to add a UCMv1 profile to alsa package. I'll work on it later. Until then just keep your own file.
Great job Takashi, thank you so much. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 http://bugzilla.opensuse.org/show_bug.cgi?id=1171246#c36 Takashi Iwai <tiwai@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #36 from Takashi Iwai <tiwai@suse.com> --- Now alsa update was submitted to SLE15:Update. It'll take some time until the change reaches to Leap 15.2, but should be available later via the update channel. Let's close the bug now. Thanks for your patient testing! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1171246 http://bugzilla.opensuse.org/show_bug.cgi?id=1171246#c41 --- Comment #41 from Gabriele Tettamanzi <gtettamanzi@gmail.com> --- uname -r 5.3.18-lp152.20.7-default I just updated to the last kernel and tested the sound: it works fine. Thank you so much. -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com