All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Henningsson <david.henningsson@canonical.com>
To: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: Adding ELD control to alsa-lib hdmi device
Date: Sun, 25 Sep 2011 11:44:23 +0200	[thread overview]
Message-ID: <4E7EF7F7.1090100@canonical.com> (raw)
In-Reply-To: <000901cc7a21$0a3bea70$1eb3bf50$@bossart@linux.intel.com>

On 09/23/2011 08:46 PM, Pierre-Louis Bossart wrote:
> Hi,
> Now that I almost done with exposing a read-only ELD control for HDA/HDMI
> outputs, I was wondering how to read it from user-land. PulseAudio and
> others rely on the 'hdmi' device, and apparently I can't access this new ELD
> control, I have to use the 'hw:x,y' details.

The hdmi:x(,y) device is only used for pcm. For opening the mixer, hw:x 
(never hw:x,y - that's pcm only as well) is used as the device string.

> I really don't understand much to alsa-lib... Can I expose this new control
> through the ALSA configuration files where the hdmi device is defined? Or is
> there a way to infer the card and device number actually used by an alsa-lib
> plugin? Or do I have to add code to propagate the information from
> hardware-level to higher-level plugins?
> Thanks for your feedback!

I'm not the expert here, but if I were you, I would run

amixer -D hw:x contents
amixer -D hw:x scontents

To see if your controls show up there. If it shows up in scontents, that 
would be the "simple" mixer interface that PulseAudio uses. If not, 
using the control api (as being done by "contents") should work.

Anyway, reading the source code to amixer would then be the first step 
towards understanding how to enumerate and read mixer controls.

-- 
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic

  parent reply	other threads:[~2011-09-25  9:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-23 15:54 [PATCH 1/3] ASoC: Convert WM8962 MICBIAS to a supply widget Mark Brown
2011-09-23 15:54 ` [PATCH 2/3] ASoC: Add support for on-board analogue microphones on Speyside WM8962 Mark Brown
2011-09-23 15:54 ` [PATCH 3/3] ASoC: Add DMIC control to Speyside WM8962 board Mark Brown
2011-09-23 18:46 ` Adding ELD control to alsa-lib hdmi device Pierre-Louis Bossart
     [not found] ` <000901cc7a21$0a3bea70$1eb3bf50$@bossart@linux.intel.com>
2011-09-25  9:44   ` David Henningsson [this message]
2011-09-26 17:59     ` Pierre-Louis Bossart
     [not found] ` <4e7cd40f.5558df0a.269f.ffffef98SMTPIN_ADDED@mx.google.com>
2011-09-25 13:15   ` Raymond Yau

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=4E7EF7F7.1090100@canonical.com \
    --to=david.henningsson@canonical.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=pierre-louis.bossart@linux.intel.com \
    /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.