Tuesday, 2026-01-27

poetasterpiesalad[m], any idea how I find the correct attrid for a udev rule like KERNEL=="card0", SUBSYSTEM=="sound", ATTR{id}=="litolagoonqrdsn", ENV{PULSE_IGNORE}="1"19:04
poetasterie. to bypass internal card0 when using a usbdac on the volla2219:04
poetasterI'm so old I expect more of lsmod19:05
poetasterpiggz[m], I'm just trying to see if I can get the volla22 to not blow up with a usb dac :) It's a luxury problem since you fixed headphone output :)19:09
malpoetaster: easiest way to get the id is to check what /sys/class/sound/card0/id contains19:13
poetasterthanks!19:13
poetasterseems like we have 'simple' instructions for the xperias and the fp devices, now. I think the volla will be more difficult.19:14
malthe way in the usbaudio instructions here https://github.com/mer-hybris/droid-hal-configs/blob/master/sparse/etc/pulse/xpolicy.conf.d/usbaudio.conf.disabled shows another way19:14
poetastermal, yes, I had tried that. what was missing was the module loading. The way that works on the xperia, causes the volla22/gs5 to segfault on incoming calls.19:16
malvolla devices are missing all configs for usb audio, so the udev rule, module loading and the usbaudio.conf symlink, I already pinged piggz to fix those for volla devices19:16
malhmm19:16
malis the udev rule really correct?19:16
poetastermal, the one I used is copied. with that rule and only usbaudio.conf I do get usbdac usage.19:17
malshow what you have in /sys/class/sound/card0/id19:17
maland then the rule19:17
poetastermt6768mt635819:18
poetasterthe rule I used: ATTRS{id}=="mtsndcard", ENV{PULSE_IGNORE}="1"19:18
malso the rule is wrong, it has to match the id from that file19:18
malKERNEL=="card0", SUBSYSTEM=="sound", ATTR{id}=="mt6768mt6358", ENV{PULSE_IGNORE}="1"19:19
maltry that rule, rmeove the other one you had19:19
poetasterI'll try it with that now.19:19
malif you don't have the udev rule correctly defined then it will break things badly after you add the module loading19:20
poetasteryeah, it did break in unpleasant ways.19:20
poetasterdifferent area: working on an audio synth and looking at a dedicated threads for audio. but I have hooks for callbacks19:23
poetastertemplate<class T>19:23
poetasterclass SoundGeneratorVarHook : public SoundGenerator19:23
poetasterif I have a controller running the SoundGenerator in a second thread, can I still pass through calls from qml to the worker?19:24
poetasternever mind. Just thinking out loud.19:29
poetastermal, ok, with that rule, we have usb-dac and normal headphone usage on the the volla22/gs519:29
poetasterpiggz[m],  KERNEL=="card0", SUBSYSTEM=="sound", ATTR{id}=="mt6768mt6358", ENV{PULSE_IGNORE}="1" works with nothing more than usbaudio.conf active in the pulse policy configs19:30
poetastermal, updating the wiki to reduce the fud.19:33
malwhat wiki?19:34
poetasterhttps://sailfishos.wiki/books/usb-audio-dac/page/udev-and-pulse19:34
poetastersame one where we have the hadk etc19:34
poetasterit's what people in the thread on the forum were referencing vis. the fp configs.19:35
malthat is a bit wrong now, usbaudio.conf should be symlink now a copy of usbaudio.conf.disabled19:35
mal*not a copy19:35
poetasterread on.19:36
poetaster'Best is to create a ...' I'll revise the whole page since much of it is specific to some older devices or just wrong.19:36
maleven mentioning non-symlink way is just confusing19:37
piggz[m]okok, ill look shortly ... was just getting away from zombies on my bike19:37
maland mentioning udev rules without proper instruction where to get the id will just cause people to have issues19:37
poetasterpiggz[m], no hurry, I have to fix my crappy docs first :)19:38
maland the rule is wrong anyway in that wiki19:38
poetastermal, yeah, I'm working on it.19:38
malalso i already made PRs for most of the official devices to fix any issues on those, only c2 is missing the PR (I'll make that tomorrow)19:39
poetasterthe instructions will be to locate id with /sys/class/sound/card0/id and KERNEL=="card0", SUBSYSTEM=="sound", ATTR{id}=="litolagoonqrdsn", ENV{PULSE_IGNORE}="1"19:39
maland fixed fp4 and fp5 in repos already so any fp4 and fp5 user updating now their devices will get functioning usb audio19:39
poetastermal, so, they don't even need to symlink the usbaudio.conf?19:40
malI added the symlinks already19:40
malI was fast19:40
malabout 30 minutes ago19:41
poetastermal, cool. I assume you're faster than I am, since I'm so old :)19:43
poetasterpiggz[m], what happened to the zombies?19:44
piggz[m]they got me, after 10 minutes19:44
malwell I'm not very young anymore19:44
poetastermal, I'm 58.19:44
malok19:45
malso a bit older than me19:45
poetasterOk, good to know. Of course, I may just be naturally stupid :)19:45
malwell I might have a bit more experience is porting19:46
mal*in porting19:46
poetasterabsolutely. I have NO experience in porting. though I have written kernel drivers.19:46
poetasterOk, the docs are better now, though by no means finished.19:52
poetasterAnd soon to be irrelevant since mal and piggz are faster than I.19:53
poetasterpiggz[m], trivial but interesting. When playing audio with the heaphones in the headphones jack, if a call comes in, you need to restart the audio app to get headphone audio19:55
malthose instructions have symlinking twice19:55
poetasterBUT, with a usb dac, if a call comes in, switches to internal dac and when you end the call, you get usb dac audio playing again.19:56
poetastermal, got it19:56
malso the call audio is never going to whatever you have connected to usb?19:57
malnot sure if we have properly thought of usb call audio ever, needs some investigation19:58
poetasteron the volla22. though, I think it was the same on the xperia. need to test both again.19:58
malI probably need to get one of those dongles to investigate that19:59
poetastermal, I bought the apple one for 9 euros and another really good one (Stouchi is the brand) for 5 bucks on sale. The sound quality is nice.20:00
poetasterThe apple dongle has a hardware volume set to 40% which is a bit annoying.20:02

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!