* Decibel range / value from snd_hctl_elem_t @ 2011-04-28 18:47 Sebastian H. 2011-04-29 6:15 ` Clemens Ladisch 0 siblings, 1 reply; 3+ messages in thread From: Sebastian H. @ 2011-04-28 18:47 UTC (permalink / raw) To: ALSA Development Mailing List Hello list 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 In the "Simple Mixer Interface" there are snd_mixer_selem_get_playback_dB, snd_mixer_selem_get_capture_dB, snd_mixer_selem_get_playback_dB_range and snd_mixer_selem_get_capture_dB_range But I can't find anything like that in the "High level Control Interface". Possibly related: What does TLV stand for? http://de.wikipedia.org/wiki/Type-Length-Value ? Sebastian H. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Decibel range / value from snd_hctl_elem_t 2011-04-28 18:47 Decibel range / value from snd_hctl_elem_t Sebastian H. @ 2011-04-29 6:15 ` Clemens Ladisch 2011-04-29 9:04 ` Sebastian H. 0 siblings, 1 reply; 3+ messages in thread From: Clemens Ladisch @ 2011-04-29 6:15 UTC (permalink / raw) To: Sebastian H.; +Cc: ALSA Development Mailing List 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Decibel range / value from snd_hctl_elem_t 2011-04-29 6:15 ` Clemens Ladisch @ 2011-04-29 9:04 ` Sebastian H. 0 siblings, 0 replies; 3+ messages in thread From: Sebastian H. @ 2011-04-29 9:04 UTC (permalink / raw) To: Clemens Ladisch; +Cc: ALSA Development Mailing List Am 29.04.2011 08:15, schrieb Clemens Ladisch: > 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*. Ok, that works. Thank you Clemens. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-04-29 9:04 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-04-28 18:47 Decibel range / value from snd_hctl_elem_t Sebastian H. 2011-04-29 6:15 ` Clemens Ladisch 2011-04-29 9:04 ` Sebastian H.
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.