Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UX6404 Help #3

Open
rohitpid opened this issue Aug 15, 2023 · 7 comments
Open

UX6404 Help #3

rohitpid opened this issue Aug 15, 2023 · 7 comments

Comments

@rohitpid
Copy link

rohitpid commented Aug 15, 2023

Hey there, I am using the ASUS Zenbook Pro 14 UX6404. I have the same issues with dmesg saying:

[    4.880803] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Error: ACPI _DSD Properties are missing for HID CSC3551.
[    4.880807] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: error -EINVAL: Platform not supported

I followed the instructions but it didn't work for my laptop. I'm wondering what you need to change and where you find that information.

Thank you in advance for your help and response.

@rohitpid
Copy link
Author

I made some progress. I updated the file to use SPI1 instead of SPI0 and the error messages went away. It looks like everything is loading fine in dmesg. However, the speakers still don't output any sound. I wonder if there is a gain setting that I should tweak. There seems to be some in the commented code. Do you have any advice as to what it does?

@rohitpid
Copy link
Author

rohitpid commented Aug 19, 2023

This is my new output from dmesg:

journalctl -b -g CSC3551 --output short-monotonic
[ 0.015478] asus kernel: ACPI: SSDT 0x00000000572DCDB4 0001A0 (v01 CUSTOM CSC3551 00000001 INTL 20200925)
[ 4.817593] asus kernel: Serial bus multi instantiate pseudo device driver CSC3551:00: Instantiated 2 SPI devices.
[ 4.932433] asus kernel: cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Cirrus Logic CS35L41 (35a40), Revision: B2
[ 4.933059] asus kernel: cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Reset line busy, assuming shared reset
[ 4.968694] asus kernel: cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Cirrus Logic CS35L41 (35a40), Revision: B2

Still no sound. I was looking at other people's output and they have more messages about DSP1 and and loading some firmware. Something isn't quite right.

@rohitpid
Copy link
Author

Ok I figured it out. I had to rebuild the kernel and add the following in:

sound/pci/hda/patch_realtek.c

You will find a struct with 100s of lines that look like the line you need to add which is shown below:
(Search for SND_PCI_QUIRK)

static const struct snd_pci_quirk alc269_fixup_tbl[] = {
   ...
   SND_PCI_QUIRK(0x1043, 0x1863, "ASUS UX6404", ALC245_FIXUP_CS35L41_SPI_2),
   ...
}

Then recompile the kernel.

After that, you still need to follow the steps in the Readme in the Sound directory of this repo. You will need to change SPI0 to SPI1 in the ssdt-csc3551.dsl file in 4 places (2 more for a total of 6 if you include comments) before you follow the steps.

After all that you will get sound from the speakers. Does anyone know what the process is for upstreaming this to the kernel?

@Ttw0626
Copy link

Ttw0626 commented Sep 27, 2023

@rohitpid Hi, could you provide some more specific tutorial from patch kernel to Readme of this repo ?

In my case, my model number of laptop is also UX6404, however, there is no "patch_realtek.c" in kernel 6.4.6 of pop_os 22.04 LTS distro. I could find it in linux repo. https://github.com/torvalds/linux/blob/master/sound/pci/hda/patch_realtek.c

I am a rookie of linux source file, the modified "patch_realtek.c" should be copied into same folder of existed kernel.

but, how to recompile patched kernel ? is that I mentioned above correct ?

again, could you provide some more specific tutorial about this ? Thanks so much.

best regards,
tianwen

@rderks88
Copy link

rderks88 commented Oct 25, 2023

@Ttw0626

In the end, this answer helped me a lot to get my current kernel recompiled.
https://askubuntu.com/questions/1435591/correct-way-to-build-kernel-with-hardware-support-fix-patches-ubuntu-22-04-lts

Thank you so much @rohitpid!

@Cracky5457
Copy link

Cracky5457 commented Mar 23, 2024

Did someone solved the sound issue on Asus UX6404 and if yes can please provide a fork ?

@rohitpid if you resolved you issue can you give the procedure ? thanks :)

@Cracky5457
Copy link

I found a working solution for UX6404 here

https://github.com/rykdesjardins/fix-UX6404VI-audio-linux?tab=readme-ov-file

A bit long to rebuild the kernel but not difficult in the end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants