diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2024-05-24 15:10:28 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2024-05-24 15:10:28 +0000 |
commit | 090ac5cda1177ebde05424eafc3ce06a402c81a1 (patch) | |
tree | b5ddcdd5915d983b1b04ada86f155e99de090e0a /lib/libsndio/sioctl_aucat.c | |
parent | 35cee9e31ecaee5334fce0dd4e4bf26f72ee5ebf (diff) |
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.
Diffstat (limited to 'lib/libsndio/sioctl_aucat.c')
-rw-r--r-- | lib/libsndio/sioctl_aucat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libsndio/sioctl_aucat.c b/lib/libsndio/sioctl_aucat.c index b6de2744f96..241dcb70ffc 100644 --- a/lib/libsndio/sioctl_aucat.c +++ b/lib/libsndio/sioctl_aucat.c @@ -87,6 +87,7 @@ sioctl_aucat_rdata(struct sioctl_aucat_hdl *hdl) strlcpy(desc.node1.name, c->node1.name, SIOCTL_NAMEMAX); desc.node1.unit = (int16_t)ntohs(c->node1.unit); strlcpy(desc.func, c->func, SIOCTL_NAMEMAX); + strlcpy(desc.display, "", SIOCTL_DISPLAYMAX); desc.type = c->type; desc.addr = ntohs(c->addr); desc.maxval = ntohs(c->maxval); |