sndiod: Allocate (free) conversion buffers in slot_attach (slot_detach)
authorratchov <ratchov@openbsd.org>
Wed, 28 Apr 2021 05:05:05 +0000 (05:05 +0000)
committerratchov <ratchov@openbsd.org>
Wed, 28 Apr 2021 05:05:05 +0000 (05:05 +0000)
commitaf42dcefafdb2ab2a800d02d4509ace42fb5a50a
treee4a1c428ac341466ec59bd6fef15ed26b23e081e
parentea37ca6e46d5ed66cbcdf1fab3b1acceb460acc5
sndiod: Allocate (free) conversion buffers in slot_attach (slot_detach)

Besides being better coding style, this allows a client to be detached
and then attached to a device with different parameters.
usr.bin/sndiod/dev.c