| poetaster | piesalad[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 |
|---|---|---|
| poetaster | ie. to bypass internal card0 when using a usbdac on the volla22 | 19:04 |
| poetaster | I'm so old I expect more of lsmod | 19:05 |
| poetaster | piggz[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 |
| mal | poetaster: easiest way to get the id is to check what /sys/class/sound/card0/id contains | 19:13 |
| poetaster | thanks! | 19:13 |
| poetaster | seems like we have 'simple' instructions for the xperias and the fp devices, now. I think the volla will be more difficult. | 19:14 |
| mal | the 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 way | 19:14 |
| poetaster | mal, 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 |
| mal | volla 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 devices | 19:16 |
| mal | hmm | 19:16 |
| mal | is the udev rule really correct? | 19:16 |
| poetaster | mal, the one I used is copied. with that rule and only usbaudio.conf I do get usbdac usage. | 19:17 |
| mal | show what you have in /sys/class/sound/card0/id | 19:17 |
| mal | and then the rule | 19:17 |
| poetaster | mt6768mt6358 | 19:18 |
| poetaster | the rule I used: ATTRS{id}=="mtsndcard", ENV{PULSE_IGNORE}="1" | 19:18 |
| mal | so the rule is wrong, it has to match the id from that file | 19:18 |
| mal | KERNEL=="card0", SUBSYSTEM=="sound", ATTR{id}=="mt6768mt6358", ENV{PULSE_IGNORE}="1" | 19:19 |
| mal | try that rule, rmeove the other one you had | 19:19 |
| poetaster | I'll try it with that now. | 19:19 |
| mal | if you don't have the udev rule correctly defined then it will break things badly after you add the module loading | 19:20 |
| poetaster | yeah, it did break in unpleasant ways. | 19:20 |
| poetaster | different area: working on an audio synth and looking at a dedicated threads for audio. but I have hooks for callbacks | 19:23 |
| poetaster | template<class T> | 19:23 |
| poetaster | class SoundGeneratorVarHook : public SoundGenerator | 19:23 |
| poetaster | if I have a controller running the SoundGenerator in a second thread, can I still pass through calls from qml to the worker? | 19:24 |
| poetaster | never mind. Just thinking out loud. | 19:29 |
| poetaster | mal, ok, with that rule, we have usb-dac and normal headphone usage on the the volla22/gs5 | 19:29 |
| poetaster | piggz[m], KERNEL=="card0", SUBSYSTEM=="sound", ATTR{id}=="mt6768mt6358", ENV{PULSE_IGNORE}="1" works with nothing more than usbaudio.conf active in the pulse policy configs | 19:30 |
| poetaster | mal, updating the wiki to reduce the fud. | 19:33 |
| mal | what wiki? | 19:34 |
| poetaster | https://sailfishos.wiki/books/usb-audio-dac/page/udev-and-pulse | 19:34 |
| poetaster | same one where we have the hadk etc | 19:34 |
| poetaster | it's what people in the thread on the forum were referencing vis. the fp configs. | 19:35 |
| mal | that is a bit wrong now, usbaudio.conf should be symlink now a copy of usbaudio.conf.disabled | 19:35 |
| mal | *not a copy | 19:35 |
| poetaster | read 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 |
| mal | even mentioning non-symlink way is just confusing | 19:37 |
| piggz[m] | okok, ill look shortly ... was just getting away from zombies on my bike | 19:37 |
| mal | and mentioning udev rules without proper instruction where to get the id will just cause people to have issues | 19:37 |
| poetaster | piggz[m], no hurry, I have to fix my crappy docs first :) | 19:38 |
| mal | and the rule is wrong anyway in that wiki | 19:38 |
| poetaster | mal, yeah, I'm working on it. | 19:38 |
| mal | also 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 |
| poetaster | the 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 |
| mal | and fixed fp4 and fp5 in repos already so any fp4 and fp5 user updating now their devices will get functioning usb audio | 19:39 |
| poetaster | mal, so, they don't even need to symlink the usbaudio.conf? | 19:40 |
| mal | I added the symlinks already | 19:40 |
| mal | I was fast | 19:40 |
| mal | about 30 minutes ago | 19:41 |
| poetaster | mal, cool. I assume you're faster than I am, since I'm so old :) | 19:43 |
| poetaster | piggz[m], what happened to the zombies? | 19:44 |
| piggz[m] | they got me, after 10 minutes | 19:44 |
| mal | well I'm not very young anymore | 19:44 |
| poetaster | mal, I'm 58. | 19:44 |
| mal | ok | 19:45 |
| mal | so a bit older than me | 19:45 |
| poetaster | Ok, good to know. Of course, I may just be naturally stupid :) | 19:45 |
| mal | well I might have a bit more experience is porting | 19:46 |
| mal | *in porting | 19:46 |
| poetaster | absolutely. I have NO experience in porting. though I have written kernel drivers. | 19:46 |
| poetaster | Ok, the docs are better now, though by no means finished. | 19:52 |
| poetaster | And soon to be irrelevant since mal and piggz are faster than I. | 19:53 |
| poetaster | piggz[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 audio | 19:55 |
| mal | those instructions have symlinking twice | 19:55 |
| poetaster | BUT, 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 |
| poetaster | mal, got it | 19:56 |
| mal | so the call audio is never going to whatever you have connected to usb? | 19:57 |
| mal | not sure if we have properly thought of usb call audio ever, needs some investigation | 19:58 |
| poetaster | on the volla22. though, I think it was the same on the xperia. need to test both again. | 19:58 |
| mal | I probably need to get one of those dongles to investigate that | 19:59 |
| poetaster | mal, 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 |
| poetaster | The 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/!