Stop binding audio devices exposed by sndiod to physical devices
authorratchov <ratchov@openbsd.org>
Mon, 1 Nov 2021 14:43:24 +0000 (14:43 +0000)
committerratchov <ratchov@openbsd.org>
Mon, 1 Nov 2021 14:43:24 +0000 (14:43 +0000)
commit36355b8814c2d1777fba59123746164a289c5acb
tree56d96ede5c1d9ac558deccd4401a245449d9d559
parent43ed1c1e3a55d535fbf3ed029498f8ee2f6e8acb
Stop binding audio devices exposed by sndiod to physical devices

This a shift towards a new model: clients connect to logical devices
(created with -s option) then the server routes data to/from the
underlying physical device (registered with -f option). The binding
may be changed at run-time with the server.device control exposed by
sndioctl(1).

As audio devices exposed by sndiod(8) are not bound to fixed physical
devices anymore, the physical audio device number component of
sndio(7) descriptors was removed.

fixes, help from and ok denis, edd
21 files changed:
lib/libsndio/amsg.h
lib/libsndio/aucat.c
lib/libsndio/sio.c
lib/libsndio/sioctl.c
lib/libsndio/sndio.7
usr.bin/sndiod/dev.c
usr.bin/sndiod/dev.h
usr.bin/sndiod/fdpass.c
usr.bin/sndiod/fdpass.h
usr.bin/sndiod/midi.c
usr.bin/sndiod/midi.h
usr.bin/sndiod/miofile.c
usr.bin/sndiod/miofile.h
usr.bin/sndiod/opt.c
usr.bin/sndiod/opt.h
usr.bin/sndiod/siofile.c
usr.bin/sndiod/siofile.h
usr.bin/sndiod/sndiod.c
usr.bin/sndiod/sock.c
usr.bin/sndiod/utils.c
usr.bin/sndiod/utils.h