History log of /openbsd-current/lib/libsndio/sioctl_open.3
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.14 24-May-2024 ratchov

sndio: Add a display string to the sioctl_open API

For hardware devices, add a server.device control
with a single item and the device name as display
string.

Add the necessary sndioctl(1) bits to print it.


Revision tags: OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.13 03-May-2022 ratchov

sioctl_onval(3) returns int not void

Fix from Carlin Bingham <cb at viennan.net>, thanks!


Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.12 28-Jun-2020 ratchov

Use .Dv for SIOCTL_SEL, as we do for all other macros


# 1.11 28-Jun-2020 ratchov

Allow switching between alternate devices (-F option) with sndioctl(1)


# 1.10 28-Jun-2020 ratchov

Add a new SIOCTL_SEL control type to select one of a predefined set of
mutually exclusive values. It's the same as SIOCTL_LIST except that
exactly one list element may be selected.


# 1.9 20-Jun-2020 schwarze

add missing ENVIRONMENT. HISTORY, and AUTHORS sections,
and a few other wording and markup improvements while here;
OK jmc@ ratchov@


# 1.8 18-Jun-2020 schwarze

uint8_t is a discrete, not a continuous type,
and some other wording improvements with respect to types;
OK ratchov@


# 1.7 18-Jun-2020 schwarze

Many of these functions have several arguments, and some arguments
are very long (function pointers), such that a number of input lines
in the SYNOPSIS do not fit into 80 columns. Consequently, consistently
use .Fo/.Fa/.Fc rather than .Fn for better readability of the source
code. Mechanical diff, no output change.


# 1.6 18-Jun-2020 schwarze

basic macro cleanup, and reword two phrases about closed intervals
of integers for clarity and to read better;
one of the issues (abuse of .Sm) was originally reported by jmc@;
ok jmc@ ratchov@


# 1.5 18-Jun-2020 ratchov

Document sioctl_desc structure maxval attribute


Revision tags: OPENBSD_6_7_BASE
# 1.4 19-Apr-2020 jmc

spelling fix;


# 1.3 19-Apr-2020 feinerer

Mention SIO_DEVANY instead of nonexistent SIOCTL_DEVANY constant

OK ratchov@


# 1.2 26-Feb-2020 ratchov

Fix .Dt line and copyright year.

From jmc@, thanks.


# 1.1 26-Feb-2020 ratchov

Add API to control audio device parameters exposed by sndiod.

The API exposes controls of modern audio hardware and sndiod software
volume knobs in a uniform way. Hardware knobs are exposed through
sndiod. Multiple programs may use the controls at the same time
without the need to continuously scan the controls.

For now sndiod exposes only its own controls and the master output and
input volumes of the underlying hardware (if any), i.e. those
typically exposed by acpi volume keys.

ok deraadt


# 1.13 03-May-2022 ratchov

sioctl_onval(3) returns int not void

Fix from Carlin Bingham <cb at viennan.net>, thanks!


Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.12 28-Jun-2020 ratchov

Use .Dv for SIOCTL_SEL, as we do for all other macros


# 1.11 28-Jun-2020 ratchov

Allow switching between alternate devices (-F option) with sndioctl(1)


# 1.10 28-Jun-2020 ratchov

Add a new SIOCTL_SEL control type to select one of a predefined set of
mutually exclusive values. It's the same as SIOCTL_LIST except that
exactly one list element may be selected.


# 1.9 20-Jun-2020 schwarze

add missing ENVIRONMENT. HISTORY, and AUTHORS sections,
and a few other wording and markup improvements while here;
OK jmc@ ratchov@


# 1.8 18-Jun-2020 schwarze

uint8_t is a discrete, not a continuous type,
and some other wording improvements with respect to types;
OK ratchov@


# 1.7 18-Jun-2020 schwarze

Many of these functions have several arguments, and some arguments
are very long (function pointers), such that a number of input lines
in the SYNOPSIS do not fit into 80 columns. Consequently, consistently
use .Fo/.Fa/.Fc rather than .Fn for better readability of the source
code. Mechanical diff, no output change.


# 1.6 18-Jun-2020 schwarze

basic macro cleanup, and reword two phrases about closed intervals
of integers for clarity and to read better;
one of the issues (abuse of .Sm) was originally reported by jmc@;
ok jmc@ ratchov@


# 1.5 18-Jun-2020 ratchov

Document sioctl_desc structure maxval attribute


Revision tags: OPENBSD_6_7_BASE
# 1.4 19-Apr-2020 jmc

spelling fix;


# 1.3 19-Apr-2020 feinerer

Mention SIO_DEVANY instead of nonexistent SIOCTL_DEVANY constant

OK ratchov@


# 1.2 26-Feb-2020 ratchov

Fix .Dt line and copyright year.

From jmc@, thanks.


# 1.1 26-Feb-2020 ratchov

Add API to control audio device parameters exposed by sndiod.

The API exposes controls of modern audio hardware and sndiod software
volume knobs in a uniform way. Hardware knobs are exposed through
sndiod. Multiple programs may use the controls at the same time
without the need to continuously scan the controls.

For now sndiod exposes only its own controls and the master output and
input volumes of the underlying hardware (if any), i.e. those
typically exposed by acpi volume keys.

ok deraadt


# 1.12 28-Jun-2020 ratchov

Use .Dv for SIOCTL_SEL, as we do for all other macros


# 1.11 28-Jun-2020 ratchov

Allow switching between alternate devices (-F option) with sndioctl(1)


# 1.10 28-Jun-2020 ratchov

Add a new SIOCTL_SEL control type to select one of a predefined set of
mutually exclusive values. It's the same as SIOCTL_LIST except that
exactly one list element may be selected.


# 1.9 20-Jun-2020 schwarze

add missing ENVIRONMENT. HISTORY, and AUTHORS sections,
and a few other wording and markup improvements while here;
OK jmc@ ratchov@


# 1.8 18-Jun-2020 schwarze

uint8_t is a discrete, not a continuous type,
and some other wording improvements with respect to types;
OK ratchov@


# 1.7 18-Jun-2020 schwarze

Many of these functions have several arguments, and some arguments
are very long (function pointers), such that a number of input lines
in the SYNOPSIS do not fit into 80 columns. Consequently, consistently
use .Fo/.Fa/.Fc rather than .Fn for better readability of the source
code. Mechanical diff, no output change.


# 1.6 18-Jun-2020 schwarze

basic macro cleanup, and reword two phrases about closed intervals
of integers for clarity and to read better;
one of the issues (abuse of .Sm) was originally reported by jmc@;
ok jmc@ ratchov@


# 1.5 18-Jun-2020 ratchov

Document sioctl_desc structure maxval attribute


Revision tags: OPENBSD_6_7_BASE
# 1.4 19-Apr-2020 jmc

spelling fix;


# 1.3 19-Apr-2020 feinerer

Mention SIO_DEVANY instead of nonexistent SIOCTL_DEVANY constant

OK ratchov@


# 1.2 26-Feb-2020 ratchov

Fix .Dt line and copyright year.

From jmc@, thanks.


# 1.1 26-Feb-2020 ratchov

Add API to control audio device parameters exposed by sndiod.

The API exposes controls of modern audio hardware and sndiod software
volume knobs in a uniform way. Hardware knobs are exposed through
sndiod. Multiple programs may use the controls at the same time
without the need to continuously scan the controls.

For now sndiod exposes only its own controls and the master output and
input volumes of the underlying hardware (if any), i.e. those
typically exposed by acpi volume keys.

ok deraadt


# 1.9 20-Jun-2020 schwarze

add missing ENVIRONMENT. HISTORY, and AUTHORS sections,
and a few other wording and markup improvements while here;
OK jmc@ ratchov@


# 1.8 18-Jun-2020 schwarze

uint8_t is a discrete, not a continuous type,
and some other wording improvements with respect to types;
OK ratchov@


# 1.7 18-Jun-2020 schwarze

Many of these functions have several arguments, and some arguments
are very long (function pointers), such that a number of input lines
in the SYNOPSIS do not fit into 80 columns. Consequently, consistently
use .Fo/.Fa/.Fc rather than .Fn for better readability of the source
code. Mechanical diff, no output change.


# 1.6 18-Jun-2020 schwarze

basic macro cleanup, and reword two phrases about closed intervals
of integers for clarity and to read better;
one of the issues (abuse of .Sm) was originally reported by jmc@;
ok jmc@ ratchov@


# 1.5 18-Jun-2020 ratchov

Document sioctl_desc structure maxval attribute


Revision tags: OPENBSD_6_7_BASE
# 1.4 19-Apr-2020 jmc

spelling fix;


# 1.3 19-Apr-2020 feinerer

Mention SIO_DEVANY instead of nonexistent SIOCTL_DEVANY constant

OK ratchov@


# 1.2 26-Feb-2020 ratchov

Fix .Dt line and copyright year.

From jmc@, thanks.


# 1.1 26-Feb-2020 ratchov

Add API to control audio device parameters exposed by sndiod.

The API exposes controls of modern audio hardware and sndiod software
volume knobs in a uniform way. Hardware knobs are exposed through
sndiod. Multiple programs may use the controls at the same time
without the need to continuously scan the controls.

For now sndiod exposes only its own controls and the master output and
input volumes of the underlying hardware (if any), i.e. those
typically exposed by acpi volume keys.

ok deraadt


# 1.8 18-Jun-2020 schwarze

uint8_t is a discrete, not a continuous type,
and some other wording improvements with respect to types;
OK ratchov@


# 1.7 18-Jun-2020 schwarze

Many of these functions have several arguments, and some arguments
are very long (function pointers), such that a number of input lines
in the SYNOPSIS do not fit into 80 columns. Consequently, consistently
use .Fo/.Fa/.Fc rather than .Fn for better readability of the source
code. Mechanical diff, no output change.


# 1.6 18-Jun-2020 schwarze

basic macro cleanup, and reword two phrases about closed intervals
of integers for clarity and to read better;
one of the issues (abuse of .Sm) was originally reported by jmc@;
ok jmc@ ratchov@


# 1.5 18-Jun-2020 ratchov

Document sioctl_desc structure maxval attribute


Revision tags: OPENBSD_6_7_BASE
# 1.4 19-Apr-2020 jmc

spelling fix;


# 1.3 19-Apr-2020 feinerer

Mention SIO_DEVANY instead of nonexistent SIOCTL_DEVANY constant

OK ratchov@


# 1.2 26-Feb-2020 ratchov

Fix .Dt line and copyright year.

From jmc@, thanks.


# 1.1 26-Feb-2020 ratchov

Add API to control audio device parameters exposed by sndiod.

The API exposes controls of modern audio hardware and sndiod software
volume knobs in a uniform way. Hardware knobs are exposed through
sndiod. Multiple programs may use the controls at the same time
without the need to continuously scan the controls.

For now sndiod exposes only its own controls and the master output and
input volumes of the underlying hardware (if any), i.e. those
typically exposed by acpi volume keys.

ok deraadt


# 1.5 18-Jun-2020 ratchov

Document sioctl_desc structure maxval attribute


Revision tags: OPENBSD_6_7_BASE
# 1.4 19-Apr-2020 jmc

spelling fix;


# 1.3 19-Apr-2020 feinerer

Mention SIO_DEVANY instead of nonexistent SIOCTL_DEVANY constant

OK ratchov@


# 1.2 26-Feb-2020 ratchov

Fix .Dt line and copyright year.

From jmc@, thanks.


# 1.1 26-Feb-2020 ratchov

Add API to control audio device parameters exposed by sndiod.

The API exposes controls of modern audio hardware and sndiod software
volume knobs in a uniform way. Hardware knobs are exposed through
sndiod. Multiple programs may use the controls at the same time
without the need to continuously scan the controls.

For now sndiod exposes only its own controls and the master output and
input volumes of the underlying hardware (if any), i.e. those
typically exposed by acpi volume keys.

ok deraadt


# 1.4 19-Apr-2020 jmc

spelling fix;


# 1.3 19-Apr-2020 feinerer

Mention SIO_DEVANY instead of nonexistent SIOCTL_DEVANY constant

OK ratchov@


# 1.2 26-Feb-2020 ratchov

Fix .Dt line and copyright year.

From jmc@, thanks.


# 1.1 26-Feb-2020 ratchov

Add API to control audio device parameters exposed by sndiod.

The API exposes controls of modern audio hardware and sndiod software
volume knobs in a uniform way. Hardware knobs are exposed through
sndiod. Multiple programs may use the controls at the same time
without the need to continuously scan the controls.

For now sndiod exposes only its own controls and the master output and
input volumes of the underlying hardware (if any), i.e. those
typically exposed by acpi volume keys.

ok deraadt