Problem with USB DAC playback

Brother, modern phones are in no way comparable to AVR. They’re different classes of device by several orders of magnitude

You can change amount of bits back and forth many times, resample it may times and even do IIR and FIR filtering on the fly and they wouldn’t even bat an eye

Not targeting AVR specifically. Rasperry Pi RP2350 mostly and STM. But you are missing the point. Many different kinds of devices (cheap/expensive) same code base. I have the same objects running in Supercollider under linux and on bare metal. Different use cases. Pots and encoders, etc, etc. EDIT: Making music on a desktop is just not as much fun, for me and for those who purchase my machines.

@vige or @pherjung could one of you split my hijacking from here on Udev and Pulse | SailfishOS community wiki into a new thread please? Sorry!

1 Like

strange is event that on xperia10ii the volume is 22%, on the xperia10V 46%, on the desktop it is 40%, anyway pulse or pipewire or something does remember 100% after replug to PC

Yes, you mentioned it above :slight_smile: Yesterday @mal asked if it was device specific and it seems to be even more complicated?

Another question, do you get audio from phone calls being routed to the usb dac? I don’t on either xperial 10iii or the volla22.

Negative also on Volla Quintus and Xperia 10 V: USB DAC stops music playback when phone call arrives, the call goes to speakers, pressing play in the music player continues then output to USB DAC.
In my use case this is welcome since my wired earphones do not have a mic at all.

1 Like

I think routing call audio to USB DAC is not supported at the moment but is something that is being investigated because support for wired headphones via that is becoming needed.

3 Likes

no i mentioned here early too :slight_smile:

we need to make more loud in bug report :smiley:

1 Like

@mal fixed the missing module loads on xperia 10iii already and the FP 4/5 I believe were always correct. He’s aware of the routing issue and just needs a dongle. I keep having to update the docs, but he’s faster than I am :slight_smile:

1 Like

Thank you

So, for new users, with poor sfos/terminal skills, it must be like this?

devel-su

vi /etc/pulse/arm_droid_card_custom.pa

add 2. line:

load-module module-udev-detect

Then

vi /etc/pulse/xpolicy.conf.d/usbaudio.conf

add following:

cat /etc/pulse/xpolicy.conf.d/usbaudio.conf 
[device]
type  = usbaudio
sink  = startswith:"alsa_output."
flags = refresh_always

[device]
type  = usbmic
source= startswith:"alsa_input."
flags = refresh_always

And we can conclude, that this wiki/guide regarding 10iii, is outdated ?

The wiki guide was updated last week. The one point which @mal underlined is that the usbaudio.conf file should be symlinked. That is what is recorded in the wiki.

cd /etc/pulse/xpolicy.conf.d/
ln -s usbaudio.conf.disabled usbaudio.conf
1 Like

Thanks for the answer.

I did suspect , that it was me, not fully understanding the phrases used in the wiki🫣

Just an overall observation : the wiki seems more like developer to developer language. More than a community to end user guide.

Maybe it was intended mostly for internal usage from the start, idk ?

1 Like

No, you’re right that the documentation is not user friendly. … I was just attempting to get things recorded before they sink into the nether regions of the forum. I need to revisit anything I write to make it easier to understand/use.

3 Likes

So, to sum up, or at least just to be a 100% sure : adding the module detect line , and the device lines , did the trick for me.

But as I read it , in the wiki , there is (or could be) more steps to it ?

Do I need to do more ? regarding the 10iii and dac sound output

No, as it says in the wiki,
If your device does not have a udev rule at:

And the rest of the page is clearly about the 10ii. I’ve reworded the first parts. Hopefully that’s better.

Just to be clear, all currently supported official Sailfish OS devices have the udev rule needed for USB audio.

2 Likes

Yeah , I’m starting to understand the phrases.

I must have been more focused on the code + translating it to, what to put in which folders.

Again , Thank you for helping :blush:

Amended the wiki to note as much.

1 Like

btw. and maybe you already know this: on the Xperia 10ii , usb dac is recognised and working, without doing any changes. Tested on latest release

Note quite. @koza posted steps the were needed, for instance, to get an apple dongle’s volume to full spectrum, among other things. You’ll need to scroll up in this thread.

1 Like