#
#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:54
jannauthat sounds liek we should try to keep paerser with drm/apple
#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
jannaunaming is a little weird since the mapping between dcp and output port will become deynamic
#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:50
jannaumaybe afk/epic/parser should be moved to drivers/soc/apple if the audio driver depends on parser
#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:42
jannauI guess we need to start thinking about how we model the output ports for the display subsystem in the device tree
#asahi-dev · 2023-02-24 13:40
jannauhow does that work from macaudio PoV. do we a single display audio output device or one for each dcp?
#asahi-dev · 2023-02-24 13:39
jannaupovik: \o/
#asahi-dev · 2023-02-24 13:14
svenjust need to figure out why dcpext doesn't like dp-over-tbt tunnels
#asahi-dev · 2023-02-24 13:13
svenis looking forward to a picture of this old thunderbolt display I have connected to my mac mini :>
#asahi-dev · 2023-02-24 13:13
chadmedpovik: making them work was the tricky part!
#asahi-dev · 2023-02-24 13:13
sven*:D
#asahi-dev · 2023-02-24 13:13
sven:S
#asahi-dev · 2023-02-24 13:13
povikand the options actualy *do* work! :D
#asahi-dev · 2023-02-24 13:12
svenpovik: nice!
#asahi-dev · 2023-02-24 13:12
chadmedand like i said if we "officially" support some sort of psychoacoustic bass thingy in pipewire we can just set the high pass on the woofer amps to 100hz and eliminate most if not all the overexcursion issues
#asahi-dev · 2023-02-24 13:11
chadmedyou have to be _really_ hammering these sorts of speakers for a fair amount of time to cause permanent/audible damage
#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:10
chadmednothing audible anyway
#asahi-dev · 2023-02-24 13:10
chadmedive done some pretty heinous things to this machine and no harm has come of the overexcursion
#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-24 13:02
rowanG337Oke I will do that as well to be sure.
#asahi-dev · 2023-02-24 13:02
svendepends on your log level I think. I have them all patched to dev_err just for good measure *shrug*
#asahi-dev · 2023-02-24 13:02
rowanG337stay as they are
#asahi-dev · 2023-02-24 13:02
rowanG337`tb_info`, `tb_warn` etc
#asahi-dev · 2023-02-24 13:01
rowanG337only `tb_dbg` needs to refer `dev_err`
#asahi-dev · 2023-02-24 13:01
rowanG337Just for the record
#asahi-dev · 2023-02-24 12:58
svennice, thanks!
#asahi-dev · 2023-02-24 12:58
rowanG337I added it
#asahi-dev · 2023-02-24 12:58
rowanG337https://gist.github.com/rowanG077/e90235f45065296ece0ce9c76d9698af
#asahi-dev · 2023-02-24 12:56
svenprobably because it can trigger bugs in broken hardware and maybe require a reboot I guess
#asahi-dev · 2023-02-24 12:56
svenrowanG337: oh, also lspci -xxxx would be useful but note that lspci claims that's "(dangerous; root only)"
#asahi-dev · 2023-02-24 12:47
svenI essentially want to compare the path and tunnel creation on a host that's known to work with what my m1 driver does

plus ›