Problem with USB DAC playback

It might be useful if such issues are created as bugs.

Will raise this as bug right now!

Do you get any normal sound out of your phone via DAC?

I have a dac usb-c that works with my linux thinkpad, macbook air m2, and my windows HP, sound is pristine.

When I put the same setup in my jolla phone 2026 It feels like the sound is converted to 96 kbps or less :stuck_out_tongue:

BT works normally, but then again, BT should not really be better than wired audio :stuck_out_tongue:

Check here which works fine USB-C to 3.5mm jack adapters known to work with Sailfish OS - #100 by VelvetPunch

Since SFOS 5.1 it does not work at all:

systemd-udevd[43590]: Process '/usr/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf store /dev/snd/controlC1' failed with exit code 2.
pulseaudio[47035]: E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="1" name="usb-Yichip_USB-Audio-1.0-00" card_name="alsa_card.usb-Yichip_USB-Audio-1.0-00" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1""): initialization failed.
pulseaudio[47035]: E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
systemd-udevd[43580]: Process '/usr/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/usr/lib/alsa/init/00main restore /dev/snd/controlC1' failed with exit code 99.
systemd-udevd[43580]: Process '/usr/sbin/alsactl restore ' failed with exit code 2.

Updated to 5.2.0.18 and still no go:

mce[1991]: modules/audiorouting.c: audio_route_sink(): unknown audio sink device = 'usbheadset'
mce[1991]: modules/audiorouting.c: audio_route_sink(): unknown audio sink device = 'usbheadset'

Since 5.2 DAC is no longer separate sink, it will not be ‘fixed’ …
check my post about how to fix (not only) apple dac volume

you can make it automaticaly or by launcher from app list

Thank you for reply but this not the issue. In this case the car id not detected by pulseaudio. Both in 5.1 and 5.2. There is no cards or sinks in pactl after conneting the DAC.

thank you so much for this! i use apple earbuds and they’re named “Headset” so I had to add amixer -c 1 sset Headset 100% to set-usb-dac-volume.sh but after that it works perfectly! i wish these manipulations wouldn’t be necessary though

Yes in case that there is also microphone it would br Headset

in the script you can have more lines to match all connectef devices and DACs like Headphones, Headset, Speakers …

for other DACs you need to get mixer control name: amixer -c 1 on the first line is name what you will type into your set-usb-dac-volume.sh script

Updated to 5.2.0.22 aaannd it works. At last.