Skip to contentSkip to conversation

Declaring HDMI channel allocation to kernel

DISCUSSION Gabriel M. Beddingfield 5 participants 8 messages Jul 23, 2012 – Jul 25, 2012

lore
Share & tools
lore
#0 lore raw

Is there an established way for me (from userspace) to pass the HDMI Channel Allocation (1 byte) to the driver? If not, can you recommend an approach?

In most of the drivers that I've inspected, the drivers seem to assume that there's a 1:1 mapping of Number-of-Channels to Channel-Allocation.
However, the HDMI sink declares which speakers it has attached in the
EDID. If I can match this in userspace... I need a way to communicate it to the driver.

-gabriel

#1 lore raw
Quoted 4 lines · Gabriel M. Beddingfield

Is there an established way for me (from userspace) to pass the HDMI Channel Allocation (1 byte) to the driver? If not, can you recommend an approach?

In most of the drivers that I've inspected, the drivers seem to assume that there's a 1:1 mapping of Number-of-Channels to Channel-Allocation. However, the HDMI sink declares which speakers it has attached in the EDID. If I can match this in userspace... I need a way to communicate it to the driver.

I believe this is one of the topics that will be presented by Takashi at LPC, we need the ability to specify a arbitrary sink-specific channel mapping.

#2 lore raw
Quoted 5 lines · Pierre-Louis Bossart
Quoted 4 lines · Gabriel M. Beddingfield

Is there an established way for me (from userspace) to pass the HDMI Channel Allocation (1 byte) to the driver? If not, can you recommend an approach?

[snip[

Quoted 3 lines

I believe this is one of the topics that will be presented by Takashi at LPC, we need the ability to specify a arbitrary sink-specific channel mapping.

OK, thanks! So then, to do this today I need to add my own special sauce.

-gabriel

#3 lore raw

Hi Gabriel,

Quoted 6 lines · Gabriel M. Beddingfield
Quoted 5 lines · Pierre-Louis Bossart
Quoted 4 lines · Gabriel M. Beddingfield

Is there an established way for me (from userspace) to pass the HDMI Channel Allocation (1 byte) to the driver? If not, can you recommend an approach?

Quoted 6 lines

[snip[

Quoted 3 lines

I believe this is one of the topics that will be presented by Takashi at LPC, we need the ability to specify a arbitrary sink-specific channel mapping.

OK, thanks! So then, to do this today I need to add my own special sauce.

FWIW, in the past I could use the route plugin to achieve arbitrary channel mapping. This was done by SW, though. The details are here:

http://mailman.alsa-project.org/pipermail/alsa-devel/2012-April/051573.html

Ricardo

Quoted 7 lines

-gabriel

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#4 lore raw

Thanks, Ricardo.

Is this just re-arranging the chanels in-place? I'm not sure that's what I need. In this case, I'm needing to be able to differentiate between "quad" (FL, FR, RL, RR) and "surround" (FL, FR, FC, RC) in order to support both.

-gabriel

Quoted 41 lines · Ricardo Neri

Hi Gabriel,

Quoted 10 lines · Gabriel M. Beddingfield
Quoted 7 lines · Pierre-Louis Bossart
Quoted 5 lines · Gabriel M. Beddingfield

Is there an established way for me (from userspace) to pass the HDMI Channel Allocation (1 byte) to the driver? If not, can you recommend an approach?

Quoted 8 lines

[snip[

Quoted 4 lines

I believe this is one of the topics that will be presented by Takashi at LPC, we need the ability to specify a arbitrary sink-specific channel mapping.

OK, thanks! So then, to do this today I need to add my own special sauce.

FWIW, in the past I could use the route plugin to achieve arbitrary channel mapping. This was done by SW, though. The details are here:

http://mailman.alsa-project.org/pipermail/alsa-devel/2012-April/051573.html

Ricardo

Quoted 9 lines

-gabriel

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#5 lore raw

Hi Gabriel,

Quoted 6 lines · Gabriel Beddingfield

Thanks, Ricardo.

Is this just re-arranging the chanels in-place? I'm not sure that's what I need. In this case, I'm needing to be able to differentiate between "quad" (FL, FR, RL, RR) and "surround" (FL, FR, FC, RC) in order to support both.

Perhaps you could create two different devices, one for surround and another for quad, each having its own static reroute table. You would use the appropriate device for each specific use case.

Ricardo

Quoted 45 lines

-gabriel

Quoted 41 lines · Ricardo Neri

Hi Gabriel,

Quoted 10 lines · Gabriel M. Beddingfield
Quoted 7 lines · Pierre-Louis Bossart
Quoted 5 lines · Gabriel M. Beddingfield

Is there an established way for me (from userspace) to pass the HDMI Channel Allocation (1 byte) to the driver? If not, can you recommend an approach?

Quoted 8 lines

[snip[

Quoted 4 lines

I believe this is one of the topics that will be presented by Takashi at LPC, we need the ability to specify a arbitrary sink-specific channel mapping.

OK, thanks! So then, to do this today I need to add my own special sauce.

FWIW, in the past I could use the route plugin to achieve arbitrary channel mapping. This was done by SW, though. The details are here:

http://mailman.alsa-project.org/pipermail/alsa-devel/2012-April/051573.html

Ricardo

Quoted 9 lines

-gabriel

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#6 lore raw
In reply to Pierre-Louis Bossart

At Mon, 23 Jul 2012 14:39:38 -0500,

Quoted 7 lines · Pierre-Louis Bossart
Quoted 5 lines · Gabriel M. Beddingfield

Is there an established way for me (from userspace) to pass the HDMI Channel Allocation (1 byte) to the driver? If not, can you recommend an approach?

Quoted 8 lines
Quoted 5 lines

In most of the drivers that I've inspected, the drivers seem to assume that there's a 1:1 mapping of Number-of-Channels to Channel-Allocation. However, the HDMI sink declares which speakers it has attached in the EDID. If I can match this in userspace... I need a way to communicate it to the driver.

I believe this is one of the topics that will be presented by Takashi at LPC, we need the ability to specify a arbitrary sink-specific channel mapping.

Ah, sorry, this topic was canceled due to the time slot limitation. But I can bring up the topic if we get another time slot, at BoF or whatever.

Takashi

#7 lore raw
Quoted 7 lines · Takashi Iwai
Quoted 3 lines

I believe this is one of the topics that will be presented by Takashi at LPC, we need the ability to specify a arbitrary sink-specific channel mapping.

Ah, sorry, this topic was canceled due to the time slot limitation. But I can bring up the topic if we get another time slot, at BoF or whatever.

I'd not expect it to take *too* long so we should be able to fit it in I think. I've not yet had time to work out all this new scheduling stuff though.