#asahi-dev · 2022-10-28 07:12
chadmedinteresting, i had a play with delaying the transition to SND_SOC_DAPM_PRE_PMD to give the codecs some time to actually mute the DAC's stream but it kept doing it. i even added the DVC_RAMP stuff to try and gracefully bring the volume down#asahi-dev · 2022-10-28 04:05
chadmedi wonder if its always been like that or users complained about codecs taking too long to start back up after being muted and powered down or something #asahi-dev · 2022-10-28 04:04
chadmedso thats no good#asahi-dev · 2022-10-28 04:04
chadmedpovik: just fyi the popping/clicking thing i mentioned last night isnt anything wrong with the tas2764 driver. mute_stream is only called when wireplumber suspends nodes, which only happens 5 seconds after the node stops being used#asahi-dev · 2022-10-27 10:08
chadmedso theres no need to persist the firmware past the initramfs? #asahi-dev · 2022-10-27 10:08
chadmedoh i see in the hook now#asahi-dev · 2022-10-27 09:32
chadmedjust wanna make sure the fedora folks are happy with it before committing, it would suck if we had to duplicate efforts#asahi-dev · 2022-10-27 09:32
chadmedoh yeah of course, but we can skirt around that without update-vendor-firmware and like you said just use a way simpler check in the hook#asahi-dev · 2022-10-27 09:25
chadmedand that would work for installer images that we ship since they will presumably be built with this hook#asahi-dev · 2022-10-27 09:25
chadmedwell the idea behind the cpio is that the firmware is already sorted and arranged, so if we can just open that and dump its contents into the target root pre-pivot then we shouldnt need to check the manifest ever, right? #asahi-dev · 2022-10-27 09:20
chadmedand only have it run if /lib/firmware/vendor doesnt exist on the root we're trying to pivot to #asahi-dev · 2022-10-27 09:19
chadmedi was thinking we could just write that functionality into the dracut hook itself #asahi-dev · 2022-10-27 09:09
chadmedmarcan: so update-vendor-firmware should no longer be necessary as long as the /lib/firmware/vendor handling stuff is in place in the initramfs?#asahi-dev · 2022-10-25 07:10
chadmedack, definitely feels smoother regardless. was simpledrm limited to the minimum refresh rate of the displays? #asahi-dev · 2022-10-25 07:07
chadmedyeah, but thats fine bc a mesa update broke scaling on wayland anyway so its unusable either way#asahi-dev · 2022-10-25 07:05
chadmedyeah thought so, all good! nice to have 120hz finally#asahi-dev · 2022-10-25 07:04
chadmedno scaling issues, but it is very slow to draw relative to everything else on screen and flickers on movement #asahi-dev · 2022-10-25 07:01
chadmedcursor plane is a bit dodgy and wayland renders at less than 1 fps but the wayland thing might be mesa since it was behaving oddly after an update on simpledrm too #asahi-dev · 2022-10-25 07:00
chadmedjannau: dcp working both builtin and as a module on j314#asahi-dev · 2022-10-25 01:05
chadmedpovik: i can amend the commit message and force push later today when i boot back into linux, no big deal there. i didnt see the comment you made about it until i woke up today so thats my bad#asahi-dev · 2022-10-24 12:02
chadmedi also realised that the IRs would have sounded like crap for anyone who didnt know to force PW to resample everything to 96khz, so the config fragment now does that#asahi-dev · 2022-10-24 12:01
chadmedok all fixed! sorry for all the silly errors, its been a long day#asahi-dev · 2022-10-24 11:53
chadmedoh right yeah that isnt necessary anymore#asahi-dev · 2022-10-24 11:41
chadmedokay pushed a fixed up version to audio-stuff-v2, all works without silly hacks now :)#asahi-dev · 2022-10-24 08:21
chadmedpushed to audio-stuff on my local branch, feedback welcome :)#asahi-dev · 2022-10-24 07:32
chadmedwell that was relatively painless#asahi-dev · 2022-10-24 06:32
chadmedbut, num_codecs in dai_link on the backend is 3, which is wrong#asahi-dev · 2022-10-24 06:31
chadmedyeah the only thing is getting it out of hw params still gives me 8 since it creates enough to consume the entire clock, so what im trying to do is constrain the fe on startup based on the number of codecs the backend its connected to is comprised of#asahi-dev · 2022-10-24 06:29
chadmedthat was my first thought i just didnt want to make that assumption without checking first#asahi-dev · 2022-10-24 06:29
chadmedso it would be fine to just do * 2 across one dai_link?#asahi-dev · 2022-10-24 06:28
chadmedso im just thinking of a smart way to handle that#asahi-dev · 2022-10-24 06:28
chadmedthat only gives me 3 codecs, which i guess makes sense since the speaker array is across two cpu links#asahi-dev · 2022-10-24 06:19
chadmednum_codecs is no longer present in snd_soc_pcm_runtime as of 6.1...#asahi-dev · 2022-10-23 09:38
chadmedack, ill have a go of it on tuesday#asahi-dev · 2022-10-23 09:27
chadmedso basically look at the backends, get the max number of channels on any one backend, then set a constraint to that number on secondary?#asahi-dev · 2022-10-23 09:13
chadmedbut since the problem is on the frontends and not the backend DAIs, i cant really see how we would enforce the number of TDM slots unless we could make the safe assumption that the secondary frontend is always the internal speakers, which is why i asked about it#asahi-dev · 2022-10-23 09:13
chadmedlooking at other drivers though, it seems like everyone else hard codes TDM slots based on the hardware. obviously we cant do that since we have lots of different devices to support, but theres also the dai-tdm-slot-num DT property that we may be able to take advantage of#asahi-dev · 2022-10-23 09:12
chadmedonce i got my head around the OF parsing functions it was fine :)#asahi-dev · 2022-10-23 09:11
chadmedheh yeah, i think i have a better idea of whats going on now that ive spent all day staring at macaudio.c#asahi-dev · 2022-10-23 09:08
chadmed^ yeah that was the message to ignore, i realised what it was doing immediately after i sent that #asahi-dev · 2022-10-23 04:16
chadmedignore that last message #asahi-dev · 2022-10-23 04:10
chadmedalso fwiw the amp gain kctls dont have Volume in their name, so those gain caps in the fixup methods werent applying#asahi-dev · 2022-10-23 04:08
chadmedpovik, marcan: thoughts on deactivating the * Mux kctls on the laptops? i dont see any need for a user to change them, and having them statically set in the driver eliminates one more avenue for misconfiguration#asahi-dev · 2022-10-22 10:43
chadmedPlaybackChannels 6 does nothing, jack and pw both still insist on opening 8 channels when the bclk ratio is 256 #asahi-dev · 2022-10-22 09:55
chadmedtheres no WNF Switch mixer control so it was dying on that#asahi-dev · 2022-10-22 09:54
chadmedwell that was a quick debug session#asahi-dev · 2022-10-22 09:47
chadmedpw just hangs on it and doesnt say anything :) #asahi-dev · 2022-10-22 09:46
chadmedyeah#asahi-dev · 2022-10-22 09:45
chadmedit doesnt work at all on this machine#asahi-dev · 2022-10-22 09:45
chadmedill have a go at getting the ucm stuff to work then