@Juerg, thanks for everything above. I got audio finally working. Here is the 
sequence. Hope this gets worked into an update in the near future. 
## Full resolution sequence for ASUS Zenbook A14 UX3407NA (Glymur/X2 Elite) 
internal audio

Kernel: 7.2.0-18-qcom-x1e (ppa:ubuntu-concept/x1e)
Starting point: ASoC failed to instantiate (missing ADSP/CDSP dtbs firmware),
then missing topology file, then missing UCM profile, then a channel-mapping
quirk. Each step below fixes exactly one of those.

### 1. Install qcom-firmware-extract v21 (fixes missing
adsp_dtbs.elf/cdsp_dtbs.elf)

wget 
http://ftp.us.debian.org/debian/pool/main/q/qcom-firmware-extract/qcom-firmware-extract_21_arm64.deb
sudo dpkg -i qcom-firmware-extract_21_arm64.deb
sudo apt install -f

sudo qcom-firmware-extract
# Extracts adsp_dtbs.elf, cdsp_dtbs.elf, qcadsp8480.mbn, qccdsp8480.mbn etc.
# from the Windows partition, builds a .deb, installs it, runs update-initramfs.

sudo systemctl reboot -i

# Verify: both DSPs should now come up cleanly
sudo dmesg | grep -iE "adsp|cdsp|remoteproc"
# Look for: "remote processor adsp is now up" / "remote processor cdsp is now 
up"
# At this point the sound card still fails to instantiate — missing topology 
file.


### 2. Install the generic Glymur AudioReach topology under the ASUS-specific 
filename

cd ~
git clone --depth 1 --filter=blob:none --sparse 
https://gitlab.com/kernel-firmware/linux-firmware.git
cd linux-firmware
git sparse-checkout set qcom/glymur

sudo cp qcom/glymur/GLYMUR-CRD-tplg.bin \
  /lib/firmware/qcom/glymur/GLYMUR-ASUS-Zenbook-A14-UX3407NA-tplg.bin

sudo update-initramfs -c -k $(uname -r)
sudo systemctl reboot -i

# Verify: a real ALSA card should now appear
aplay -l
# Expect: card 0: GLYMURASUSZenbo [GLYMUR-ASUS-Zenbook-A14-UX3407N], device 0: 
MultiMedia1 Playback
#
# dmesg will still show: "no backend DAIs enabled for MultiMedia1 Playback,
# possibly missing ALSA mixer-based routing or UCM profile" — that's next.


### 3. Install the upstream Glymur UCM profile (Ubuntu's alsa-ucm-conf 1.2.15.3
###    predates Glymur support entirely — confirmed via `dpkg -L alsa-ucm-conf`
###    showing zero glymur files, despite upstream having merged
###    "Qualcomm-glymur-Add-GLYMUR-CRD-HiFi-config.patch" already)

cd ~
git clone --depth 1 --filter=blob:none --sparse 
https://github.com/alsa-project/alsa-ucm-conf.git
cd alsa-ucm-conf
git sparse-checkout set ucm2/Qualcomm/glymur ucm2/conf.d/glymur

sudo mkdir -p /usr/share/alsa/ucm2/Qualcomm/glymur
sudo cp ucm2/Qualcomm/glymur/*.conf /usr/share/alsa/ucm2/Qualcomm/glymur/

sudo mkdir -p /usr/share/alsa/ucm2/conf.d/glymur
sudo cp -P ucm2/conf.d/glymur/*.conf /usr/share/alsa/ucm2/conf.d/glymur/

# UCM looks up: ucm2/conf.d/${CardDriver}/${CardLongName}.conf
# For this exact laptop, CardLongName = 
ASUSTeKCOMPUTERINC.-ZenbookA14UX3407NA-1.0-UX3407NA
# (check yours with: cat /proc/asound/cards)
cd /usr/share/alsa/ucm2/conf.d/glymur/
sudo ln -s ../../Qualcomm/glymur/GLYMUR-CRD.conf \
  "ASUSTeKCOMPUTERINC.-ZenbookA14UX3407NA-1.0-UX3407NA.conf"

systemctl --user restart pipewire pipewire-pulse wireplumber
sleep 2
wpctl status
# Expect real sinks/sources now, e.g.:
#   Sinks:   Built-in Audio Speaker playback
#   Sources: Built-in Audio Internal microphones
# (no more "Dummy Output")


### 4. Fix the stereo channel mapping (the two real speakers sit in slots 0 and 
2
###    of a 4-channel stream, not the standard stereo slots 0/1 — confirmed by
###    only the left speaker playing at this point)

# Find the exact node name:
wpctl inspect <sink-id-from-wpctl-status>
# node.name = alsa_output.platform-sound.HiFi__Speaker__sink
# audio.position (before fix) = [ FL, FR, RL, RR ]

sudo mkdir -p /etc/wireplumber/wireplumber.conf.d
sudo nano /etc/wireplumber/wireplumber.conf.d/51-a14-stereo-remap.conf

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2167022

Title:
  No audio output ("Dummy Output" only) — missing ADSP/CDSP firmware for
  ASUS Zenbook A14 UX3407NA (Snapdragon X2 Elite)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-concept/+bug/2167022/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to