alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Eliot Blennerhassett <linux@audioscience.com>
To: alsa-devel@alsa-project.org
Subject: Support for floating point controls?
Date: Thu, 28 Jan 2010 12:12:01 +1300	[thread overview]
Message-ID: <4B60C841.9010306@audioscience.com> (raw)

Greetings,

some of our products now have control paramters that are 32 bit floating
point values.

I wonder if a patch implementing float ctl elements would be accepted?
Note that the floats are not manipulated in the kernel at all, the
values are just passed through from the hardware to userspace (?)

Adding something like:

#define	SNDRV_CTL_ELEM_TYPE_FLOAT	((__force snd_ctl_elem_type_t) 7)

struct snd_ctl_elem_info {
...
  union {
	struct {
		float min;		/* R: minimum value */
		float max;		/* R: maximum value */
		float step;		/* R: step (0 variable) */
	} float;
...
}

struct snd_ctl_elem_value {
  union {
	union {
		float value[128];
	} float;


--
Eliot Blennerhassett
AudioScience Inc

             reply	other threads:[~2010-01-27 23:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-27 23:12 Eliot Blennerhassett [this message]
2010-02-01 16:43 ` Support for floating point controls? Jaroslav Kysela
2010-02-01 16:57   ` Takashi Iwai
2010-02-01 18:13 ` James Courtier-Dutton
2010-02-01 19:42   ` Eliot Blennerhassett
2010-02-02 10:08 ` Daniel Glöckner
2010-02-02 10:44   ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2010-02-01 16:13 Tobias Schneider

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=4B60C841.9010306@audioscience.com \
    --to=linux@audioscience.com \
    --cc=alsa-devel@alsa-project.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).