#
#asahi-dev · 2023-02-24 14:29
povikmaybe the sound servers have special-cased support for hdmi
#asahi-dev · 2023-02-24 14:28
jannaumsm, mediatek or rockchip might be better eaxample with displayport/usb-altmode support
#asahi-dev · 2023-02-24 14:28
poviks/can does/can do/
#asahi-dev · 2023-02-24 14:28
dsharshakovwell, nothing related here. but I clearly remember seeing monitor name in say pw-dump's
#asahi-dev · 2023-02-24 14:28
povikanything asoc can does we can do in the alsa driver too
#asahi-dev · 2023-02-24 14:28
jannauvc4 is probably bad example since it's display out is afaik hdmi only and has no dynamic switching
#asahi-dev · 2023-02-24 14:28
povikbut it doesn't matter for this
#asahi-dev · 2023-02-24 14:28
povikyeah, it's not
#asahi-dev · 2023-02-24 14:27
povikis the __number merely a card number?
#asahi-dev · 2023-02-24 14:27
dsharshakovWait, you said your DCP audio driver isn't using ASoC, didn't you?
#asahi-dev · 2023-02-24 14:27
dsharshakovhttps://github.com/alsa-project/alsa-ucm-conf/blob/master/ucm2/codecs/hda/hdmi.conf
#asahi-dev · 2023-02-24 14:27
povikso let's take one hdmi-codec.c based card and read its ucm, yeah
#asahi-dev · 2023-02-24 14:26
povikas probably won't be any ASoC based cards
#asahi-dev · 2023-02-24 14:25
povikcards using that won't be recreated dynamically
#asahi-dev · 2023-02-24 14:25
dsharshakovDo existing UCM configs implement something similar
#asahi-dev · 2023-02-24 14:25
povikah, now i realize i have read sound/soc/codecs/hdmi-codec.c
#asahi-dev · 2023-02-24 14:24
dsharshakovvc4 uses ASoC and viewing through it doesn't seem to show anything related to feeding EDID data to snd_*
#asahi-dev · 2023-02-24 14:21
poviklevels of indirection everywhere...
#asahi-dev · 2023-02-24 14:21
povikdsharshakov: you don't know how annoying it is trying to make sense of the other drivers :D
#asahi-dev · 2023-02-24 14:21
povikmaybe by involving the enable sequences?
#asahi-dev · 2023-02-24 14:20
dsharshakovMaybe see how vc4 or others solve this (not having HDA)
#asahi-dev · 2023-02-24 14:20
poviki am surprised there doesn't seem to be a way to use something read from a device control
#asahi-dev · 2023-02-24 14:20
povik*upstream
#asahi-dev · 2023-02-24 14:20
poviknot sure how well will that sit with upstrem though
#asahi-dev · 2023-02-24 14:20
poviklooking at ^-- once more we can maybe substitute from a sysfs file into the name
#asahi-dev · 2023-02-24 14:19
povikhttps://www.alsa-project.org/alsa-doc/alsa-lib/group__ucm__conf.html
#asahi-dev · 2023-02-24 14:18
dsharshakovAnd Radeon is being an HDA device. Unsure about the exact mechanisms
#asahi-dev · 2023-02-24 14:17
dsharshakovAMDGPU shows monitor name
#asahi-dev · 2023-02-24 14:17
dsharshakovit's more expected to see display name from EDID there, not the port type
#asahi-dev · 2023-02-24 14:17
povikreally? are you sure?
#asahi-dev · 2023-02-24 14:16
dsharshakovMaybe it's better to create it dynamically with the monitor name in place, since desktop HDMI audio does the same (IIRC being snd-hda-intel inside)
#asahi-dev · 2023-02-24 14:13
povikbut the alsa card name need not be the name presented to users, and there might even be some other way to influence the latter than by jack state
#asahi-dev · 2023-02-24 14:13
povikit would be hard to do otherwise, the alsa cards would need to be recreated dynamically probably
#asahi-dev · 2023-02-24 14:07
jannauah, that makes sense. naming the cards after their dcp(ext) would work then
#asahi-dev · 2023-02-24 14:07
povikthis can propagate into picking up the right 'SectionDevice' from ucm, which contains the name to be presented to users
#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
jannaunot even sure if the distinction between usb-c and thunderbolt makes sense
#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:04
jannauso probably only three distinct options: hdmi, usb-c, thunderbolt
#asahi-dev · 2023-02-24 14:03
jannauI think it would make more sense to have dynamic names based on which port dcp is muxed to
#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 14:00
jannauso derived from EDID
#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
jannau?
#asahi-dev · 2023-02-24 13:58
jannauthat's the display's name
#asahi-dev · 2023-02-24 13:58
povikalthough i don't see a way to do dynamic audio device naming in ucm

plus ›