All of lore.kernel.org
 help / color / mirror / Atom feed
* Passing audio info from HDMI EDID beside speaker allocation
@ 2012-10-05  6:50 Patrick Lai
  2012-10-08  6:18 ` Patrick Lai
  2012-10-08  8:20 ` Takashi Iwai
  0 siblings, 2 replies; 6+ messages in thread
From: Patrick Lai @ 2012-10-05  6:50 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

Hi Takashi,

You proposed snd_pcm_query_chmaps() to query underlying hardware
speaker allocation. Please correct me if I have wrong understanding of
this API. On the other hand, HDMI EDID contains audio data other than
speaker allocation such as audio formats(LPCM, AC3, and etc). How are
these information other than speaker allocation passed back to the
user-space? Are there a standard kernel and alsa query interfaces now?

Thanks
Patrick

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Passing audio info from HDMI EDID beside speaker allocation
  2012-10-05  6:50 Passing audio info from HDMI EDID beside speaker allocation Patrick Lai
@ 2012-10-08  6:18 ` Patrick Lai
  2012-10-08  8:20 ` Takashi Iwai
  1 sibling, 0 replies; 6+ messages in thread
From: Patrick Lai @ 2012-10-08  6:18 UTC (permalink / raw)
  To: Takashi Iwai, alsa-devel

On 10/4/2012 11:50 PM, Patrick Lai wrote:
> Hi Takashi,
>
> You proposed snd_pcm_query_chmaps() to query underlying hardware
> speaker allocation. Please correct me if I have wrong understanding of
> this API. On the other hand, HDMI EDID contains audio data other than
> speaker allocation such as audio formats(LPCM, AC3, and etc). How are
> these information other than speaker allocation passed back to the
> user-space? Are there a standard kernel and alsa query interfaces now?
>
> Thanks
> Patrick
>

Does anyone else have feedback for my query to Takashi?

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Passing audio info from HDMI EDID beside speaker allocation
  2012-10-05  6:50 Passing audio info from HDMI EDID beside speaker allocation Patrick Lai
  2012-10-08  6:18 ` Patrick Lai
@ 2012-10-08  8:20 ` Takashi Iwai
  2012-10-22 18:00   ` Patrick Lai
  1 sibling, 1 reply; 6+ messages in thread
From: Takashi Iwai @ 2012-10-08  8:20 UTC (permalink / raw)
  To: Patrick Lai; +Cc: alsa-devel

At Thu, 04 Oct 2012 23:50:20 -0700,
Patrick Lai wrote:
> 
> Hi Takashi,
> 
> You proposed snd_pcm_query_chmaps() to query underlying hardware
> speaker allocation. Please correct me if I have wrong understanding of
> this API. On the other hand, HDMI EDID contains audio data other than
> speaker allocation such as audio formats(LPCM, AC3, and etc). How are
> these information other than speaker allocation passed back to the
> user-space? Are there a standard kernel and alsa query interfaces now?

In the case of HD-audio, it's passed via the normal IEC958 status bits
controls separately.  ELD itself is exposed as a byte array in a
control element, but it's read-only.


Takashi

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Passing audio info from HDMI EDID beside speaker allocation
  2012-10-08  8:20 ` Takashi Iwai
@ 2012-10-22 18:00   ` Patrick Lai
  2012-10-23 12:16     ` Takashi Iwai
  0 siblings, 1 reply; 6+ messages in thread
From: Patrick Lai @ 2012-10-22 18:00 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

On 10/8/2012 1:20 AM, Takashi Iwai wrote:

> In the case of HD-audio, it's passed via the normal IEC958 status bits
> controls separately.  ELD itself is exposed as a byte array in a
> control element, but it's read-only.

Thanks for the reply. Couple more questions

1. Is kcontrol "ELD" being read directly by application or there is
ALSA library API to parse the information.

2. Also, I see you submit this patch [PATCH 3/3] ELD proc interface for
HDMI sinks in 2008. I presume it's just for information purpose. You
still expect application to query for HDMI sink capability through
"ELD" kcontrol. Am I correct?

>
>
> Takashi
>


-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Passing audio info from HDMI EDID beside speaker allocation
  2012-10-22 18:00   ` Patrick Lai
@ 2012-10-23 12:16     ` Takashi Iwai
  2012-10-23 22:56       ` Pierre-Louis Bossart
  0 siblings, 1 reply; 6+ messages in thread
From: Takashi Iwai @ 2012-10-23 12:16 UTC (permalink / raw)
  To: Patrick Lai; +Cc: alsa-devel

At Mon, 22 Oct 2012 11:00:02 -0700,
Patrick Lai wrote:
> 
> On 10/8/2012 1:20 AM, Takashi Iwai wrote:
> 
> > In the case of HD-audio, it's passed via the normal IEC958 status bits
> > controls separately.  ELD itself is exposed as a byte array in a
> > control element, but it's read-only.
> 
> Thanks for the reply. Couple more questions
> 
> 1. Is kcontrol "ELD" being read directly by application or there is
> ALSA library API to parse the information.

Nothing so far.  It's just a raw data.

> 2. Also, I see you submit this patch [PATCH 3/3] ELD proc interface for
> HDMI sinks in 2008. I presume it's just for information purpose. You
> still expect application to query for HDMI sink capability through
> "ELD" kcontrol. Am I correct?

It's not prohibited for apps to parse the proc interface but it's not
guaranteed to be stable :)  So yes, parsing ELD manually would be a
safer way.


Takashi

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Passing audio info from HDMI EDID beside speaker allocation
  2012-10-23 12:16     ` Takashi Iwai
@ 2012-10-23 22:56       ` Pierre-Louis Bossart
  0 siblings, 0 replies; 6+ messages in thread
From: Pierre-Louis Bossart @ 2012-10-23 22:56 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: arun.raghavan, Patrick Lai, alsa-devel


>>> In the case of HD-audio, it's passed via the normal IEC958 status bits
>>> controls separately.  ELD itself is exposed as a byte array in a
>>> control element, but it's read-only.
>>
>> Thanks for the reply. Couple more questions
>>
>> 1. Is kcontrol "ELD" being read directly by application or there is
>> ALSA library API to parse the information.
>
> Nothing so far.  It's just a raw data.
>
>> 2. Also, I see you submit this patch [PATCH 3/3] ELD proc interface for
>> HDMI sinks in 2008. I presume it's just for information purpose. You
>> still expect application to query for HDMI sink capability through
>> "ELD" kcontrol. Am I correct?
>
> It's not prohibited for apps to parse the proc interface but it's not
> guaranteed to be stable :)  So yes, parsing ELD manually would be a
> safer way.

I wrote some code to parse the ELD kcontrol to enable passthrough if AC3 
is supported by the receiver, I believe it's been integrated by Arun in 
a branch of PulseAudio. It's probably 1 year old now..

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-10-23 22:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-05  6:50 Passing audio info from HDMI EDID beside speaker allocation Patrick Lai
2012-10-08  6:18 ` Patrick Lai
2012-10-08  8:20 ` Takashi Iwai
2012-10-22 18:00   ` Patrick Lai
2012-10-23 12:16     ` Takashi Iwai
2012-10-23 22:56       ` Pierre-Louis Bossart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.