summaryrefslogtreecommitdiff
path: root/usr.bin/sndiod/dev.c
AgeCommit message (Expand)Author
2022-04-29Wait until the buffer is drained before closing the deviceAlexandre Ratchov
2022-03-15Fix crash caused by confusion between requested device and last used oneAlexandre Ratchov
2021-11-01Stop binding audio devices exposed by sndiod to physical devicesAlexandre Ratchov
2021-05-03If mode is not allowed in struct opt, then just play/record silenceAlexandre Ratchov
2021-04-28sndiod: Attach client at the same position, regardless the device modeAlexandre Ratchov
2021-04-28sndiod: Allocate (free) conversion buffers in slot_attach (slot_detach)Alexandre Ratchov
2021-03-10sndiod: When a slot structure is recycled allocate new controlAlexandre Ratchov
2021-03-10sndiod: Style tweak: swap if/else code blocks in slot_new()Alexandre Ratchov
2021-03-08sndiod: Use chronological order for {dev,port}_listAlexandre Ratchov
2021-03-08sndiod: Initialize dev->master_enabled earlierAlexandre Ratchov
2021-03-08sndiod: Style tweak: uniformize pattern to access ctlslot_arrayAlexandre Ratchov
2021-03-03sndiod: Move MTC/MMC state to its own global structureAlexandre Ratchov
2021-03-03sndiod: Move MIDI control endpoint to opt structureAlexandre Ratchov
2021-03-03sndiod: Move controls out of the device structureAlexandre Ratchov
2021-03-02sndiod: Allow alternative devices to support different modes.Edd Barrett
2021-02-02Fix use-after-free in dev_abort()Alexandre Ratchov
2021-01-29Make audio clients use struct opt to reach the deviceAlexandre Ratchov
2021-01-29Make control clients use struct opt to reach the deviceAlexandre Ratchov
2021-01-29Rename ctlslot->mask to ctlslot->self to match the rest of the codeAlexandre Ratchov
2021-01-29Move the options list out of the device structureAlexandre Ratchov
2021-01-29Move the control client state out of the device structureAlexandre Ratchov
2021-01-29Move the audio clients state out of the device structureAlexandre Ratchov
2021-01-28When an audio device is disconnected, drop MIDI clients controlling itAlexandre Ratchov
2021-01-28Dont attempt to drain disconnected clientsAlexandre Ratchov
2021-01-28In slot_xxx(), store dev pointer in local variableAlexandre Ratchov
2021-01-28Use everywhere the same pattern to handle fractional clock ticksAlexandre Ratchov
2021-01-28Make slot_{attach,detach}() the opposite of each otherAlexandre Ratchov
2021-01-28Drop unused dev_nctl() function and few unused prototypesAlexandre Ratchov
2020-07-19Don't add server.device knob if there's only one audio deviceAlexandre Ratchov
2020-07-19Fix initial alternate device numberAlexandre Ratchov
2020-06-28Allow switching between alternate devices (-F option) with sndioctl(1)Alexandre Ratchov
2020-06-28Add a new SIOCTL_SEL control type to select one of a predefined set ofAlexandre Ratchov
2020-06-18Don't try to open device that's already openAlexandre Ratchov
2020-06-12On error, drop clients and close the device only if it's still openAlexandre Ratchov
2020-04-24Make sure devices are properly closed in case of an error.Alexandre Ratchov
2020-04-16If available, use hardware "output.level" for volume control.Alexandre Ratchov
2020-04-16Hide controls of unused slots from "mixer" clients.Alexandre Ratchov
2020-04-15Don't forget to notify clients when a control is removedAlexandre Ratchov
2020-04-15Properly log CTL_NONE controlsAlexandre Ratchov
2020-03-31Don't send "control changed" messages when hardware controls are set.Alexandre Ratchov
2020-03-08Don't forget to notify clients when controls list is ready.Alexandre Ratchov
2020-02-26Add API to control audio device parameters exposed by sndiod.Alexandre Ratchov
2020-01-10Unbreak channel duplication (aka -j option).Alexandre Ratchov
2019-09-21Allow switching between devices without disconnecting clients.Alexandre Ratchov
2019-09-19Don't attempt to join/expand nonexistent channels.Alexandre Ratchov
2019-09-19Move device slot convertions setup in its own routine.Alexandre Ratchov
2019-09-19Move device buffer allocation to its own routines.Alexandre Ratchov
2019-08-29Split dev_close() routine in two parts.Alexandre Ratchov
2019-08-29Split dev_open() in two parts.Alexandre Ratchov
2019-08-29Move code de disconnect all MIDI clients to its own routine.Alexandre Ratchov