opnsense-src/sys/dev/sound
Christos Margiolis be04a9d938 sound: Improve simplex handling in dsp_open()
If we are in simplex mode, make sure we do not open in both directions
(read/write) and also that we do not open in a direction opposite of
what is already opened. For example, if the device is already doing
playback, we cannot open the device for recording at the same time, and
vice-versa.

While here, remove dsp_cdevpriv->simplex as it's no longer needed.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	dev_submerge.ch
Differential Revision:	https://reviews.freebsd.org/D45835
2024-07-06 20:22:45 +02:00
..
fdt audio_soc: set "status" as being at simplebus 2024-01-28 13:32:38 +02:00
isa sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
macio sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
midi sound: Remove *MINOR from midi/ 2024-07-06 20:22:36 +02:00
pci hda: add support for Tiger Lake-H 2024-06-14 12:24:59 -04:00
pcm sound: Improve simplex handling in dsp_open() 2024-07-06 20:22:45 +02:00
usb snd_uaudio: Remove unused sc_sndstat sbuf 2024-07-06 20:22:26 +02:00
driver.c snd_hdsp(4): RME HDSP 9632 and HDSP 9652 sound card driver. 2024-05-09 19:36:40 +01:00