ChanServ changed the topic of #armlinux to: ARM kernel talk [Upstream kernel, find your vendor forums for questions about their kernels] | https://libera.irclog.whitequark.org/armlinux
<robmur01>
dhruvag2000: the items within an "operating-points" property are a very different thing from the items within a "compatible" property
<robmur01>
which again are not the same as the items within a "reg" property
iivanov_ has joined #armlinux
<dhruvag2000>
hmm okay got it, so it's more of a case by case thing regarding items, not a universal rule for all properties.
iivanov has quit [Ping timeout: 252 seconds]
<robmur01>
yup, the definitions are hierarchical, just as the structure of the YAML implies - each property defines its own meaning and characteristics
headless has quit [Quit: Konversation terminated!]
fvincenzo has joined #armlinux
lain6141__ has quit [Read error: Connection reset by peer]
fvincenzo has quit [Quit: Lost terminal]
fvincenzo has joined #armlinux
lain6141__ has joined #armlinux
Lucanis has quit [Ping timeout: 252 seconds]
Lucanis has joined #armlinux
heat has joined #armlinux
fvincenzo has quit [Ping timeout: 248 seconds]
dliviu has quit [Ping timeout: 248 seconds]
iivanov_ has quit [Remote host closed the connection]
iivanov has joined #armlinux
iivanov has quit []
iivanov has joined #armlinux
iivanov has quit [Client Quit]
fvincenzo has joined #armlinux
fvincenz1 has joined #armlinux
iivanov has joined #armlinux
fvincenzo has quit [Ping timeout: 265 seconds]
mvaittin has joined #armlinux
iivanov has quit [Remote host closed the connection]
dliviu has joined #armlinux
iivanov has joined #armlinux
spew has joined #armlinux
iivanov has quit []
iivanov has joined #armlinux
mvaittin has quit [Remote host closed the connection]
mvaittin has joined #armlinux
mvaittin has quit [Ping timeout: 252 seconds]
dliviu has quit [Ping timeout: 246 seconds]
dliviu has joined #armlinux
psydroid has joined #armlinux
MWelchUK has joined #armlinux
frieder has quit [Remote host closed the connection]
crummel has quit [Ping timeout: 276 seconds]
crummel has joined #armlinux
lain6141__ has quit [Read error: Connection reset by peer]
geertu has quit [Ping timeout: 252 seconds]
lain6141__ has joined #armlinux
monstr has quit [Remote host closed the connection]
mvaittin has joined #armlinux
spew has quit [Quit: spew]
heat has quit [Read error: Connection reset by peer]
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nsaenz has quit [Ping timeout: 245 seconds]
vingu has joined #armlinux
nsaenz has joined #armlinux
<macromorgan>
is there a way, using the aliases node in device tree, to set a sound card to ID 0, ID1, etc?
<ukleinek>
macromorgan: yes, works for several subsystems in a similar way.
nsaenz has quit [Ping timeout: 260 seconds]
<ukleinek>
macromorgan: see for example drivers/tty/serial/serial_port.c's usage of of_alias_get_id()
<macromorgan>
I don't suppose you could point me to an example
<macromorgan>
okay thanks
<ukleinek>
ha, my crystal ball works really good since I repaired it.
<macromorgan>
that's what I was looking for. Doesn't look like an implementation exists in sound but maybe it should (meaning maybe I should get off my butt and write one)?
<ukleinek>
Expect some resistance by the dt people. Actually nobody should rely on device numbering and udev gives you everything to give semantic names to devices.
<macromorgan>
okay, thanks for the heads up, I'll ask the DT people first if they'd be amenable to such a change
<ukleinek>
krzk, robher, conchuod: ^
<macromorgan>
issue I'm trying to fix is I have both an HDMI device and an analog codec... the HDMI device gets index 0 and the analog codec gets index 1... we can fix that with alsa rules or module parameters or whatnot but would be nice if we could do it in the alias node instead
<robher>
macromorgan: why do you want to ask for index 0? Why not ask for "the HDMI device"?
<macromorgan>
simple commands like aplay if left unspecified use the first device (if I'm not mistaken). Again more of a quality of life issue but something that would still be useful.
<macromorgan>
like when I do a speaker-test from the command line I have to specify my device if I'm not trying to play to the first one, and I'm almost never testing the HDMI device from the command line
<robher>
macromorgan: Does your laptop have indexes for speakers, headphones, hdmi, etc?
<macromorgan>
this is for an embedded device. On boot the ALSA Device list shows "#0: HDMI" and "#1: rk817_ext"
<robher>
macromorgan: Let me put it this way. We have aliases for cases where there's some established numbering. Serial had ttyS<n> for example. If there's not some existing userspace expectation of numbering, then I don't think an alias is needed. If we do add one, solve it for everyone, not just one platform.
<macromorgan>
right, that's what I'm thinking. Basedon my interpretation of the code there is an index numbering system in ALSA... when you init a sound card it requires an index. If one isn't passed, it looks like it uses a special value SNDRV_CARDS - 1 which causes it to use the next available index slot.
<macromorgan>
check snd_card_init() and see if you reach the same conclusion
<macromorgan>
I'm thinking this would be a good place to simply insert some sort of of_alias_get_id() checking for "sound" or "codec" and using that as the slot if it's available.
iivanov has quit [Remote host closed the connection]
<robmur01>
beware this sounds like a case where changing the DT to solve your annoyance just passes that annoyance on to someone else who liked the other interface being the default...
<robmur01>
so it really needs a strong argument that the overwhelming majority of users will share your viewpoint
<robmur01>
(which for something like HDMI vs. headphones on a handheld game system you probably *can* make, just noting it)
headless has joined #armlinux
apritzel has quit [Ping timeout: 246 seconds]
<macromorgan>
well my hope is to "if it's there, use it and if it's not don't" so that way we don't break things for existing users.
<macromorgan>
anyway, I'll put a proof of concept together and post an RFC later, thanks for the guidance.
iivanov has joined #armlinux
iivanov has quit [Remote host closed the connection]
psydroid has quit [Ping timeout: 246 seconds]
psydroid has joined #armlinux
biju has quit [Quit: Konversation terminated!]
headless has quit [Ping timeout: 252 seconds]
headless has joined #armlinux
HerbY_NL has joined #armlinux
rvalue- has joined #armlinux
rvalue has quit [Ping timeout: 264 seconds]
rvalue- is now known as rvalue
mvaittin has joined #armlinux
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iivanov has joined #armlinux
iivanov has quit [Ping timeout: 252 seconds]
System_Error has quit [Ping timeout: 260 seconds]
geertu has joined #armlinux
sudeepholla has joined #armlinux
iivanov has joined #armlinux
iivanov has quit [Ping timeout: 265 seconds]
System_Error has joined #armlinux
Lucanis has quit [Ping timeout: 248 seconds]
iivanov has joined #armlinux
iivanov has quit [Ping timeout: 245 seconds]
prabhakalad has quit [Quit: Konversation terminated!]
prabhakalad has joined #armlinux
apritzel has joined #armlinux
apritzel_ has joined #armlinux
<robher>
macromorgan: Lots of subsystems have numbering by index, but they also have other means to identify multiple instances which is generally used instead now. So just because there is an index, it doesn't mean we should have an alias.
headless has quit [Quit: Konversation terminated!]