alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* Support for floating point controls?
@ 2010-01-27 23:12 Eliot Blennerhassett
  2010-02-01 16:43 ` Jaroslav Kysela
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Eliot Blennerhassett @ 2010-01-27 23:12 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Support for floating point controls?
@ 2010-02-01 16:13 Tobias Schneider
  0 siblings, 0 replies; 8+ messages in thread
From: Tobias Schneider @ 2010-02-01 16:13 UTC (permalink / raw)
  To: alsa-devel, Eliot Blennerhassett

I was searching for floating point controls and found your post. I would 
also appreciate such a define, but I also found an answer that might 
still be "up to date" 
http://thread.gmane.org/gmane.linux.alsa.devel/1498/focus=1507

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-02-02 10:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-27 23:12 Support for floating point controls? Eliot Blennerhassett
2010-02-01 16:43 ` 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

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).