All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@nvidia.com>
To: pl bossart <bossart.nospam@gmail.com>, Takashi Iwai <tiwai@suse.de>
Cc: ALSA Development Mailing List <alsa-devel@alsa-project.org>,
	Henningsson <david.henningsson@canonical.com>,
	David@alsa-project.org
Subject: Re: [PATCH] ALSA: HDA: Add jack detection for HDMI
Date: Tue, 17 May 2011 14:42:24 -0700	[thread overview]
Message-ID: <74CDBE0F657A3D45AFBB94109FB122FF04986AAB5B@HQMAIL01.nvidia.com> (raw)
In-Reply-To: <BANLkTinbq_d45aMxk6c_+Akft-LyA4nTAA@mail.gmail.com>

pl bossart wrote at Tuesday, May 17, 2011 2:51 PM:
> >> >> a) Is it possible to report more information alongside the plug events,
> >> >> such as ELD/EDID content? Or, is the idea that the kernel sends a plug
> >> >> event, and then user-space retrieves that information via some other
> >> >> API? I don't think there's an API to retrieve ELD information at present
> >> >> though right? Although certainly it'd make sense for that to be a
> >> >> completely separate patch.
> >> >
> >> > A simple approach would be adding a control element containing
> >> > byte-array of ELD/EDID.
> >>
> >> Are there any examples of such controls? Or are we talking about a new
> >> kind of control?
> >
> > Look for SNDRV_CTL_ELEM_TYPE_BYTES.  Some codecs provide these.
> 
> Thanks for the pointer. looks simple enough to expose the ELD bytes.
> This type of element can store up to 512 bytes, enough to store the
> ELD header+baseline fields (260 bytes tops). I don't think userspace
> would want to muck with vendor-specific information?

Isn't the ELD limited to 256 bytes, since verb F2F has an 8-bit offset
parameter?

I think it'd be a good idea to just dump the entire ELD out to user-space
for future flexibility. It's trivial for user-space to ignore the vendor-
specific data (since it's always after the standardized data).

> we may need an array of ELD controls in case there are several
> monitors. Not sure how to represent which one is actually used. The
> ELD is linked to a specific nid (node id), we'd need to link this to
> the audio device #?

Perhaps the vendor-specific data space could be useful for matching audio
ports to X displays; there is a 64-bit Port_ID in the ELD that might be
used for that, or we could define X/Linux/Unix as the vendor, and specify
the format of the vendor-specific data in a way that defines this mapping.

That said, the internal APIs our graphics driver uses to write the ELD
is currently limited to 96 bytes (the size of the standardized section
of the ELD). I'm not sure yet if that's simply because 96 bytes was all
that was needed, or if that also ended up being encoded as a HW design
limitation.

-- 
nvpublic

  reply	other threads:[~2011-05-17 21:42 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-17 13:46 [PATCH] ALSA: HDA: Add jack detection for HDMI David Henningsson
2011-05-17 15:46 ` Takashi Iwai
2011-05-19  9:55   ` David Henningsson
2011-05-19 10:06     ` Takashi Iwai
2011-05-19 10:24       ` Setting invalid samplerate Torsten Schenk
2011-05-19 10:32         ` Torsten Schenk
2011-05-19 10:55         ` Clemens Ladisch
2011-05-19 11:28           ` Torsten Schenk
2011-05-19 11:36             ` Daniel Mack
2011-05-23 21:49       ` [PATCH] ALSA: HDA: Add jack detection for HDMI Stephen Warren
2011-05-24  5:39         ` Takashi Iwai
2011-05-24 17:27           ` Stephen Warren
2011-05-24 18:09             ` Takashi Iwai
2011-05-24 19:18               ` Stephen Warren
2011-05-24 21:00           ` Stephen Warren
2011-05-19 16:57     ` Stephen Warren
2011-05-19 22:45       ` David Henningsson
2011-05-19 22:51         ` Stephen Warren
2011-06-09 20:59           ` Stephen Warren
2011-05-17 16:00 ` Stephen Warren
2011-05-17 16:08   ` Takashi Iwai
2011-05-17 17:09     ` pl bossart
2011-05-17 17:31       ` Takashi Iwai
2011-05-17 20:51         ` pl bossart
2011-05-17 21:42           ` Stephen Warren [this message]
2011-05-17 22:11             ` pl bossart
2011-05-17 23:14               ` Stephen Warren
2011-05-18 15:43         ` pl bossart
2011-05-18 15:49           ` Takashi Iwai
2011-05-18 10:02 ` Takashi Iwai
2011-05-20 21:59 ` Stephen Warren
2011-05-21  6:25   ` David Henningsson
2011-05-21  7:37     ` Takashi Iwai
2011-05-23 15:29     ` Stephen Warren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=74CDBE0F657A3D45AFBB94109FB122FF04986AAB5B@HQMAIL01.nvidia.com \
    --to=swarren@nvidia.com \
    --cc=David@alsa-project.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=bossart.nospam@gmail.com \
    --cc=david.henningsson@canonical.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.