#
✕ nick:chadmed
#asahi-dev · 2022-03-10 06:54
chadmedif you try installing them, youll notice that some plugins are missing
#asahi-dev · 2022-03-10 06:47
chadmedthis 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
#asahi-dev · 2022-03-10 06:45
chadmedi.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
#asahi-dev · 2022-03-10 06:43
chadmedmy plan was to drive them as if they were triple-driver floorstanders, because they are in essence exactly that
#asahi-dev · 2022-03-10 06:42
chadmedgranted, they sound like arse, but thats what the LADSPA plugins were meant to fix
#asahi-dev · 2022-03-10 06:42
chadmedon a more positive note though, i now have all 6 drivers working simultaneously with some very simple alsa configuration
#asahi-dev · 2022-03-10 06:41
chadmedif i could i would just as a proof of concept lmao
#asahi-dev · 2022-03-10 06:32
chadmedactually no theyre not, but they wont link for aarch64 in any case with bfd or lld
#asahi-dev · 2022-03-10 06:28
chadmedmost importantly to us, the low, high, and bandpass filters
#asahi-dev · 2022-03-10 06:27
chadmedsooooo turns out a bunch of the CMT LADSPA filters are written in x86 assembly...
#asahi-dev · 2022-03-10 04:04
chadmednah bluetooth is far down the priority list at the moment
#asahi-dev · 2022-03-10 01:37
chadmedalso i assume it sounded "off" when you tried it because only woofer 1 L/R is actually pumping sound
#asahi-dev · 2022-03-10 01:10
chadmedpovik: max volume in alsa overdrives the speakers by about double on j314s now
#asahi-dev · 2022-03-09 07:21
chadmedsure thing
#asahi-dev · 2022-03-09 07:17
chadmedi had a play with the clock multiplier in the dt but that just made things explode
#asahi-dev · 2022-03-09 07:17
chadmednightcore is a genre of music where they take a sped up song and chop and screw it, i was referring to how everything is sped up and chipmunk-y
#asahi-dev · 2022-03-09 07:16
chadmedyeah stereo device
#asahi-dev · 2022-03-09 07:16
chadmednow it detects, but ive been trying to get to the bottom of the nightcore problem
#asahi-dev · 2022-03-09 07:16
chadmednah i figured it out, apple-admac wasnt loading automatically so i just added it to modules.load.d
#asahi-dev · 2022-03-09 04:37
chadmedah righto yeah i understand now, misread that message :s
#asahi-dev · 2022-03-09 04:35
chadmedyeah i was just referring to the part where he suggested presenting it as a stereo device to userspace rather than exposing all the channels and letting userspace decide what to do with them in configuration, which is what i was about to have a play with now
#asahi-dev · 2022-03-09 04:20
chadmedpovik: what do i have to do to get alsa to see the sound card on a j314s? ive build your asahi-snd-wip branch and built a new m1n1 payload with the dt from there, the modules load on boot but alsa says theres no sound cards
#asahi-dev · 2022-03-09 03:33
chadmedthe logs are public, links in the channel topic/header for every asahi channel :)
#asahi-dev · 2022-03-09 01:03
chadmedi think this is better than just presenting it to ALSA as a stereo device, it gives us (and the user) far more control over the sound profile
#asahi-dev · 2022-03-09 01:02
chadmedjust so we can get an idea of settings and such to create a profile/FIR for it so this all happens automagically
#asahi-dev · 2022-03-09 01:02
chadmedpovik: just as a test, have you a way of identifying which channels are which physical speakers in the device? if so, it might be worth setting up a stereo loopback sink, upmixing that to 6 channels, then playing with JACK or something to feed each channel into a DSP chain consisting of a bandpass filter and EQ and then outputting that to each channel in the speaker array
#asahi-dev · 2022-03-08 11:39
chadmedwhich should just be in ${CardName}
#asahi-dev · 2022-03-08 11:38
chadmedyeah thats the way id do it if we can pass the name of the device to userspace
#asahi-dev · 2022-03-08 11:35
chadmedthis is why its 2022 and still no one takes audio on linux seriously
#asahi-dev · 2022-03-08 11:35
chadmedhttps://www.alsa-project.org/alsa-doc/alsa-lib/group__ucm__conf.html <- this just refers to it as the "original ucm card name"
#asahi-dev · 2022-03-08 11:33
chadmedwell i guess the "proper" way they want you to do it is have a separate ASoC driver for each device. this dmi name function seems to have been added as a hack to get around that in the first place
#asahi-dev · 2022-03-08 11:32
chadmedwith no changes to ucm or alsa
#asahi-dev · 2022-03-08 11:31
chadmedand we get ucm support for free
#asahi-dev · 2022-03-08 11:31
chadmedyeah so im saying that if it turns out the dmi name function behaves as we think it does, all we need to do is name the ucm config file the same thing as the model string in the dt
#asahi-dev · 2022-03-08 11:30
chadmedseems to just get the long name magically
#asahi-dev · 2022-03-08 11:30
chadmedhttps://git.alsa-project.org/?p=alsa-ucm-conf.git;a=blob;f=ucm2/ucm.conf here is how ucm gets its card names
#asahi-dev · 2022-03-08 11:26
chadmedthe first argument to the function is the pointer to snd_soc_card so i guess it just attaches itself to the device in the driver
#asahi-dev · 2022-03-08 11:24
chadmedbut the function just takes a const char * as the long name
#asahi-dev · 2022-03-08 11:23
chadmedyeah
#asahi-dev · 2022-03-08 11:23
chadmedan intel interconnect
#asahi-dev · 2022-03-08 11:22
chadmedhttps://www.kernel.org/doc/html/v4.15/sound/kernel-api/alsa-driver-api.html#c.snd_soc_set_dmi_name
#asahi-dev · 2022-03-08 11:21
chadmedthe docs say it specifically exists to let UCM differentiate between devices that all use the same driver
#asahi-dev · 2022-03-08 11:21
chadmedtheres a function to register a long name for the card. the docs make reference to using it to grab DMI information on systems with intel hda, but the actual function seems to just take a pointer to a char, so we could just feed snd_soc_of_parse_card_name to it and see if that works i guess
#asahi-dev · 2022-03-08 11:17
chadmedyeah that particular way of doing it seems to rely on usb stuff so disregard
#asahi-dev · 2022-03-08 11:16
chadmedbut it seems like it wants device major:minor type strings to match against
#asahi-dev · 2022-03-08 11:15
chadmedseems like ucm is able to probe the alsa driver for the actual card's name, which im guessing is what comes from the dt model string?
#asahi-dev · 2022-03-08 11:10
chadmedpovik: ucm2 actually uses the alsa/kernel driver name from sysfs to pick a config profile, not the model string from the DT
#asahi-dev · 2022-03-08 08:00
chadmedUCM uses the card name as referenced by aplay -l, so on OF platforms that should be the model string. spaces are replaced with hyphens
#asahi-dev · 2022-03-08 07:56
chadmedif UCM needs to match the model string, i would just add the actual model ID, so like "MacBook Pro J314/6 Integrated Audio"
#asahi-dev · 2022-03-08 06:04
chadmeditll be a necessity for end users at some point regardless i think. all the messages kmutil throws at you about it being able to blow your computer up and irradiate your house are scary

plus ›