2022-03-10
00:58yuyichao_ has quit [Ping timeout: 480 seconds]
01:23yuyichao_ has joined #asahi-dev
01:37chadmedalso i assume it sounded "off" when you tried it because only woofer 1 L/R is actually pumping sound
01:50user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:55user982492 has joined #asahi-dev
02:00DragoonAethis has quit [Quit: hej-hej!]
02:00DragoonAethis has joined #asahi-dev
02:04hizon has joined #asahi-dev
02:05riker77_ has joined #asahi-dev
02:10riker77 has quit [Ping timeout: 480 seconds]
02:10riker77_ is now known as riker77
02:31user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:32the_real_briel[m] has joined #asahi-dev
02:37the_real_briel[m]Hey everyone! I think this project is awesome! I would love to help with this project but I don't necessarily know where to start or what prerequisite information I should work on for this kind of reverse engineering process. What kind of value do you guys think I could best provide to this project only really having university and web dev experience?
03:22kov has quit [Quit: Coyote finally caught me]
03:24PhilippvK has joined #asahi-dev
03:28phiologe has quit [Ping timeout: 480 seconds]
03:34kov has joined #asahi-dev
03:37user982492 has joined #asahi-dev
03:53WindowPain has quit [Quit: ZNC 1.8.2+deb2~bpo10+1 - https://znc.in]
03:53WindowPain has joined #asahi-dev
04:01WindowPain has quit [Quit: ZNC 1.8.2+deb2~bpo10+1 - https://znc.in]
04:01WindowPain has joined #asahi-dev
04:02emergenz[m]I don't have a M1, but a MacBookAir9,1 but I think progress towards getting Bluetooth working on 9,1 would also be valuable for M1 (and vice versa). Has anyone already looked into Bluetooth (of M1 or 9,1)? If yes, please let me know
04:02WindowPain has quit []
04:03emergenz[m]So nobody has started looking into Bluetooth, correct?
04:03WindowPain has joined #asahi-dev
04:33Graypup_ has quit [Quit: meow]
04:33Graypup_ has joined #asahi-dev
04:50King_InuYasha has quit [Read error: Connection reset by peer]
05:10Graypup_ has quit [Quit: meow]
05:10Graypup_ has joined #asahi-dev
05:49Emantor has quit [Quit: ZNC - http://znc.in]
05:50Emantor has joined #asahi-dev
06:32shenki has joined #asahi-dev
06:39the_lanetly_052__ has joined #asahi-dev
06:42chadmedon a more positive note though, i now have all 6 drivers working simultaneously with some very simple alsa configuration
06:43chadmedmy plan was to drive them as if they were triple-driver floorstanders, because they are in essence exactly that
06:45chadmedi.e. have a high pass filter cut the crap below ~6.5k of the tweeters, have each woofer handle ~250-6.5k independently, and then sum both of them as a single channel to handle 0-250
06:46the_lanetly_052__ has quit []
06:47chadmedthis could have been done pretty simply if those plugins worked on aarch64, and then once we had that array set up as a device, hand that off for FIR/IIR correction
06:53jannauchadmed: there are debian packages for all architectures so I suppose they should build on aarch64
07:02Jamie[m]1i don't see any notable differences between the amd64 vs arm64 cmt.so's that would suggest one has more filters than the other
07:16marcanit sounds to me like simpledrm isn't working for you at all and you're actually using efifb
07:17marcanchadmed: it should be possible to just drive each speaker as a FIR/IIR combination of L/R
07:21marcanimpulse responses are not copyrightable :-) (the underlying response isn't anyway; the data file might be, but re-computing it isn't)
07:21Jamie[m]1cleanroom reverse-engineering is so last century. asahi linux does anechoic chamber reverse-engineering
07:21marcanactually we just run macOS in the hypervisor and send out a test signal and capture the speaker streams :p
07:24gladiac has joined #asahi-dev
07:28marcanI wonder if we can literally re-organize our DTs to include the T6000 and T6001-delta subcomponent bits in includes
07:29marcanrobher: what's your take on #include in DTs within buses, for something like this where a vendor glued two SoCs together?
07:32marcanmaybe could have a macro around/next to aliases, which gets redefined around each include
07:35kettenismarcan: the marvell armada 7k/8k and cn9k device trees use some tricks to avoid repetition
07:35marcanalso are subdirectories allowed/preferred under arch/arm64/boot/dts? I think it might get unwieldy if we have everything flat, I'd favor top-level/platform DTs at the top level (and maybe top-level SoC/MCM includes), then a per-soc-family directory with bits and pieces, if that's reasonable
07:38povikalso when i said it sounded off, it was when i simply duplicated the stereo stream to all speakers
07:39povikchadmed: is it realiable on your end? because i had issues with one speaker dying off randomly
07:40povikthe configuration now is that when you open the device for 2 channels, it only drives L/R woofer 1
07:42chadmedpovik: the clipping is extremely prominent at volumes > ~60 in alsamixer, which tells us that the amps are being driven too hard
07:43chadmedalso yeah something is really unstable at the moment, i can reliably poke the array directly through alsa but doing so via pulse, pipewire or jack causes it to explode (drivers start dropping out, volume control lost, etc)
07:45chadmedmarcan: oh too easy then, ill just leave the alsa config at routing the stereo signal to each driver then at the same signal level for now
07:47chadmedhuh, to me it sounds marginally better with everything enabled, i have non-uniform coefficients set in my ttable right now though
07:47chadmedtheyre usually really good about replacing stuff here, a couple of friends have even had liquid damaged machines replaced for free
07:51kettenismarcan: my advice would be to keep it simple; working with those armada 7k/8k device trees has not been a joy
08:13jannauchainload experiments/dcp.py problem on the t6001 solved, dcpep breaks if the shared memory is not zero initialized
08:35user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:24amw has quit [Ping timeout: 480 seconds]
09:45amw has joined #asahi-dev
10:32misteraftermath[m] has joined #asahi-dev
10:37johey has joined #asahi-dev
10:49the_lanetly_052 has joined #asahi-dev
11:41chadmedhttps://gist.github.com/chadmed/2c772c8fdac8280cb17846388203a213 <- some notes on the speaker system in the j314s, and an asound.conf that makes them sound... okay-ish for now
12:30kettenismarcan: that u-boot nvme shutdown patch looks reasonable to me and seems to have no ill effects on my setups
12:34kettenisthat's because the linux driver makes too many assumptions about the state of the device ;)
12:39yuyichao_ has quit [Ping timeout: 480 seconds]
12:50yuyichao_ has joined #asahi-dev
13:20limegorilla[m] has joined #asahi-dev
13:36MajorBiscuit has joined #asahi-dev
13:51robhermarcan: we generally discourage macros for constructing DT nodes, but for includes whatever works for you.
13:53robhermarcan: sub-directories are up to you, but I think would be an overkill. arch/arm/boot/dts is what is unwieldy. :(
13:59marcanrobher: I think we'd want at least some pasting or wrapping to construct alias names and phandle references, otherwise there's no way to avoid the 2x copy and paste for these socs...
14:01svenmarcan: you've also spent to much time with USB: is it correct that there's USB 3.x that only uses a single lane (i.e. one TX/RX pair) and USB 3.2 Gen 2x2 that uses two lanes (i.e. both TX/RX pairs)? and I can combine USB 3 with DP on the other lane on a type c port but if I want that Gen 2x2 thing I can no longer send a DP signal?
14:01marcanand then define DIE to d0_ or d1_ and include the file twice within buses that apply the MMIO offset
14:02marcanalso apple gets this wrong in macOS, and ends up reserving everything for DP even when the DP version should let you run that resolution over 2 DP lanes, not 4, and then ends up downgrading USB to 2.0
14:21marcanrobher: also unrelated, but ideas for a /chosen property name to hold the EFI system partition PARTUUID? since we're going to have multiple, this seems like the sanest way to pass it down to the bootloader/OS... not sure if this one should be an apple,foo thing or not.
14:26robhermarcan: for things on buses, 'ranges' should help you. 'aliases' shouldn't be shared anyways. They usually should be board specific.
14:26marcansince e.g. each die has to self-reference without colliding, and be referenceable by things outside of that file as that specific die
14:36robhermarcan: if we can't express what's needed in dts syntax, we can always add to the syntax.
14:38marcanrobher: we'd need some kind of namespace thing, e.g. a special kind of node or a special prop within a node which causes all labels within it to be prefixed with something... and then some escape syntax to break out of that where needed
14:42svenmarcan: (or anyone else really) do you have a monitor where macos gets that wrong? or maybe a usb3 device that uses both lanes? could you run xnu with these bootargs (essentially usb mmiotrace without the hypervisor :D) then and plug it it? https://f.svpe.de/877e608ff9591ec7cd32455634816d18b927189f8bf8571230295e2b6a16e4fd_usb-debugargs.txt
14:45svenfwiw, xnu will spam a *lot* when you enable those bootargs so make sure to store the output somewhere because it'll overflow your terminal scrollback very quickly
14:51robhermarcan: Though if you just used macros for labels that would be a lot better than the Armada crap.
15:17mazrobher: btw, if you could look at marcan's AICv2 series, I need an Ack from you on the binding patch (at least).
15:23the_lanetly_052 has quit [Remote host closed the connection]
15:24the_lanetly_052 has joined #asahi-dev
16:02heli0s[m] has joined #asahi-dev
16:11the_lanetly_052 has quit [Quit: Leaving]
16:53user982492 has joined #asahi-dev
17:29user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:38___nick___ has joined #asahi-dev
17:45MajorBiscuit has quit [Ping timeout: 480 seconds]
18:08user982492 has joined #asahi-dev
18:26user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:56gladiac has quit [Quit: k thx bye]
21:08___nick___ has quit [Ping timeout: 480 seconds]
23:03V has quit [Ping timeout: 480 seconds]
23:40V has joined #asahi-dev