opnsense-src/sys/dev/sound
Christos Margiolis 1cbafcd137 sound: Handle multiple primary channel cases in vchan sysctls
vchan_getparentchannel() is used by various vchan sysctl functions to
fetch the first primary channel. However, this assumes that all devices
have only one primary channel per direction. If a device does not meet
this assumption, then the sysctl functions will be applying the
configurations on the first primary channel only.

Since we now have the "primary" channel sublist, we can retire
vchan_getparentchannel() and iterate through the "primary" list in each
sysctl function and apply the settings to all primary channels.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Reviewed by:	dev_submerge.ch
Differential Revision:	https://reviews.freebsd.org/D48336
2025-02-25 13:43:52 +02:00
..
fdt sound: Make device registration more intuitive 2024-11-03 20:02:49 +01:00
isa sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
macio sound: Make device registration more intuitive 2024-11-03 20:02:49 +01:00
midi sound: Do not check for NULL if sbuf is allocated with SBUF_AUTOEXTEND 2024-10-18 10:41:16 +02:00
pci snd_hda: Define ALC898 2025-02-18 21:37:21 +02:00
pcm sound: Handle multiple primary channel cases in vchan sysctls 2025-02-25 13:43:52 +02:00
usb Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
driver.c sound: Include ai2s and davbus for PowerPC 2024-11-10 02:44:14 +00:00
dummy.c snd_dummy: Fix callout(9) races 2024-11-26 15:48:02 +01:00