#asahi-dev · 2023-01-18 09:11
poviki think we are all in agreement here#asahi-dev · 2023-01-18 09:11
povikno, i was thinking of UX, not safety#asahi-dev · 2023-01-18 09:10
chadmedyeah once the safety daemon is up and running and that functionality is wired in then using the speakers as a raw device wont be able to break anything #asahi-dev · 2023-01-18 09:10
dsharshakovYou can also make PW DSP glitch by setting low quantum etc#asahi-dev · 2023-01-18 09:10
chadmedoh right #asahi-dev · 2023-01-18 09:10
dsharshakovI answered to povik's "hide speakers to be safe"#asahi-dev · 2023-01-18 09:09
chadmedand like i said the other day, people who are still clinging on to a no-pipewire alsa-only setup will just have to accept a lower qol/ux #asahi-dev · 2023-01-18 09:09
chadmedyeah the visense pcm wont be able to break anything, its more a UX thing#asahi-dev · 2023-01-18 09:09
dsharshakovUCM2 as well #asahi-dev · 2023-01-18 09:08
dsharshakovAnd anyway, you mustn't rely on WirePlumber to prevent users from accessing speakers. They should be able to safely push DC bias, square waves and whatever they want, kernel + speakersafetyd should prevent frying the machine. PipeWire is there to ease and enrich, not to protect#asahi-dev · 2023-01-18 09:05
dsharshakovWe should not bikeshed about that config format, don't let it be another cpuidle. Rule matching should suffice, UCM2 does the same#asahi-dev · 2023-01-18 09:04
dsharshakovWell, node hiding should be enough for our use cases. Not enough to store the config universally in repos yet#asahi-dev · 2023-01-18 09:03
dsharshakovActually loading the filter by rules causes debates due to config structure #asahi-dev · 2023-01-18 09:03
dsharshakovI need to finish at least wireplumber.hide prop as the first step#asahi-dev · 2023-01-18 09:02
dsharshakov* dsharshakov should finish old branches instead of creating new projects...#asahi-dev · 2023-01-18 09:00
chadmedyeah i get it sometimes in the left channel #asahi-dev · 2023-01-18 09:00
dsharshakovIt's hard to catch#asahi-dev · 2023-01-18 09:00
chadmedi havent pushed any updates to the main branch for a while#asahi-dev · 2023-01-18 08:59
chadmed:P #asahi-dev · 2023-01-18 08:59
chadmedoh thats what that is #asahi-dev · 2023-01-18 08:59
dsharshakovI found and filed a Pw bug which causes crackling due to accidental rate mismatch#asahi-dev · 2023-01-18 08:58
dsharshakovchadmed: you better not allow switching rates yet, lock at 48k.i#asahi-dev · 2023-01-18 08:58
dsharshakovpovik: I'm working on hiding those via WirePlumber. Nodlt hiding though#asahi-dev · 2023-01-18 08:52
chadmed / s#asahi-dev · 2023-01-18 08:52
chadmedlazy solution: we call the device "DO NOT SELECT THIS" in the kernel #asahi-dev · 2023-01-18 08:51
povikah#asahi-dev · 2023-01-18 08:51
chadmedit respects it, but it doesnt make a Node so the dsp graph cant connect to the speakers#asahi-dev · 2023-01-18 08:50
povikand if pipewire respects UCM, it shouldn't offer that sink to users#asahi-dev · 2023-01-18 08:50
povikor we can *not* describe the speakers in UCM, making that woofer baseline unavailable by default#asahi-dev · 2023-01-18 08:49
chadmedpart of the feature proposal i put forward in pw was to have some flag somewhere either in pw or wp to "hide" a node#asahi-dev · 2023-01-18 08:49
chadmedthere might not be any real way around that, good thing is if we do safety right then users accidentally selecting it shouldnt ruin anything (except the quality heh) #asahi-dev · 2023-01-18 08:48
povikbut that is pretty separate from the safety issue, you are right#asahi-dev · 2023-01-18 08:48
povikyeah, i was thinking of not exposing the direct speaker sinks#asahi-dev · 2023-01-18 08:48
chadmedhttps://github.com/chadmed/speakersafetyd/ i wrote a janky little proof of concept when i had some spare time#asahi-dev · 2023-01-18 08:47
chadmedthe safety daemon will do that#asahi-dev · 2023-01-18 08:47
chadmedthe dsp should never have to touch the visense pcm #asahi-dev · 2023-01-18 08:47
povikbut i don't have to think about that right now O:-)#asahi-dev · 2023-01-18 08:47
povikthere's of course still the issue of how the pipewire DSP layer falls into the scheme#asahi-dev · 2023-01-18 08:47
chadmedcool#asahi-dev · 2023-01-18 08:46
povikas dsharshakov points out, if we don't describe it in UCM it won't show up as a microphone in user interfaces#asahi-dev · 2023-01-18 08:46
chadmedbut it just occurred to me today that we might want to stop people from trying to use it as a microphone#asahi-dev · 2023-01-18 08:45
chadmedyeah that ^#asahi-dev · 2023-01-18 08:45
povikbut a a separate PCM, yes#asahi-dev · 2023-01-18 08:45
povikno, no new soundcard#asahi-dev · 2023-01-18 08:45
povikmarcan: not really. this must be more than a quantization noise, it's above the level of quanta, but it's all in accord with the noise figures from datasheet -- i just drove a weak signal to the speaker when i captured the trace#asahi-dev · 2023-01-18 08:45
chadmedyeah thats the plan, we got that far last time we discussed it#asahi-dev · 2023-01-18 08:45
dsharshakovVIsense can be exposed as a new soundcard#asahi-dev · 2023-01-18 08:44
dsharshakovHowever in PW channel you'll be welcomed and someone can definitely help you with profiles#asahi-dev · 2023-01-18 08:44
dsharshakovI can't. I don't have hardware lol. Dream of getting it#asahi-dev · 2023-01-18 08:42
chadmedbecause if we have the pcm open in the safety daemon, pipewire trying to open it at the same time is gonna cause problems