opnsense-src/sys/dev/sound
Christos Margiolis 134a275eea sound: Do not access cv_waiters
Remove uses of cv_waiters in PCM_RELEASE and CHN_BROADCAST, and also use
a counter around cv_timedwait_sig() in chn_sleep(), which is checked in
pcm_killchans(), as opposed to reading cv_waiters directly, which is a
layering violation.

While here, move CHN_BROADCAST below the channel lock operations.

Reported by:	avg, jhb, markj
Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	dev_submerge.ch, avg
Differential Revision:	https://reviews.freebsd.org/D47780

(cherry picked from commit 46a97b9cd6fd4415270afe4070082ae69ee21035)
2024-12-04 13:03:36 +01:00
..
fdt Revert "sound: Make device registration more intuitive" 2024-11-14 17:25:41 +01:00
isa sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
macio Revert "sound: Make device registration more intuitive" 2024-11-14 17:25:41 +01:00
midi sound: Do not check for NULL if sbuf is allocated with SBUF_AUTOEXTEND 2024-10-20 13:21:06 +02:00
pci csa: Use pci_find_device to simplify clkrun_hack 2024-11-30 21:46:05 -05:00
pcm sound: Do not access cv_waiters 2024-12-04 13:03:36 +01:00
usb Revert "sound: Make device registration more intuitive" 2024-11-14 17:25:41 +01:00
driver.c sound: Include ai2s and davbus for PowerPC 2024-11-19 01:19:20 +00:00
dummy.c snd_dummy: Fix callout(9) races 2024-11-29 13:28:06 +01:00