Repository navigation
Conversation
|
Can one of the admins verify this patch?
|
|
I've tested this on my own machine (Galaxy Book4 Pro 360 NP960QGK) under Arch Linux and can confirm sound works as expected. The quality is not exactly the same but pretty comparable to Windows. Nice work @BreadJS! |
|
Thank you @stephanlensky |
|
Should an entry also be added to |
|
@melvyn2 Good call. I added it. ( I have no idea if there is a difference between the 14 and 16 inch variants and such. $ lspci -vvv | grep "Multimedia audio"
00:1f.3 Multimedia audio controller: Intel Corporation Meteor Lake-P HD Audio Controller (rev 20)
$ cat /sys/bus/pci/devices/0000:00:1f.3/subsystem_device
0xc892 <- this is what we need |
|
|
| {.id = ALC298_FIXUP_SAMSUNG_AMP, .name = "alc298-samsung-amp"}, | ||
| {.id = ALC298_FIXUP_SAMSUNG_AMP_V2_2_AMPS, .name = "alc298-samsung-amp-v2-2-amps"}, | ||
| {.id = ALC298_FIXUP_SAMSUNG_AMP_V2_4_AMPS, .name = "alc298-samsung-amp-v2-4-amps"}, | ||
| {.id = ALC298_FIXUP_SAMSUNG_AMP_V2_4_AMPS, .name = "alc298-samsung-amp-v2-4-amps"}, |
There was a problem hiding this comment.
Seems like this line was accidentally duplicated.
There was a problem hiding this comment.
Fixed! Thank you for noticing!
Wait really? This worked on the Samsung Galaxy Book 5 Pro 360? |
Here's my dev info for Book4 Ultra: The current patch does not work on this model. (Maybe it wasn't even supposed to?) |
Here's my dev info for Galaxy Book4 Pro (16-inch) NP960XGK: |
It most likely did not work because the PCI Quirk was not added. It is now, Please try again and see if it works now. If it still does not work, please connect me at the official discord server: https://discord.gg/pXZzXyE6Ub |
|
@BreadJS Excellent news that this was solved! As none of the changes fall under SOF (linux/sound/soc/sof/), patches submitted here cannot me merged here. Can you submit this series to Linux upstream ? [email protected] and see https://kernel.org/doc/html/latest/process/submitting-patches.html Please do refer to existing bugs like https://bugzilla.kernel.org/show_bug.cgi?id=220808 , this will likely help a lot of affected users. |
|
@kv2019i Aah okay! I thought that this patch was for SOF. Thank you for letting me know! I will be trying to do that! Thank you very much! |
|
Hi, I’m currently running Linux Mint (Ubuntu-based) and would be very happy to test this once a patched kernel is available for Ubuntu/Mint users. Thanks a lot for the amazing work on this! |
Glad it helped your sound. As for the webcam, Book5 uses IPU7 and my install for the webcam is only for IPU6 (Book4). It shouldn't even let you run it as it would detect you're on Lunar Lake and prevent it. So you're on your own for the webcam unfortunately as I don't have the hardware to test it for Book5. Sounds like you're making progress though so keep it up! :) |
|
Hi, for those using Arch Linux I have made an automatically built patched kernel. Here it is https://github.com/antpln/linux-galaxyaudio. You can install it pre-compiled with yay -S linux-galaxyaudio-binFeedback would be appreciated, it is my first time doing this |
|
Hey, FYI: sound/hda/codecs/side-codecs/max98390_hda.c:90:20: warning: unused variable 'global_en' [-Wunused-variable]
90 | unsigned int reg, global_en, amp_en, pcm_rx;
| ^~~~~~~~~
sound/hda/codecs/side-codecs/max98390_hda.c:90:31: warning: unused variable 'amp_en' [-Wunused-variable]
90 | unsigned int reg, global_en, amp_en, pcm_rx;
| ^~~~~~
sound/hda/codecs/side-codecs/max98390_hda.c:90:39: warning: unused variable 'pcm_rx' [-Wunused-variable]
90 | unsigned int reg, global_en, amp_en, pcm_rx;
| |
|
Hi, I have a Samsung Galaxy Book5 Pro 14 (940XHA) with Intel Lunar Lake and I'm experiencing the same issue — internal speakers completely silent, headphones work fine. Model: Samsung 940XHA (Galaxy Book5 Pro 14) ACPI only binds the amp at 0x38. Manually binding 0x39, 0x3c, and 0x3d via /sys/bus/i2c/devices/i2c-2/new_device shows all four amps responding with revisionID: 0x42, but still no speaker output. |
Did you try the following... Your 940XHA should already be fully supported as it's one of our primary test devices. The manual I2C binding alone won't get you sound because you also need the MAX98390 HDA side-codec driver module, which isn't in the kernel yet. This fix bundles the driver (via DKMS) along with the I2C device setup as a systemd service so it all happens automatically on boot. Zorin OS works fine since it's Ubuntu-based. Single command to install: curl -sL https://github.com/Andycodeman/samsung-galaxy-book-linux-fixes/archive/refs/heads/main.tar.gz | tar xz && cd samsung-galaxy-book-linux-fixes-main/speaker-fix && sudo ./install.sh && sudo reboot After reboot your speakers should be working. If you also need the webcam fix, there's an installer for that too — see the repo: https://github.com/Andycodeman/samsung-galaxy-book-linux-fixes |
|
It worked perfectly, thank you so much! Speakers are working after reboot. The previous command I tried was from a slightly different repo URL which is why it failed. Really appreciate the quick response! |
Great! Glad to hear it worked and thanks for the update! |
|
Tested on Samsung Galaxy Book 960XGL (NP960XGL-XG2ES) running Zorin OS 18 Pro (Ubuntu 24.04), kernel 6.17.0-20-generic. Hardware:
Used the DKMS installer from @Andycodeman: The installer found 3 MAX98390 amplifiers and sound works correctly on internal speakers after running the install script and starting the service. Thank you for the great work! |
|
Thank you very much @cabaseira I've worked very hard on a solution! As we speak I'm working on getting this fix deployed in the linux kernel as soon as possible |
|
Tested on NT960XGL-XC72G, it works like a charm |
|
Tested on NP940GK-KG2BR, works fine. Used the DKMS installer from @Andycodeman: |
|
Hello, I've tested by my Galaxy Book4 Pro 14" (NP940XGK) on kernel 7.0. Report: Galaxy Book4 Pro 14" (NP940XGK) on kernel 7.0Confirming this driver works on a newer kernel and distro than the ones listed System
BeforeInternal speakers completely silent; headphones worked normally. ALSA mixer was
Codec node enumeration was ResultAll four amps probe and bind, and the internal speakers produce audio No probe errors, no I2C timeouts, no regmap failures. Caveat on methodologyI tested this via the out-of-tree DKMS packaging of this PR Happy to retest with the patches applied directly to a tree if that would be |
|
This code is not related to SOF. You may want to send the patches to [email protected] and [email protected] to get some review? |
|
Book5 Pro 360 (NP960QHA, No On the last comment — sending the series to |
|
👋 Hey @hogar1977, good timing, a couple of days ago I prepared an updated version of this series with a bunch of fixes/improvements that I plan to submit to I will actually need new testers for the updated version, as with some substantial changes since this PR I did not feel comfortable assuming that all of the previously tested models still worked. If you're interested in helping, please send me an email which I can use to CC you on the submission when its ready. Feel free to send to Same goes for all other testers who have posted results in this thread. Thanks! |
|
If you send the lore link here once you submit the patches, I'll try them when I have the time. |
I am using this at the moment and would very much appreciate if the fixes ended up in the main kernel instead of using the AUR package. |
|
I agree to Stephan Lensky [email protected] reworking the code from this pull request and submitting it to the upstream Linux kernel, with me credited as an author. For the code I wrote, I certify the Developer Certificate of Origin 1.1 (https://developercertificate.org/), and the following tag may be added to the patches that contain it: Signed-off-by: Kevin Cuperus [email protected] |
thesofproject/linux#5616 has had no code change since bfa17b7, which speaker-fix already matches. What's new is in the thread: - Stephan Lensky is reworking the series for linux-sound, and the original author signed off on that on 2026-12-01. Updated the "when will this be automatic" text in both READMEs. - The rework may rename the strings max98390-hda-check-upstream.sh looks for, so the README now says to uninstall by hand if auto-removal doesn't fire once native support ships. - Book4 Pro 14" (NP940XGK) on Ubuntu 26.04.1 / kernel 7.0 with speaker-fix, and Book5 Pro 360 (144d:c1da) with the upstream series on 7.3.5, added to the tested lists. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Hi @hogar1977, @melvyn2, I just submitted the patch, lore link is here: https://lore.kernel.org/all/[email protected]/ |
Why this PR?
I bought my Samsung Galaxy Book 4 Pro almost a year ago and wanted to run Linux. But was unsatisfied with the fact that there were no sound drivers available. After opening up the laptop I discovered there was a MAX98390 chip in the system connected through the ACPI. But after a long time there was no success on getting this working, until now!
What does this PR do?
The file
sound/soc/codecs/max98390.cwas missing a match for theMAX98390. It only was sayingMX98390and notMAX98390. Not only that, but lots of registers were initialized and also includes the DSM coefficients for basic but good enough sound.More information
Sorry if this is not the right way to include this in the linux kernel. This is my first time making a PR to such big repo. Let me know if I need to change things and will try my best. Others are able to do this for me too if really needed. I will most likely add a second PR later, to add DSM coefficients from windows. This is being extracted by someone I'm working with.