#asahi-dev · 2023-02-24 14:06
povikand their plug state will reflect to what port the dcp is routed to#asahi-dev · 2023-02-24 14:05
povikwe can have individual jacks corresponding to hdmi, usb-c, thunderbolt on the sound card#asahi-dev · 2023-02-24 14:05
povikthere's one way to do it#asahi-dev · 2023-02-24 14:05
povikah!#asahi-dev · 2023-02-24 14:03
povikbut we can offer further info for sound servers on read-only device controls#asahi-dev · 2023-02-24 14:02
poviktechnically the ALSA sound card has to have a static name depending on the DCP instance only#asahi-dev · 2023-02-24 13:59
poviki found out in what week my display was manufactured :D#asahi-dev · 2023-02-24 13:59
povikit has bunch of info, including the display model#asahi-dev · 2023-02-24 13:58
povikalthough i don't see a way to do dynamic audio device naming in ucm#asahi-dev · 2023-02-24 13:57
povikand it can use the remote device name in naming of the sound card#asahi-dev · 2023-02-24 13:57
povikwe can patch that through to the audio device (it reads the data already, but merely exposes them in debugfs)#asahi-dev · 2023-02-24 13:57
povikjannau: re naming, there's getProductAttributes on the audio epic service#asahi-dev · 2023-02-24 13:56
povikthis is the decoupling i had in mind#asahi-dev · 2023-02-24 13:55
povikto be in line with other drm/audio drivers we should abstract this away to a set of callbacks in the platform data given to the audio device#asahi-dev · 2023-02-24 13:54
povikyeah, i just call the 'parse_*' functions directly from audio.c#asahi-dev · 2023-02-24 13:52
poviklet's see why do i need parser.h#asahi-dev · 2023-02-24 13:52
povikactually it pretty much is already#asahi-dev · 2023-02-24 13:52
poviki was thinking it makes sense keeping the parsing with dcp, just reworking the interface between dcp/dcp_audio so that the parsing is abstracted away from the audio driver#asahi-dev · 2023-02-24 13:51
povikthough that might be moved there too, right#asahi-dev · 2023-02-24 13:51
povikbut it's not the epic bits that the audio driver depends on, just general parsing of the apple structures#asahi-dev · 2023-02-24 13:48
povikin the devicetree all that happens is that the dcp node gets an apple,audio-xmitter prop referencing a dpaudio node#asahi-dev · 2023-02-24 13:46
povik(does #include "parser.h" at the moment)#asahi-dev · 2023-02-24 13:45
povikit just needs to be further decoupled from the rest of dcp#asahi-dev · 2023-02-24 13:45
povikthat driver should move to sound/apple/dcp_audio.c or similar#asahi-dev · 2023-02-24 13:45
poviki spawn a device here, and then the driver in gpu/drm/apple/audio.c binds on it#asahi-dev · 2023-02-24 13:44
povikjannau: https://github.com/povik/linux/blob/dcp-better-timeline/drivers/gpu/drm/apple/av.c#L257#asahi-dev · 2023-02-24 13:43
povikthe driver ended up not involving ASoC even#asahi-dev · 2023-02-24 13:43
povikthere's a separate sound card for each dcp. and it all is independent of macaudio.c#asahi-dev · 2023-02-24 13:13
povikand the options actualy *do* work! :D#asahi-dev · 2023-02-24 13:11
povikso much work to get to this: https://cutebit.org/audio_dropdown.png#asahi-dev · 2023-02-24 13:08
povikmarcan: i get why the headroom is desirable but can we be sure there won't be mechanical damage if we overstep apple's envelope?#asahi-dev · 2023-02-23 21:48
poviki can try that when i get to it tomorrow#asahi-dev · 2023-02-23 21:48
povikaha!#asahi-dev · 2023-02-23 21:42
povikthis was btw with the sio loader code as its sitting in the pr: https://github.com/AsahiLinux/m1n1/pull/286#asahi-dev · 2023-02-23 21:41
povikbut i saw the no-maps there#asahi-dev · 2023-02-23 21:41
poviki am not by the test machine anymore so i can't send a dt snippet#asahi-dev · 2023-02-23 21:16
povikjannau: not sure i understand that#asahi-dev · 2023-02-23 20:16
povikduh https://tpaste.us/ogaL#asahi-dev · 2023-02-23 20:14
povikboot times realy have improved since (mine) early days#asahi-dev · 2023-02-23 20:13
povikalso 3.9 into the boot and pulseaudio is already snooping around pcms#asahi-dev · 2023-02-23 20:13
povikah it tries capture on hdmi#asahi-dev · 2023-02-23 20:13
povik[ 3.918360] snd_pcm_capture_open+0x4c/0x78#asahi-dev · 2023-02-23 19:49
povikwhich i haven't yet replaced on this install with pipewire#asahi-dev · 2023-02-23 19:49
povikthe one upside to the NULL pointer issue is that it takes down pulseaudio on the userspace side#asahi-dev · 2023-02-23 19:38
povikwho would have guessed trying the new drivers with a proper distro install would have opened that many new issues#asahi-dev · 2023-02-23 19:38
poviknow i got to a NULL pointer dereference :D#asahi-dev · 2023-02-23 19:38
povikpd_ignore_unused did the trick and the other issue (SIO randomly dying) disappears#asahi-dev · 2023-02-23 19:37
povikit does, and i inspected the DT and the reservations are there#asahi-dev · 2023-02-23 19:32
povikon an unrelated issue time has come to try pd_ignore_unused#asahi-dev · 2023-02-23 19:30
povikjannau: yup