#
✕ nick:marcan
#asahi-dev · 2022-09-13 11:35
marcanthe codec is in i2c3 on mine
#asahi-dev · 2022-09-13 11:21
marcanyeah, I meant the default in the driver is the same as what's in the property where they set it
#asahi-dev · 2022-09-13 11:17
marcanah
#asahi-dev · 2022-09-13 11:16
marcancheck your ADT just in case (you could have a different version), but yeah
#asahi-dev · 2022-09-13 11:15
marcanguess the field value is default anyway?
#asahi-dev · 2022-09-13 11:15
marcanhuh, so they were doing it already
#asahi-dev · 2022-09-13 11:14
marcanso they just turn off SS, that's all
#asahi-dev · 2022-09-13 11:14
marcanyeah, sorry, I was confused
#asahi-dev · 2022-09-13 11:14
marcanI think?
#asahi-dev · 2022-09-13 11:14
marcansorry, got some defaults backwards
#asahi-dev · 2022-09-13 11:13
marcanso just SS disable
#asahi-dev · 2022-09-13 11:13
marcandc_blk1 is default, you're right
#asahi-dev · 2022-09-13 11:13
marcandc_blk0 21 -> 01 (SS disable)
#asahi-dev · 2022-09-13 11:11
marcansee the ADT paste :)
#asahi-dev · 2022-09-13 11:10
marcan(the M2 ones)
#asahi-dev · 2022-09-13 11:09
marcanso yes
#asahi-dev · 2022-09-13 11:09
marcan(the latest two)
#asahi-dev · 2022-09-13 11:09
marcanonly two models have this setting
#asahi-dev · 2022-09-13 11:08
marcanthey turn on IRQZ pullup (don't think we need that, it should have IPU on the AP side), turn off spread spectrum, and turn off edge rate control
#asahi-dev · 2022-09-13 11:08
marcanyes, they go directly into the DC_BLK0/1 registers
#asahi-dev · 2022-09-13 11:01
marcanI did notice the HPF setting for two models, which actually also includes the upper bits that do other things, so we might want those too
#asahi-dev · 2022-09-13 11:01
marcandid you see what I pasted about the speaker data in the ADTs?
#asahi-dev · 2022-09-13 11:01
marcanpovik: I'm making some changes to macaudio for safety (renaming the module var to something scarier/more accurate, gating everything except j274 on it) and adding j413
#asahi-dev · 2022-09-13 10:36
marcaneven moreso: there's a good chance Apple does the DSP in userspace, and that means you could blow the speakers from userspace if the kernel audio system driver doesn't have enough safety using the VISENSE thing
#asahi-dev · 2022-09-13 10:36
marcanit's not just about third-party OSes either. consider: third-party kext scribbles over memory and it happens to be audio buffers
#asahi-dev · 2022-09-13 10:35
marcanfor a general purpose computing platform, yes, I consider offloading all speaker safety limits to a driver a failure
#asahi-dev · 2022-09-13 10:35
marcanI'm pretty sure you can break it with their software, but the fact that the platforms supports third-party software changes the safety requirements here
#asahi-dev · 2022-09-13 10:31
marcanthe NVMe flush performance issue is another
#asahi-dev · 2022-09-13 10:30
marcanthis is one
#asahi-dev · 2022-09-13 10:30
marcanthey failed at reworking some parts for a macOS world
#asahi-dev · 2022-09-13 10:30
marcanrmk: yes, remember this architecture comes from iOS devices where software was tightly controlled
#asahi-dev · 2022-09-13 08:15
marcanI think it's just glue, they just don't do re-gluing for official repairs
#asahi-dev · 2022-09-13 08:15
marcanit's just the usual prioritizing $design_whatever over repairability
#asahi-dev · 2022-09-13 07:54
marcanthread: https://twitter.com/marcan42/status/1569595321168334848
#asahi-dev · 2022-09-13 07:54
marcanahahahahaha
#asahi-dev · 2022-09-13 05:04
marcanbbl
#asahi-dev · 2022-09-13 05:04
marcananyway, I'm DFUing this thing (with AC2 for now, will re-do it with idevicerestore later to fix it / prove it works) and I should take a shower before I head out to the apple store :)
#asahi-dev · 2022-09-13 05:03
marcanI don't expect apple to cut us off on a whim, but this kind of warranty/damage argument could change their opinion depending on who it gets to
#asahi-dev · 2022-09-13 05:02
marcansome management genius could go "well, we can't *guarantee* that third party OSes won't kill speakers, so we need to void warranty if you bputil" or worse
#asahi-dev · 2022-09-13 05:01
marcanmight be best to just fix the issue ourselves without making too much noise
#asahi-dev · 2022-09-13 05:01
marcan"asahi linux can damage macs, third party OSes bad"
#asahi-dev · 2022-09-13 05:01
marcanand also, there is the very real possibility of this backfiring if it goes up the chain
#asahi-dev · 2022-09-13 05:00
marcanand then set the caps lower than macOS, which we want to anyway, because I'm convinced you can kill the speakers under macOS
#asahi-dev · 2022-09-13 05:00
marcanI think the pragmatic approach here is to just kill some speakers
#asahi-dev · 2022-09-13 04:59
marcanyup
#asahi-dev · 2022-09-13 04:59
marcanand yeah, I'm not signing NDAs
#asahi-dev · 2022-09-13 04:59
marcanand I don't see the latter happening any time soon, given how Apple works
#asahi-dev · 2022-09-13 04:59
marcanand that's solidly in the NDA-violating leak territory unless we get official approval
#asahi-dev · 2022-09-13 04:59
marcanthe problem here is this isn't just theoretical talk, we'd need actual numbers/curves/datasheets to do it right
#asahi-dev · 2022-09-13 04:58
marcanyeah, but finding the correct team *and* someone willing to talk to us?

plus ›