#
#asahi · 2023-03-10 22:37
jnwhich is quieter than desirable, but at least it's always safe
#asahi · 2023-03-10 22:36
jnwhenever the daemon isn't there, the kernel will set a safe volume
#asahi · 2023-03-10 22:36
j`ey_then it'll be in failsafe mode
#asahi · 2023-03-10 22:35
elvishjerriccochadmed what if the daemon never starts at all for some reason? Is it still guaranteed that you can't break the speakers?
#asahi · 2023-03-10 22:02
chadmedof course, anyone whos not convinced that this is a safe architecture is more than welcome to not use the speakers :)
#asahi · 2023-03-10 22:01
chadmedwhy go through all that when we can just far more easily implement it in userspace
#asahi · 2023-03-10 22:01
chadmedayke_: it's not that it's technically impossible outright, it's that its annoying to implement, way more work than its worth, and would result in a shitfight on the mailing lists
#asahi · 2023-03-10 17:19
jnfor example, WireGuard uses the same infrastructure (for SIMD cryptography)
#asahi · 2023-03-10 17:19
jnfloating point can be used in the linux kernel, but it's a bit of a hassle
#asahi · 2023-03-10 16:25
ayke_I don't know about "interfacing with the sound card", no idea how difficult it is.
#asahi · 2023-03-10 16:25
ayke_(meaning, I expect it can be implemented using fixed point math if needed)
#asahi · 2023-03-10 16:21
ayke_I have some experience converting floating point math to fixed point math for chips without FPU, so that _shouldn't_ be a blocker.
#asahi · 2023-03-10 16:20
ayke_Are these FP operations performance sensitive?
#asahi · 2023-03-10 16:19
ayke_chadmed: floating point doesn't work in the kernel? That makes sense. But what about softfloat or fixed point math?
#asahi · 2023-03-10 16:12
jannauarnd: the first point is moot
#asahi · 2023-03-10 14:49
jonmasonarnd: thanks
#asahi · 2023-03-10 14:43
arndjonmason: see https://society.oftrolls.com/@AsahiLinux@treehouse.systems/109985145523510115 for the two major missing bits.
#asahi · 2023-03-10 14:22
jonmasonI see that the mac mini m2 dts was pushed to the kernel recently. I recently purchased one. Is there anything I can do to help get it working?
#asahi · 2023-03-10 11:51
bluetailsome mass-storage devices make u-boot panic though, but thats under investigation and I really love how supportive the people are to solve the issues.
#asahi · 2023-03-10 11:50
bluetaileven runs my 2.5gbps lan adapter via usb fine
#asahi · 2023-03-10 11:50
bluetailno issues so far... been a stable nasbox with a 10 bay usb storage unit :D
#asahi · 2023-03-10 11:50
bluetailI run asahi since its developers release
#asahi · 2023-03-10 10:06
veeyeeNew GitHub sponsor here, just wanted to say great work so far. Looking forward to seeing the project develop over time
#asahi · 2023-03-10 09:17
chadmedits really the tweeters we're most concerned about here
#asahi · 2023-03-10 09:17
chadmedwell the desktop machines dont get loud enough to cause damage in any case because they dont have tweeters
#asahi · 2023-03-10 09:16
bluetailwhat about just blasting the fan at 100% all the time? :D
#asahi · 2023-03-10 09:16
chadmedi believe so yes
#asahi · 2023-03-10 09:16
bluetailthe m1 mac mini has a fan right?
#asahi · 2023-03-10 09:16
JTLmakes sense
#asahi · 2023-03-10 09:15
chadmedthe watchdog should reboot the system before too long if the kernel dies anyway
#asahi · 2023-03-10 09:15
chadmedso even if the kernel shits the bed while youre playing loud music and you get a looping sample it should never have gotten loud enough to cause damage to the machine
#asahi · 2023-03-10 09:14
chadmedif the daemon hasnt died than you can be guaranteed that the volume currently coming out of the speakers is safe for them
#asahi · 2023-03-10 09:14
chadmedif the daemon dies then the codecs will go into safe mode
#asahi · 2023-03-10 09:14
j`ey_kernel panic during loud music?
#asahi · 2023-03-10 09:14
chadmednot a lot
#asahi · 2023-03-10 09:14
JTLJust an idle curiosity of how much can go FUBAR while still having "unafe" output to the speakers
#asahi · 2023-03-10 09:13
chadmedright so whats the concern
#asahi · 2023-03-10 09:13
JTLI know
#asahi · 2023-03-10 09:13
chadmedit takes in voltage and current measurements made by the codec at the voice coil of each speaker, and then uses that to compute the temperature of each speaker
#asahi · 2023-03-10 09:12
chadmedthe daemon exists so that we can use the entire dynamic range of the system without having to _rely_ on safe mode all the time
#asahi · 2023-03-10 09:11
chadmedthis all happens transparent to the rest of userspace, and only the daemon knows about this via ioctls
#asahi · 2023-03-10 09:11
chadmedif the driver doesnt hear from it, it will put the codecs into a safe mode that limits their output to half the max, which is safe enough to prevent any damage
#asahi · 2023-03-10 09:10
chadmedwell it works in tandem with the kernel. the daemon will kick the asoc driver periodically to tell the kernel that it's still alive
#asahi · 2023-03-10 09:07
JTLI'm curious how failsafe a daemon can be, and if certain horrible conditikons (i.e kernel panics) can casue unpleasent "machinegun" style effects through speakers. Probably just remembering the horror of buggy onboard audio codecs on PCs.
#asahi · 2023-03-10 09:05
chadmedseems i have some work to do this weekend...
#asahi · 2023-03-10 09:05
chadmedoh my god i just used the mac mini's speaker for the first time (accidentally)
#asahi · 2023-03-10 08:21
chadmedso it _needs_ to be done in userspace
#asahi · 2023-03-10 08:21
chadmedthe kernel cannot do the former and the latter is not quite as stable as one would think it to be
#asahi · 2023-03-10 08:20
chadmedelvishjerricco: the speaker safety stuff relies on floating point math and interfacing with the sound card
#asahi · 2023-03-09 22:46
ari'm not involved with it, but i'd guess that userland code is easier to iterate on, and userland audio APIs may be easier to deal with

plus ›