#asahi-dev · 2022-09-13 16:18
DmitrySharshakov[m]<marcan> "in this case the two thermal..." <- Ahh, more complex thing than I thought. Then sorry, your calculations seem perfectly fine then. Also 0.5W is quite expectable for those speakers#asahi-dev · 2022-09-13 14:31
DmitrySharshakov[m]But K/W (or °C/W) most likely should refer to heat capacity. thermal resistance is the value thermal conductors should be measured with (K/W*m or sth like this), the resistance material gives to the heat flow#asahi-dev · 2022-09-13 14:29
DmitrySharshakov[m]from what you've written it appears that thermal resistance = heat capacity (you refer to it in that way). That looks a bit weird to me. Maybe my English Physics terms are not on the best level and I misunderstood it#asahi-dev · 2022-09-13 08:18
DmitrySharshakov[m]* to avoid that overcurrent, mute#asahi-dev · 2022-09-13 08:18
DmitrySharshakov[m]unite and rule, just try the best from userspace at not getting into risky situation, but if you fail to avoid, mute for safety#asahi-dev · 2022-09-13 08:17
DmitrySharshakov[m]newer thoughts on implementation: https://github.com/AsahiLinux/linux/issues/53#issuecomment-1245046943#asahi-dev · 2022-09-12 15:23
DmitrySharshakov[m]Maybe future software/hardware versions would make use of it#asahi-dev · 2022-09-12 15:23
DmitrySharshakov[m]This means they added a config to the driver but are not currently using it so keep the default#asahi-dev · 2022-09-12 15:20
DmitrySharshakov[m]I've previously decoded this when jannau sent it. It means IRQZ on + 2 Hz DC blocker on both playback and recording (ivsense). Basically the default values after reset#asahi-dev · 2022-09-12 15:11
DmitrySharshakov[m]marcan: Wasn't it decoded automatically before?#asahi-dev · 2022-09-12 15:10
DmitrySharshakov[m]are they in the speaker config (like some blank space in registers from the ADT)? I believe they are not in registers at all#asahi-dev · 2022-09-12 15:08
DmitrySharshakov[m]But where have you found that new info? Is it a register value embedded into DT or just a flag like `speaker-protection = 1`?#asahi-dev · 2022-09-12 15:07
DmitrySharshakov[m]I know#asahi-dev · 2022-09-12 15:05
DmitrySharshakov[m]* set somewhere in ADT for DC#asahi-dev · 2022-09-12 15:05
DmitrySharshakov[m]I think jannau once sent us a value being set somewhere for DC blocker. that was for like 2 Hz. Have you found a new DT prop then?#asahi-dev · 2022-09-12 15:04
DmitrySharshakov[m]So j314 might be okay without it but with sound properly confined by amp settings?#asahi-dev · 2022-09-12 15:04
DmitrySharshakov[m]Some do enable the feedback? Does j413 you've been testing use that, is there a backchannel in the traces?#asahi-dev · 2022-09-12 14:48
DmitrySharshakov[m]I've read that those need software speaker protection, but there are ones from within SmartAmp lineup which implement the algorithm themselves. Sadly those likely aren't included in any models#asahi-dev · 2022-09-12 14:46
DmitrySharshakov[m]Do all known AS Macs (except the iMac) use TAS2764 codecs?#asahi-dev · 2022-09-12 14:46
DmitrySharshakov[m]https://www.ti.com/lit/an/slaa900/slaa900.pdf refers to a program used as a playground for evaluation, as well as some more (yet not directly related) facts about I/V sense#asahi-dev · 2022-09-12 14:41
DmitrySharshakov[m]Not the thing I recalled of, but definitely nice to read through (will do)#asahi-dev · 2022-09-12 14:23
DmitrySharshakov[m]https://source.codeaurora.org/quic/le/platform/hardware/qcom/audio/tree/hal/audio_extn/spkr_protection.c?h=LV.AU.0.2.0.r1#n2413 appears to be something continuous. though code is hard to understand, I'm not really into Android userspace parts to know where it plugs into#asahi-dev · 2022-09-12 14:17
DmitrySharshakov[m]Yes, some MSM audio headers at least. So probably it's not a standardized kernel API... Well, we should get that problem discussed on the LKML#asahi-dev · 2022-09-12 14:14
DmitrySharshakov[m]However, that code looks to have some potential to reach the kernel. Not FFT, way smaller memory footprint, no tons of maths#asahi-dev · 2022-09-12 14:03
DmitrySharshakov[m]At least they have HPF, thanks for that huh#asahi-dev · 2022-09-12 14:03
DmitrySharshakov[m]well, tas's also have a DSP, why not a firmware-enabled one? ;(#asahi-dev · 2022-09-12 14:02
DmitrySharshakov[m]marcan: dream codec#asahi-dev · 2022-09-12 14:02
DmitrySharshakov[m]povik: sure, will do#asahi-dev · 2022-09-12 13:59
DmitrySharshakov[m]I think I've seen a whitepaper from them about using I/V sense in products#asahi-dev · 2022-09-12 13:58
DmitrySharshakov[m]* DmitrySharshakov[m] goes to Texas Instruments website to find out more and revise the datasheet#asahi-dev · 2022-09-12 13:57
DmitrySharshakov[m]But other platforms are likely to even scale the volume based on that data#asahi-dev · 2022-09-12 13:56
DmitrySharshakov[m]I guess RMS values with some multiplier should give us enough to trigger the safety mute#asahi-dev · 2022-09-12 13:55
DmitrySharshakov[m]At least finding the code might make us know the amount of processing#asahi-dev · 2022-09-12 13:55
DmitrySharshakov[m]marcan: I know#asahi-dev · 2022-09-12 13:54
DmitrySharshakov[m]marcan: Like the userspace is fixed and kernel gives no guarantees?#asahi-dev · 2022-09-12 13:52
DmitrySharshakov[m]Yes, after we get a look at data we could try to find out how Android handles those events#asahi-dev · 2022-09-12 13:52
DmitrySharshakov[m]marcan: Yes, so if it is significantly lower, then we have a need in something like that#asahi-dev · 2022-09-12 13:50
DmitrySharshakov[m]marcan: and another question is whether we really want that high volume level which will then be protectively clipped/muted/attenuated when it goes out of safe range#asahi-dev · 2022-09-12 13:49
DmitrySharshakov[m]btw I/V sense is used by most phones. Do some have upstream drivers for that? If so, let's take a look#asahi-dev · 2022-09-12 13:48
DmitrySharshakov[m]Probably if maintainers are not against this kernel driver should take care of it#asahi-dev · 2022-09-12 13:44
DmitrySharshakov[m]Does macOS activate the I/V sense feedback ever?#asahi-dev · 2022-09-12 13:44
DmitrySharshakov[m]marcan: Hmm, might be done like that as well#asahi-dev · 2022-09-12 13:43
DmitrySharshakov[m]But still I guess we just need to lower the volume#asahi-dev · 2022-09-12 13:43
DmitrySharshakov[m]marcan: Yea, nice idea#asahi-dev · 2022-09-12 13:43
DmitrySharshakov[m]marcan: Probably sth as simple as 'if higher than (say) 2 watts in some time, lower the gain'#asahi-dev · 2022-09-12 13:42
DmitrySharshakov[m]btw does Apple Care return the replaced parts?#asahi-dev · 2022-09-12 13:41
DmitrySharshakov[m]Yes, so that would be risky as I mentioned earlier #asahi-dev · 2022-09-12 13:40
DmitrySharshakov[m]I first thought we could make use of those measurements in runtime for extra safety#asahi-dev · 2022-09-12 13:39
DmitrySharshakov[m]Sorry for misunderstanding #asahi-dev · 2022-09-12 13:39
DmitrySharshakov[m]Ah, you mean during tests