[HowTo] set up the audio card in Samsung Galaxy Book

Thank You for advice, I will try.

Thank you for this guide. I can confirm this works for the flex2 alpha mostly. I for some reason cannot get the headphones to work.

I make sure my headphones are plugged in. I open alsamixer from the terminal and press F6 then select sof-hda-dsp

I am able to adjust the sound level but I hear no sound out of the head phones. They are not muted in the taskbar either. I am using Cinnamon which has a different interface. I dont see an advance option for configuring audio from the icon.

Can confirm this works on the Samsung Galaxy Book Pro 360.

Made an account just to thank you for this wizardry.

I can confirm this works (minus the Samsung-specific steps) for an HP 15-dy2152wm laptop with Core i5-1137G5 and Tiger Lake LP Sound.

Hello, Using to912.sh is working for me!

But, still internal mic (= built-in mic) does not work.

Cloud you please tell me how to set internal mic working using hda-verb?

Thank you.

Can confirm this is working with the Samsung Galaxy Book2 Pro 360 as well.

Unfortunately, the script fails to execute on boot, but if I manually start it afterwards (or suspend and wake), it works perfectly.

I skipped the options snd slots=snd_soc_skl_hda_dsp part since it seemed to break the script somehow (even though snd_soc_skl_hda_dsp is loaded automatically later on anyways)

Now I’m wondering if there’s a way to implement this in a less hacky way (directly in the kernel, alsa, etc) instead of a script, and maybe upstream it since it seems to be a common issue on Samsung notebooks in general.

There are now 4 patches in Linux kernel for Samsung Galaxy devices
and patches have been back-ported to LTS kernels v5.15 and v5.4

patch_realtek.c - sound/pci/hda/patch_realtek.c - Linux source code (v5.18.12) - Bootlin

    SND_PCI_QUIRK(0x144d, 0xc189, "Samsung Galaxy Flex Book (NT950QCG-X716)", ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET),
	SND_PCI_QUIRK(0x144d, 0xc18a, "Samsung Galaxy Book Ion (NP930XCJ-K01US)", ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET),
	SND_PCI_QUIRK(0x144d, 0xc830, "Samsung Galaxy Book Ion (NT950XCJ-X716A)", ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET),
	SND_PCI_QUIRK(0x144d, 0xc832, "Samsung Galaxy Book Flex Alpha (NP730QCJ)", ALC256_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET),

Galaxy Book Flex Alpha has ALC256 codec instead of ALC298 codec and has a different patch

There are also open bug reports awaiting a patch:
205267 – No sound on Samsung galaxy book (W728N)
216023 – Speakers not working in Samsung Book2 NP950QED

The kernel has a model alias name for both patches:

patch_realtek.c - sound/pci/hda/patch_realtek.c - Linux source code (v5.18.12) - Bootlin

    {.id = ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, .name = "alc298-samsung-headphone"},
	{.id = ALC256_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, .name = "alc256-samsung-headphone"},

The model alias can be added to unpatched systems as a modprobe option

sudo tee /etc/modprobe.d/samsung-headphone.conf <<< 'options snd-hda-intel model=alc298-samsung-headphone'
1 Like


Is this patch available in built-in mic?