#asahi · 2022-05-14 11:54
povikmachine driver can differentiate speakers/jack, that's pretty much its job#asahi · 2022-05-14 11:54
povikno, it could be done in the machine driver if kernel accepted it#asahi · 2022-05-14 11:45
povikhappy it works for you already#asahi · 2022-05-14 11:43
povikat least on mac mini all can be simple!#asahi · 2022-05-14 11:42
povikyes#asahi · 2022-05-14 11:41
povikyes.#asahi · 2022-05-14 11:39
povikeven on macbook air with 2 speakers, if we apply filters#asahi · 2022-05-14 11:38
povikwell it still won't do us any good on larger speaker arrays, there the switching needs to happen in userspace because of different filters#asahi · 2022-05-14 11:34
povikmps: ^^#asahi · 2022-05-14 11:34
povikas a sideeffect this will allow us to do the jack/speakers runtime switching at kernel level i said earlier we wont have#asahi · 2022-05-14 11:33
poviki wanted to wrangle it into ASoC, not considering DPCM, but the maintainer pointed me to DPCM as the way to go to model such arrangement in ASoC#asahi · 2022-05-14 11:32
povikthe speakers are split across two I2S ports on some machines, but we want to consider them as being on a single bus#asahi · 2022-05-14 11:32
povikchadmed_: it's because we drive two physical I2S ports on the SoC's periphery as if they were a single port#asahi · 2022-05-14 11:07
povikAdvanced Linux Sound ALSA#asahi · 2022-05-14 11:06
povikall the way down#asahi · 2022-05-14 11:06
povikaudio audio something#asahi · 2022-05-14 11:06
poviki.e. our case#asahi · 2022-05-14 11:06
povikah, ALSA on System on Chips#asahi · 2022-05-14 11:05
povikhttps://www.kernel.org/doc/html/latest/sound/soc/dpcm.html#asahi · 2022-05-14 11:05
povikjust some part of ASoC for all you need to know :D#asahi · 2022-05-14 11:04
povikit involved learning another part of ASoC i have been happily ignorant of (DPCM), so it's been slow at first#asahi · 2022-05-14 11:04
povikre: are speakers in stall now. i have been focusing on redoing some things in a way requested by upstream#asahi · 2022-04-14 13:40
povikerror-py[m]: 'Jack Mixer' control in alsamixer, use F6 to switch card until you find it#asahi · 2022-04-07 15:29
povikwe need to settle some details with the maintainer before v1#asahi · 2022-04-07 15:29
povikdon't know yet#asahi · 2022-04-07 15:20
povikrest won't get merged, waiting for me to post v1#asahi · 2022-04-07 15:20
povikno i got one commit merged even though it was RFC#asahi · 2022-04-07 13:02
povikthis is where i got the impression that sound servers are counted on: https://lore.kernel.org/linux-devicetree/YkWfziQzprEsWL72@sirena.org.uk/#asahi · 2022-04-07 12:52
povikwhich i don't particularly like but i probably won't do anything about#asahi · 2022-04-07 12:51
povikand as i learned recently it's being developed under the assumptions people use it with sound servers#asahi · 2022-04-07 12:51
povikas i said, the respective linux subsystem forces us to do it this way#asahi · 2022-04-07 12:51
povikit's due to software. hardware doesn't know anything about what we decide to call hw:0,0/hw:0,1#asahi · 2022-04-07 12:41
povik(without restarting playback, that is)#asahi · 2022-04-07 12:41
povikthe handover might be beyond the limit of what you can achieve without them#asahi · 2022-04-07 12:41
poviki thought so#asahi · 2022-04-07 12:33
poviki think it's bad but it's not the hill i want to die on :-p#asahi · 2022-04-07 12:32
povikdon't know if the same is achievable with plain alsa, probably not#asahi · 2022-04-07 12:32
povikonce we supply proper profiles to sound servers like pulseaudio, i expect the jack/speakers handover will happen seamlessly#asahi · 2022-04-07 12:31
povikyeah, here we can't merge both jack and speakers under hw:0,0 unless we bypasss ASoC, which forces us to export it this way#asahi · 2022-04-07 12:27
povikthat's a userspace question i don't know the answer to#asahi · 2022-04-07 12:27
povikthat should work for you#asahi · 2022-04-07 12:18
povikj`ey: /insert shrug emoji/#asahi · 2022-04-07 12:18
poviki am curious what the glitch will turn out to be, because these are two independent paths mostly#asahi · 2022-04-07 12:17
povikmps: i assume you mean simultaneous playback -- it can be done but as Dcow[m]1 correctly recalls there's a periodic glitch#asahi · 2022-04-03 12:56
povikyeah, being a timing issue it can be influenced by pretty much anything#asahi · 2022-04-03 12:55
povikif you try the patch, report back either way!#asahi · 2022-04-03 12:22
povikyeah, i rewrote it for the list :-p#asahi · 2022-04-03 12:20
povikif it solves flakiness for you, report back#asahi · 2022-04-03 12:20
povikGuest1043: jack flakiness is most likely solved by this patch to the kernel: https://tpaste.us/Yro4#asahi · 2022-04-03 12:19
povikspeakers are indeed disabled, but that's independent