opnsense-src/sys/dev/sound
Christos Margiolis 2d1cfa142c snd_dummy: Fix callout(9) races
Use callout_init_mtx(9) to associate the callback with the driver's
lock. Also make sure the callout is stopped properly during detach.

While here, introduce a dummy_active() function to know when it's
appropriate to stop or not reschedule the callout.

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

(cherry picked from commit 5bd08172b4150503c9cf60ffe3c97716c5bf6fa1)
2024-11-29 13:28:06 +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 Revert "sound: Make device registration more intuitive" 2024-11-14 17:25:41 +01:00
pcm Revert "sound: Make device registration more intuitive" 2024-11-14 17:25:41 +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