#
✕ nick:marcan
#asahi-dev · 2022-09-13 04:57
marcanand I'm not sure how we'd try to get an official contact
#asahi-dev · 2022-09-13 04:57
marcanI do have friends over there but nobody that works on audio AIUI
#asahi-dev · 2022-09-13 04:57
marcanthat would be tricky...
#asahi-dev · 2022-09-13 04:56
marcanI practically got AppleCare on these things *for* the speaker experiments
#asahi-dev · 2022-09-13 04:56
marcanI'm willing to keep doing this even if I start having to pay for repairs (though that would be shameful of Apple)
#asahi-dev · 2022-09-13 04:56
marcanyup
#asahi-dev · 2022-09-13 04:50
marcanyeah
#asahi-dev · 2022-09-13 04:49
marcanjapanese consumer protection is pretty poor as far as the law goes; most things here rely on the goodwill of manufacturers/shops (which is culturally expected)
#asahi-dev · 2022-09-13 04:48
marcanOTOH they don't cover "intentional" damage, but well, it's not like I'm *trying* to destroy my speakers
#asahi-dev · 2022-09-13 04:47
marcanI suspect it's one of those "nobody thought about this" cases
#asahi-dev · 2022-09-13 04:47
marcanthey just say they don't cover such third-party software itself
#asahi-dev · 2022-09-13 04:47
marcanI did skim the applecare US terms (not going to spend hours trying to parse legalese in Japanese...) and at least those don't explicitly single out anything about software damage due to third-party software
#asahi-dev · 2022-09-13 04:46
marcan:D
#asahi-dev · 2022-09-13 04:46
marcanoh yeah
#asahi-dev · 2022-09-13 04:44
marcanbut I do wonder if there's any chance of getting the broken speakers back
#asahi-dev · 2022-09-13 04:44
marcanwell, I did pay for AppleCare, so if I have to have my speakers replaced 5 times and they start looking at me weird, I can just say "look, I'm trying to figure out how *not* to kill the speakers so that a few thousand people don't kill them"
#asahi-dev · 2022-09-13 04:44
marcanlol
#asahi-dev · 2022-09-13 04:43
marcanbut it would be nice to get the old speakers back
#asahi-dev · 2022-09-13 04:43
marcancould very much go either way
#asahi-dev · 2022-09-13 04:43
marcanI'm debating whether I should try to get friendly with the Apple Store technician, and/or let them know what's going on
#asahi-dev · 2022-09-13 04:42
marcanlol
#asahi-dev · 2022-09-13 04:42
marcanif it got resampled then maybe not
#asahi-dev · 2022-09-13 04:42
marcanrkjnsn: can you confirm the sample rate? if it's 44.1k then I think my copy should be identical after the re-clipping
#asahi-dev · 2022-09-13 04:41
marcanyeah, unfortunately
#asahi-dev · 2022-09-13 04:36
marcanopened an issue to track speaker protection research: https://github.com/AsahiLinux/linux/issues/53
#asahi-dev · 2022-09-13 04:36
marcanI might look at wifi again tonight if I have time
#asahi-dev · 2022-09-13 04:36
marcansorry, yeah, not pushed yet
#asahi-dev · 2022-09-12 18:42
marcan(see that bits branch)
#asahi-dev · 2022-09-12 18:42
marcanalready reverted that
#asahi-dev · 2022-09-12 17:45
marcankloenk: I wouldn't spend time on mailbox, there's a good chance we just stop using that subsystem altogether
#asahi-dev · 2022-09-12 17:44
marcanI didn't push the merge yet, because I haven't properly tested it yet
#asahi-dev · 2022-09-12 15:25
marcanpovik: https://mrcn.st/p/0T06JXXf matches the gain values you saw
#asahi-dev · 2022-09-12 15:22
marcanonly for j413 and j493, but they just set it to 2Hz globally
#asahi-dev · 2022-09-12 15:19
marcanso I guess they *do* use the dcblocker sometimes
#asahi-dev · 2022-09-12 15:19
marcanamp-dcblocker-config = 16641
#asahi-dev · 2022-09-12 15:19
marcanoh wait, there is this too
#asahi-dev · 2022-09-12 15:12
marcanno? it's a binary property
#asahi-dev · 2022-09-12 15:10
marcanand yeah, I'm pretty sure I know where the gain is set, hold on, let me augment the adt decoder for this
#asahi-dev · 2022-09-12 15:09
marcanbut you can also tell because the speaker config has data for bytes 2-3 per speaker, which is probably the TDM feedback slots
#asahi-dev · 2022-09-12 15:09
marcanit's literally speaker-protection = 1
#asahi-dev · 2022-09-12 15:07
marcanapple does not use the DC blocker
#asahi-dev · 2022-09-12 15:03
marcanit seems the original M1 trio never had speaker-protection, and the desktops (including iMacs) don't have it enabled. every laptop after that (t6k series and M2) does have it.
#asahi-dev · 2022-09-12 15:02
marcanso I may have found where in the ADT the speaker amp level is set, and also it seems some macs use speaker-protection (which I think means VI sense) and some don't
#asahi-dev · 2022-09-12 14:39
marcanhttps://www.ti.com/lit/an/slaa857/slaa857.pdf useful whitepaper
#asahi-dev · 2022-09-12 14:18
marcanDmitrySharshakov[m]: from what I can tell in that code, they only use VI feedback to compute speaker calibration, not normally at runtime
#asahi-dev · 2022-09-12 14:15
marcanah, it actually is tinyalsa, but it also uses custom stuff around it, so shrug
#asahi-dev · 2022-09-12 14:10
marcanso yeah, I have ~no hope of finding anything in this field that we can actually use
#asahi-dev · 2022-09-12 14:10
marcanhere's one that does it in userspace. this one of course is not ALSA, it's proprietary qualcomm nonsense: https://source.codeaurora.org/quic/le/platform/hardware/qcom/audio/tree/hal/audio_extn/spkr_protection.c?h=LV.AU.0.2.0.r1
#asahi-dev · 2022-09-12 14:00
marcanI suspect it's going to be like that, either DSP, or just userspace, for ~all android devices
#asahi-dev · 2022-09-12 14:00
marcanso not useful for us

plus ›