1
0
mirror of https://github.com/ericonr/sndio.git synced 2024-02-18 04:45:21 -06:00
Commit Graph

1085 Commits

Author SHA1 Message Date
Alexandre Ratchov
2c894cc701 Bump sioctl_open.3 copyright year. 2020-02-26 18:12:02 +01:00
Alexandre Ratchov
cc30ccae23 bump copyright year 2020-02-24 07:00:49 +01:00
Alexandre Ratchov
1bbb66b0c0 Limit max ctl value to c->maxval, not 127. 2020-02-22 16:32:22 +01:00
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
2207b5e6db Represent sndioctl controls as floats in the [0:1] interval 2020-02-22 10:34:40 +01:00
Alexandre Ratchov
503acf3845 Clarify in parse_dec() comment that it for integers. 2020-02-21 12:17:15 +01:00
Alexandre Ratchov
dace20874d Add max value to parse_dec() 2020-02-16 17:37:12 +01:00
Alexandre Ratchov
5c0d9010fb Better error message about out-of-range integer 2020-02-12 09:35:05 +01:00
Alexandre Ratchov
012a6cf6db Remove unused variable 2020-02-10 15:38:47 +01:00
Alexandre Ratchov
7189fcf749 Use '/' as separator in group components. 2020-02-10 15:07:22 +01:00
Alexandre Ratchov
cb1c15989c Properly handle '/' separator in sndioctl. 2020-02-10 15:04:43 +01:00
Alexandre Ratchov
97442bf983 Use "control" instead of "group" in error message. 2020-02-10 15:02:36 +01:00
Alexandre Ratchov
1bb8109192 Merge branch 'master' into mixer 2020-02-09 23:48:14 +01:00
Alexandre Ratchov
3be156f2f0 Rename WAV_H "include guard" macro of afile.h to AFILE_H
Fix from Jan Stary <hans at stare.cz>, thanks.
2020-02-09 23:47:30 +01:00
Alexandre Ratchov
ad896452d6 sndioctl(1) manual fixes from jmc@ 2020-02-09 15:15:11 +01:00
Alexandre Ratchov
b431cc5fd0 Sync sndioctl.1 to reality.
We use channel numbers and not ranges, channels are between
square brakets. Controls have group names.
2020-02-09 12:03:03 +01:00
Alexandre Ratchov
b62a7eef6f Expose sun mixer master knobs in the top-level group.
This allows the same master knobs to be available no matter
if sndiod is running or net.
2020-02-08 15:50:56 +01:00
Alexandre Ratchov
9bec976a73 Crank library minor as this sioctl_xxx are new interfaces 2020-02-06 22:21:48 +01:00
Alexandre Ratchov
94515589f5 Rename wskbd_vol to volume 2020-02-05 17:32:23 +01:00
Alexandre Ratchov
92cc5b7bba Allow digits in control names 2020-02-05 17:28:15 +01:00
Alexandre Ratchov
1bfe9a4f39 Filter redundant control settings 2020-02-04 15:49:34 +01:00
Alexandre Ratchov
7f7fce942f Use non-blocking mode for all sioctl_aucat_xxx bits. 2020-02-04 15:48:15 +01:00
Alexandre Ratchov
21e52f9c4c Remove more unused USE_ALSA_MIXER tests. 2020-01-29 07:15:07 +01:00
Alexandre Ratchov
0575c9f2e1 Use new /dev/audioctlN read(2) interface 2020-01-29 07:04:30 +01:00
Alexandre Ratchov
3030ab2c66 Remove unused USE_ALSA_MIXER tests. 2020-01-29 06:16:19 +01:00
Alexandre Ratchov
8ca224184c Merge branch 'master' into mixer 2020-01-28 06:48:49 +01:00
Alexandre Ratchov
cf2e5f1727 Merge xxx_openlist() changes from cvs. 2020-01-23 12:50:20 +01:00
Alexandre Ratchov
a077f6a7f3 Fix forgotten node->str to node->name changes 2020-01-23 12:20:13 +01:00
Alexandre Ratchov
ae714a51c4 Merge branch 'master' into mixer 2020-01-23 12:15:06 +01:00
Alexandre Ratchov
f29da850c6 Factor slot->pstate change in slot_attach() 2020-01-23 12:14:46 +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
0031ec4a72 Use "hw" group for hw controls to get stable control names.
To ensure chained sndiod controls get unique names, we prefix
groups sndiod creates with "dev".
2020-01-21 06:39:00 +01:00
Alexandre Ratchov
5f82859275 Put slot unit in its control name rather as control channel number 2020-01-18 12:24:56 +01:00
Alexandre Ratchov
95cf650953 Rename nextgrp -> nextfunc, tweak comments. 2020-01-17 07:12:52 +01:00
Alexandre Ratchov
36616e67a6 Remove unused selpos routine. 2020-01-17 07:02:45 +01:00
Alexandre Ratchov
9bf7d85e7f sndioctl: Use (mandatory) group prefix. 2020-01-17 06:57:37 +01:00
Alexandre Ratchov
d8e69e7e93 Remove SIOCTL_HALF 2020-01-17 06:34:38 +01:00
Alexandre Ratchov
5d2a6ce214 Merge branch 'mixer' of ssh://caoua.org/~alex/git/sndio into mixer 2020-01-16 07:51:06 +01:00
Alexandre Ratchov
1534d4f816 s/SIOCTL_INTMAX/SIOCTL_VALMAX 2020-01-16 07:47:23 +01:00
Alexandre Ratchov
9b20997f58 Make the device hold a reference to its controls.
Without this, if "-a on" is used, when the last control client
disconnects, references reach zero and controls are freed.
2020-01-14 18:04:16 +01:00
Alexandre Ratchov
8ecb6c1721 Remove unused variable 2020-01-13 18:36:39 +01:00
Alexandre Ratchov
88eee3e423 Update xvolkeys to use output.level. 2020-01-13 14:53:34 +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
9edbee2bc1 sioctl_sun: Rename spkr->output, mic->input. 2020-01-13 07:19:55 +01:00
Alexandre Ratchov
c64f25a5f8 Remove group for hardware controls. 2020-01-13 07:15:36 +01:00
Alexandre Ratchov
166293b14a Require channel to be between square brackets. 2020-01-11 16:07:16 +01:00
Alexandre Ratchov
db6ff820c6 Merge branch 'mixer' of ssh://moule/~alex/git/sndio into mixer 2020-01-11 13:00:18 +01:00
Alexandre Ratchov
5a0fc8feb7 Move hw control in "inputs" and "outputs" groups 2020-01-11 11:01:56 +01:00