Commit Graph

28 Commits

Author SHA1 Message Date
Alexandre Ratchov c2226012ed Remove SIOCTL_DEVANY 2020-02-22 14:55:40 +01:00
Alexandre Ratchov e55971c61e Add "maxval" attribute to sioctl_desc structure.
As control may have different max values, make sndioctl
expose floats in the [0:1] range.
2020-02-22 14:52:20 +01:00
Alexandre Ratchov 0ac817ab82 Rename node->str to node->name3 2020-01-23 07:38:14 +01:00
Alexandre Ratchov f51534ae26 Rename sioctl_chan to sioctl_node 2020-01-23 07:16:27 +01:00
Alexandre Ratchov d8e69e7e93 Remove SIOCTL_HALF 2020-01-17 06:34:38 +01:00
Alexandre Ratchov 1534d4f816 s/SIOCTL_INTMAX/SIOCTL_VALMAX 2020-01-16 07:47:23 +01:00
Alexandre Ratchov 74ae9cda72 Make the control group a simple string.
To handle nested devices, just prefix the group with the "dev."
prefix. To avoid namespace conflicts, put program controls in a
new "app" group.

The "master.level" control is renamed to "output.level" to match the
hardware name. This way snd/0 and rsnd/0 end-up with the same control
name.
2020-01-13 09:27:06 +01:00
Alexandre Ratchov d2057194b1 Rename _setctl -> _setval and _onctl -> _onval 2020-01-03 15:30:06 +01:00
Alexandre Ratchov 6e83bb6a4f Rename siomix -> sioctl, stop using "mixer" word. 2020-01-03 15:19:25 +01:00
Alexandre Ratchov f92eed1da9 Add SIOMIX_NONE control, to represent deleted controls. 2019-08-30 16:43:35 +02:00
Alexandre Ratchov 3aa86a18e3 expose siomix_sun_{getfd,fdopen} 2017-11-13 07:24:56 +01:00
Alexandre Ratchov 81d171003b Merge branch 'master' into mixer 2017-11-04 10:41:04 +01:00
Alexandre Ratchov 93b9e03596 expose *_getfd() and *_fdopen() prototypes 2017-11-04 09:35:05 +01:00
Alexandre Ratchov 7178903317 mixer: use (name, unit) couple for groups as well 2017-08-03 01:53:40 +02:00
Alexandre Ratchov 50e5b13815 rename namespace -> group (it's c++ keyword) 2016-05-15 14:45:32 +02:00
Alexandre Ratchov 5a63dff869 intruduce namespaces 2016-01-28 19:17:11 +01:00
Alexandre Ratchov 043bb0950a remove labels, use the stream name instead. Disallow digits in
stream names and use the "unit" integer instead.
2015-09-04 17:08:12 +02:00
Alexandre Ratchov e8007feb00 move the mixer api to a dedicated "mixer" branch 2015-08-28 08:57:47 +02:00
Alexandre Ratchov 8468b9f0a0 rename grp->func 2015-06-04 06:12:38 +02:00
Alexandre Ratchov 905c319315 use strings rather than channel numbers 2015-03-05 10:12:34 +01:00
Alexandre Ratchov da8108f09a add initial support for audio mixers, disabled by default
ok armani@
2014-07-16 12:05:01 +02:00
Alexandre Ratchov 759c751cfd include types.h rather that param.h, use unsigned for magic 2012-08-30 10:06:09 +02:00
Alexandre Ratchov 16a36fa53e make "default" a valid device name 2012-05-23 21:26:54 +02:00
Alexandre Ratchov 1247c187a7 s/unsigned/unsigned int/g, requested by deraadt 2012-04-11 09:21:29 +02:00
Alexandre Ratchov ceeca19277 remove unused defs (recommit) 2011-05-01 15:39:29 +02:00
Alexandre Ratchov 286994d187 make sio_onvol() return an integer, 0 if the volume knob not available,
allowing the caller to setup a softvol layer
2010-10-25 09:45:16 +02:00
Alexandre Ratchov 655364c586 remove cvs keyword from sndio.h to avoid conflicts 2010-08-19 23:53:46 +02:00
Alexandre Ratchov f268454989 import from OpenBSD 2010-08-19 22:38:45 +02:00