#
#asahi-dev · 2023-02-14 12:44
marcan... not surprised, given how many projects we care about are on there
#asahi-dev · 2023-02-14 12:44
svenhuh, looks like I already have one
#asahi-dev · 2023-02-14 12:44
marcanyeah :) (sorry)
#asahi-dev · 2023-02-14 12:43
svenso i guess I’ll have to create a fdo account now :)
#asahi-dev · 2023-02-14 12:43
sveneuh.. good question. probably not a lot for me
#asahi-dev · 2023-02-14 12:41
chadmed\o/
#asahi-dev · 2023-02-14 12:41
marcansven, jannau_, povik: can you tell me which branches from github are still relevant? I could transfer them all, but I think we have a lot of junk in there anyway so we might as well do some spring cleaning
#asahi-dev · 2023-02-14 12:41
jnheh :)
#asahi-dev · 2023-02-14 12:41
marcanhttps://gitlab.freedesktop.org/asahi/linux :)
#asahi-dev · 2023-02-14 12:27
marcanshould be easier to bikeshed this once I have the code in front of me
#asahi-dev · 2023-02-14 12:25
jnnods
#asahi-dev · 2023-02-14 12:25
marcanjn: yes, my idea was that there's a 1 sec cumulative interval grace, and the daemon should itself have a timeout where after it stops getting samples it does one final update at the very least
#asahi-dev · 2023-02-14 12:24
jnhmm, if there's a 1 sec grace period after sound output starts, it should probably be designed in such a way that a cycle of on for 995ms, off for 5ms (for example) doesn't bypass the safety requirement (you probably thought of that problem already)
#asahi-dev · 2023-02-14 12:24
marcanheh
#asahi-dev · 2023-02-14 12:24
chadmedthey might poke the register but theres a volume ramp down in coreaudio too
#asahi-dev · 2023-02-14 12:24
marcanlol, don't they do softmute properly?
#asahi-dev · 2023-02-14 12:23
chadmedsame on startup
#asahi-dev · 2023-02-14 12:23
chadmedapple actually have a slight buffer and quick signal decay in userspace because these amps pop when you cut off their singnal too quick lmfao
#asahi-dev · 2023-02-14 12:23
marcanand then like every system sound has the first fraction of a second cut off
#asahi-dev · 2023-02-14 12:22
marcanquite a few platforms suffer from that (slow power-up amps and such)
#asahi-dev · 2023-02-14 12:22
povikhah, haven't seen (heard?) the startup cutoff yet
#asahi-dev · 2023-02-14 12:22
marcanbut 1 second is reasonable for safety
#asahi-dev · 2023-02-14 12:22
marcanso << 1 second
#asahi-dev · 2023-02-14 12:21
marcanfor unmute you really don't want to spend ages on it, it kind of sucks when new sounds get cut off at the beginning (very persistent problem on some platforms)
#asahi-dev · 2023-02-14 12:21
marcanmain thing here is there's a window between the "unmute ramp-up/sound start" time and the "safety timeout" time
#asahi-dev · 2023-02-14 12:20
povikmarcan: right, a solution
#asahi-dev · 2023-02-14 12:20
marcanand then the kernel would keep track of PCM downtime and only require those updates within 1 second of the re-start
#asahi-dev · 2023-02-14 12:20
povikor in other words: if the deamon's not responsive it's hard to assure safety anyway
#asahi-dev · 2023-02-14 12:20
marcanpovik: ^
#asahi-dev · 2023-02-14 12:20
marcanfor the interlock, I was thinking of a raw control we write with the current CLOCK_MONOTONIC_RAW timestamp or something, periodically. if the kernel sees an out of whack update or no updates for 1 second, it goes into safety mode.
#asahi-dev · 2023-02-14 12:19
povikon second thought it's better if you get a weird effect rather than compromise safety on unresponsive daemon
#asahi-dev · 2023-02-14 12:19
povik13:17 <@marcan> consider a loaded system, the safety daemon gets the notification a bit late / runs late, then you get a weird "speakers are quiet for a split second" effect
#asahi-dev · 2023-02-14 12:19
chadmedit can definitely cut audio levels which is good but its erm.... very crude so needs refining
#asahi-dev · 2023-02-14 12:18
marcanincidentally, we probably want to make the safety daemon RT, and we need to make sure that doesn't trigger any overeager scheduling when the PCM is dark or demote it during that time
#asahi-dev · 2023-02-14 12:18
chadmedit mustve just not liked 44.1
#asahi-dev · 2023-02-14 12:18
chadmedoh its working at different rates now
#asahi-dev · 2023-02-14 12:18
povikyeah
#asahi-dev · 2023-02-14 12:17
marcanconsider a loaded system, the safety daemon gets the notification a bit late / runs late, then you get a weird "speakers are quiet for a split second" effect
#asahi-dev · 2023-02-14 12:17
povikthat's true
#asahi-dev · 2023-02-14 12:17
marcanit can, but then you introduce a weird timing dependency there
#asahi-dev · 2023-02-14 12:17
povikmeaning it's significantly attenuated
#asahi-dev · 2023-02-14 12:17
povikwell, it can be in safety state unless the sense PCM is open?
#asahi-dev · 2023-02-14 12:16
marcanmuch better to leave it open and just deal with disabling whatever timeouts might get in the way
#asahi-dev · 2023-02-14 12:16
marcanmain thing is not closing the PCM because then you end up with corner cases around reopening it / add safety corner cases if something goes wrong when reopening it / etc
#asahi-dev · 2023-02-14 12:16
povikthe only issue are the alsa timeouts AFAIK, opening/closing the PCM but not having the sample rate race might be OK
#asahi-dev · 2023-02-14 12:15
chadmedyeah the only issue i see is the rate. re idleness we can just stop talking to visense when the speakers up indicator goes dark, and we can also block program flow on an empty sample buffer
#asahi-dev · 2023-02-14 12:15
marcan:)
#asahi-dev · 2023-02-14 12:15
poviki didn't want to know how ASoC works but now i do
#asahi-dev · 2023-02-14 12:14
povikso it should work out modulo the idleness/rate symmetry issues
#asahi-dev · 2023-02-14 12:14
marcan(I honestly don't know how ASoC works)

plus ›