Support for floating point controls?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux