Closed neyb closed 4 months ago
We've supported the rt715-sdca for about 2 years now, it's rather odd that it's not detected.
Can you please attach the full 'alsa-info' log?
@bardliao @jack-cy-yu FYI
here is the file : alsa-info.txt
@neyb Please use "cat /sys/kernel/debug/regmap/sdw-addr/registers" to dump registers while recording. And for "sdw-addr", there are "sdw:xxxxxx" and "sdw:xxxxxx-sdw-mbq", we need both dumps. Thanks.
My system is pre-installed with Fedora-Workstation-Live-x86_64-40-20240419.n.0.iso The alsa-ucm is with alsa-ucm-1.2.11-2.fc40. The built-in speaker and MIC do not work.
Pick follow files from current master branch, then the built-in speaker and MIC are are worable. https://github.com/alsa-project/alsa-ucm-conf/blob/master/ucm2/sof-soundwire/rt1318.conf https://github.com/alsa-project/alsa-ucm-conf/blob/master/ucm2/sof-soundwire/sof-soundwire.conf https://github.com/alsa-project/alsa-ucm-conf/blob/master/ucm2/sof-soundwire/HiFi.conf https://github.com/alsa-project/alsa-ucm-conf/blob/master/ucm2/common/pcm/hdmi.conf
@neyb you may have a try to pull the latest UCM config
@neyb: Updated alsa-ucm package is in stable since yesterday: https://bodhi.fedoraproject.org/updates/FEDORA-2024-0514b78147
Just upgrade...
Sorry I wasn't around for a while, I'm gonna give you the dumps soon (and also test last version)
I've updated my system and ucm-conf has not been updated for few days (last update was 1.2.12-1, built the 2024-06-12 at 20:24 UTC by the package maintainer). before this update I had totally no sound, but now only the mic is malfunctionning : I can get last master if needed.
@jack-cy-yu here are the dumps : dumps and record.zip. I made the record using the command arecord -d 5 test.wav
@supperrabbit88 the fact you don't have the problem with another dist (I'm on arch...) might indicate the problem is not ucm-conf itself... You got a xps 13 9340 ?
@neyb From the dumps, built-in MIC should be switched to DMIC3/4, but it's switched to MIC1/2. Something wrong with your ucm.
The mics are set in BootSequence
. Please, remove the ALSA state file:
systemctl stop alsa-state
rm /var/lib/alsa/asound.state
systemctl start alsa-state
... and relogin to apply new UCM configuration.
I did what @perexg advise me to (except I was using alsa-restore and not alsa-state)... And it, ok it seems to work fine now... Thanks.
Any idea how I fall in this bad mic configuration ?
Is there anything you need to do or I can close this issue ?
wondering if ArchLInux has a setup that's wrong, we've seen other reports such as https://wiki.archlinux.org/title/Dell_XPS_17_(9720)#Microphone where DMIC1 was used.
The issue was that the BootSequence is applied only when the state file does not exist. So if you booted with a system with a wrong or non-existent UCM preset (driver defaults are saved) those values may not match your hardware. We should document this probably somewhere to clear the state when the user encounters a problem at first.
Added to c1920e95d476c33f4b43484f14c36149829e514a .
I've notice the problem to come back on reboots... I have to rerun the
systemctl stop alsa-restore
rm /var/lib/alsa/asound.state
systemctl start alsa-restore
Every time... Any idea where this could come from ?
from what I understand, because I have no /etc/alsa/state-daemon.conf
file, the used systemd service is alsa-restore
(and not alsa-state).
https://wiki.archlinux.org/title/Advanced_Linux_Sound_Architecture#ALSA_and_systemd
@perexg maybe this issue should be reopened ?
The alsa-restore
service works only when udev rules exists like /lib/udev/rules.d/90-alsa-restore.rules
:
ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*", GOTO="alsa_restore_go"
GOTO="alsa_restore_end"
LABEL="alsa_restore_go"
TEST!="/etc/alsa/state-daemon.conf", RUN+="/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main restore /dev/$name"
TEST=="/etc/alsa/state-daemon.conf", RUN+="/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main nrestore /dev/$name"
LABEL="alsa_restore_end"
It's distribution job to create such rules.
To clarify: The ASoC drivers may delay initialization, thus the driver may be loaded later then the alsa-restore
service is started. In this case, udev rules must handle this situation.
Ok I'll post a thread on arch forum then... And maybe an issue somewhere else thx.
Hello,
The version 1.2.12 seems to fix the speaker of the xps 13 9430 (2024), but there seems to still be a problem on the integrated microphone, the mic appears but their seems to be no sound recorded :