#asahi-dev · 2023-02-14 12:14
povikit's effectively another slave device on the bus#asahi-dev · 2023-02-14 12:14
marcaneven better then :)#asahi-dev · 2023-02-14 12:14
povikdoesn't look that way to me#asahi-dev · 2023-02-14 12:13
povik13:13 <@marcan> it'll be tricky getting all the flows right and making sure it acts as a subordinate and doesn't spuriously keep power domains on and things like that#asahi-dev · 2023-02-14 12:13
marcanarnd: it can wait then (it's a pile of DT compatible additions + t8112 device trees)#asahi-dev · 2023-02-14 12:13
arndmarcan: it's really late for new content for 6.3, I would much prefer to have an intitial to merge by -rc4 rather than -rc8, with follow-up patches and fixes on top up to the merge window. I have a few other things going on this week, so it's possible that this will have to wait for 6.4, but I'll have a look when you send it#asahi-dev · 2023-02-14 12:13
marcanit'll be tricky getting all the flows right and making sure it acts as a subordinate and doesn't spuriously keep power domains on and things like that#asahi-dev · 2023-02-14 12:12
marcanit'll probably need some ASoC changes or core ALSA changes to make this possible but eh#asahi-dev · 2023-02-14 12:12
marcanand the samples actually arrive at the rate determined by the playback sample rate#asahi-dev · 2023-02-14 12:12
marcanI mean we'll still need "a" sample rate for opening it, but it can just be fake or allow any of the valid ones or whatever#asahi-dev · 2023-02-14 12:11
povik(that was a response to marcan)#asahi-dev · 2023-02-14 12:11
povikprobably#asahi-dev · 2023-02-14 12:11
chadmedis there a way to get samples out of a pcm without having it "properly" open? #asahi-dev · 2023-02-14 12:11
marcanwe're just going to run into rare races that break audio for people#asahi-dev · 2023-02-14 12:10
marcantrying to play PCM open/close games to match sample rates is a losing game for this use case#asahi-dev · 2023-02-14 12:10
marcanwe want the safety daemon to just always be there, idling (and not keeping hardware awake) when nothing is using the playback pcm, and just be woken up with samples when there are some#asahi-dev · 2023-02-14 12:10
marcanchadmed: I don't think trying to interlock the sample rates is a viable solution long term, it's inherently racy#asahi-dev · 2023-02-14 12:09
chadmedbut being that theyre still bindings for alsa-lib its all very fragile :( #asahi-dev · 2023-02-14 12:09
marcanwe also need the safety interlocks etc#asahi-dev · 2023-02-14 12:09
chadmedalsa-lib will let you query the pcm for supported rates (and by extension the rust bindings)#asahi-dev · 2023-02-14 12:09
marcanyeah, I plan to look into all this next time I do a stream about it (was going to be today but...)#asahi-dev · 2023-02-14 12:09
povikotherwise there's nothing enforced from the side of mca/macaudio#asahi-dev · 2023-02-14 12:09
povikmarcan: you can open the visense pcm without main pcm running but i think alsa timeouts will shut you down#asahi-dev · 2023-02-14 12:09
povikalso i think there should be a way to figure out the rate the pcm will let you be opened in without brute force#asahi-dev · 2023-02-14 12:08
marcanand then either we report the sample rate some other way (control?), or just don't and the daemon can guess from the timing of samples arriving#asahi-dev · 2023-02-14 12:08
marcanideally visense should be openable even without the main PCM open (and just stay idle), and ignore the samplerate#asahi-dev · 2023-02-14 12:08
marcanchadmed: we need to rethink the whole samplerate thing anyway#asahi-dev · 2023-02-14 12:07
povik...and it didn't need to :)#asahi-dev · 2023-02-14 12:07
povikthat's pretty much what my script did#asahi-dev · 2023-02-14 12:07
povikjannau_: ha!#asahi-dev · 2023-02-14 12:07
jannau_'Documentation/..../' is not necessary, 'DT_SCHEMA_FILES=apple,sart.yaml' for example works as well#asahi-dev · 2023-02-14 12:07
chadmedwhich is more than a little bit annoying#asahi-dev · 2023-02-14 12:06
chadmedwe will need a way to know what sample rate the main pcm has been opened by $audio_server at since the visense pcm will refuse to be opened at any other rate#asahi-dev · 2023-02-14 12:06
chadmedpushed some fixes#asahi-dev · 2023-02-14 12:06
povikthanks!#asahi-dev · 2023-02-14 12:05
marcan`make dt_binding_check dtbs_check DT_SCHEMA_FILES=Documentation/..../foo.yaml` is what I use#asahi-dev · 2023-02-14 12:05
poviksurprisingly it's not described here: https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#asahi-dev · 2023-02-14 12:04
poviki had a script but i lost it#asahi-dev · 2023-02-14 12:04
povikuh, what's the command for checking a specific binding schema once again?#asahi-dev · 2023-02-14 11:56
marcanif it's too late it's not a big deal anyway#asahi-dev · 2023-02-14 11:55
marcan(cutoff is this weekend right?)#asahi-dev · 2023-02-14 11:55
marcanI do have the M2 DTs pending for the regular process, can you get those in if I send you the pull on Thursday?#asahi-dev · 2023-02-14 11:55
arndI don't have any other fixes queued at the moment though, and it's probably not urgent enough to send it to linus if it's the only other thing#asahi-dev · 2023-02-14 11:54
marcanack. I suspect it might take a bit longer, since we'll be playing games with CI and clang-format and such, but we'll see :)#asahi-dev · 2023-02-14 11:53
arndmarcan: yes, that should be fine. I tend to fast-track MAINTAINERS file updates through the fixes branch, so if you do the move now and I end up sending another fixes PR, it would be reflected in 6.2#asahi-dev · 2023-02-14 11:51
marcanarnd: I'll let you know if we do move and CC you on the MAINTAINERS update & notify linux-next (I think that's about it for things to do?)#asahi-dev · 2023-02-14 11:50
marcanPSA: I'm going to try out $stuff with the DRM folks on the freedesktop.org gitlab. if it goes well we might move asahi-soc there.#asahi-dev · 2023-02-14 11:42
jannau_I wanted to start with the simple case of first-boot as syncing is obviously correct there#asahi-dev · 2023-02-14 11:41
ChaosPrincessjannau_: sure, sounds like a good idea. #asahi-dev · 2023-02-14 11:38
marcanmore than first boot even, should probably sync on every boot + shutdown in the other direction? otherwise if you add a device you end up with split brain again.