Add SIOMIX_NONE control, to represent deleted controls.

This commit is contained in:
Alexandre Ratchov 2019-08-30 16:43:35 +02:00
parent a4ac7781fd
commit f92eed1da9
2 changed files with 4 additions and 0 deletions

View File

@ -123,6 +123,7 @@ struct siomix_chan {
struct siomix_desc {
unsigned int addr; /* control address */
#define SIOMIX_NONE 0 /* control deleted */
#define SIOMIX_NUM 2 /* integer in the 0..127 range */
#define SIOMIX_SW 3 /* on/off switch (0 or 1) */
#define SIOMIX_VEC 4 /* number, element of vector */
@ -146,6 +147,8 @@ The
attribute indicates what the structure describes.
Possible types are:
.Bl -tag -width "SIOMIX_LIST"
.It SIOMIX_NONE
A previously valid control was deleted.
.It SIOMIX_NUM
A continuous control in the 0..SIOMIX_INTMAX range.
For instance the volume of the speaker.

View File

@ -106,6 +106,7 @@ struct siomix_chan {
*/
struct siomix_desc {
unsigned int addr; /* control address */
#define SIOMIX_NONE 0 /* deleted */
#define SIOMIX_NUM 2 /* integer in the 0..127 range */
#define SIOMIX_SW 3 /* on/off switch (0 or 1) */
#define SIOMIX_VEC 4 /* number, element of vector */