Commit Graph

1060 Commits

Author SHA1 Message Date
Alexandre Ratchov 8d24dd3ef8 sioctl_sun.c: If no "xxx.mute" control is found, try "xxx_mute" 2020-04-30 17:25:22 +02:00
Alexandre Ratchov 5750e312db sndiod: Record if a client belongs to a session 2020-04-30 16:33:08 +02:00
Alexandre Ratchov 5736faa146 Get a reference to the device when "snd/N" MIDI ports are opened
As the master output level control is not in software any longer the
device needs to opened for adjustments to work.
2020-04-30 16:27:32 +02:00
Alexandre Ratchov d785baf4f3 sndioctl: Display numbers with 3 decimal places, from schwarze@ 2020-04-30 16:23:02 +02:00
Alexandre Ratchov 5324c19a9c sndioctl.1 fixes, from schwarze@ 2020-04-30 16:22:51 +02:00
Alexandre Ratchov 343f13e33f Make sure devices are properly closed in case of an error
Fixes possible crashes if the contol device fails, while the audio
device continues to work.
2020-04-24 13:35:33 +02:00
Alexandre Ratchov fcb50e68af man pages to cvs 2020-04-24 08:59:57 +02:00
Alexandre Ratchov 0f21b42d41 mixerctl and audioctl moved to section 8 2020-04-24 08:56:27 +02:00
Alexandre Ratchov a04ab3f18c sndioctl: Add -q option to suppress output when setting variables 2020-04-16 14:52:54 +02:00
Alexandre Ratchov 2254b715af sndioctl: Add -n option to suppress variable name in output 2020-04-16 14:51:20 +02:00
Alexandre Ratchov 54839e409a Properly log CTL_NONE controls 2020-04-15 14:41:21 +02:00
Alexandre Ratchov 573c328527 Don't forget to notify clients when a control is removed 2020-04-15 14:24:59 +02:00
Alexandre Ratchov 3b8a8de5f2 sndiod: Hide controls of unused slots 2020-04-14 05:39:31 +02:00
Alexandre Ratchov e5f270a89f If available, use the hardware output.level to control the volume.
With this change, there's a single outputs.level control: either the
hardware one or software one. Consequently, there can't be control
name clashes and there's no need to move hardware's top-level controls
into the "hw/" group.
2020-04-13 07:48:18 +02:00
Alexandre Ratchov fab9b7cb7e Call dev_ctlsync(), even if there's no control device
In the dev_reopen() code-path, the controls of the old device were
removed so all clients must be notified about the controls change.
2020-04-13 07:43:00 +02:00
Alexandre Ratchov ea0520142e If no -q options are used, expose first 8 midi(4) devices to sndiod clients 2020-04-02 09:18:44 +02:00
Alexandre Ratchov 3d5dbc6b9f Don't send "control changed" messages when hardware controls are set. 2020-03-31 09:00:39 +02:00
Alexandre Ratchov 420dd67129 Make parse_unit return signed int 2020-03-13 19:24:21 +01:00
Alexandre Ratchov 7d352f5494 Include bsd/bsd.h necessary if --with-libbsd is used 2020-03-13 19:06:18 +01:00
Alexandre Ratchov 5b1c87e324 Merge branch 'master' of ssh://moule/~alex/git/sndio 2020-03-08 16:51:56 +01:00
Alexandre Ratchov 4f7c000acb Don't forget to notify clients when controls list is ready.
This is needed because when devices are swapped, clients need to know
when to rebuild their user interface.
2020-03-08 16:51:37 +01:00
Alexandre Ratchov 68f57774dc Remove xvolkeys 2020-03-02 06:18:51 +01:00
Alexandre Ratchov 0009401f46 Sync sndioctl to cvs 2020-02-26 18:15:30 +01:00
Alexandre Ratchov c6c63cff50 Fix sndioctl SYNOPSYS and usage string. 2020-02-26 18:14:59 +01:00
Alexandre Ratchov 1d644ba2a8 Fix .Dt and Mdocdate in man pages 2020-02-26 18:13:17 +01:00
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