All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: "Sebastian H." <vand2@gmx.de>
Cc: ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Re: Decibel range / value from  snd_hctl_elem_t
Date: Fri, 29 Apr 2011 08:15:49 +0200	[thread overview]
Message-ID: <4DBA5795.10902@ladisch.de> (raw)
In-Reply-To: <4DB9B629.8090700@gmx.de>

Sebastian H. wrote:
> I'm stuck with the hctl interface.
> What is the best way to get
> 1. the decibel range from a snd_hctl_elem_t
> 2. the decibel value from a snd_hctl_elem_t

The hctl stuff is just a thin wrapper over the ctl stuff, so call
snd_hctl_ctl and snd_hctl_elem_get_id, then snd_ctl_*dB*.

> Possibly related: What does TLV stand for?
> http://de.wikipedia.org/wiki/Type-Length-Value ?

Yes; but you should let alsa-lib parse it.


Regards,
Clemens

  reply	other threads:[~2011-04-29  6:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-28 18:47 Decibel range / value from snd_hctl_elem_t Sebastian H.
2011-04-29  6:15 ` Clemens Ladisch [this message]
2011-04-29  9:04   ` Sebastian H.

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=4DBA5795.10902@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=vand2@gmx.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.