opnsense-src/sys/dev/sound
Christos Margiolis 0aa767021c sound: Fix minchn, maxchn and fmts in sndstat_get_caps()
The current implementation (incorrectly) passes the channel encoding
value to AFMT_CHANNEL(), which will always return 0, since the channel
number bits are masked out by AFMT_ENCODING().

Also add missing fmts initialization and aggregate encoding formats into
it directly.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 day
Reviewed by:	dev_submerge.ch
Differential Revision:	https://reviews.freebsd.org/D45312

(cherry picked from commit 425a7bc465d4a6393c88c2e79c5ad77befda2a97)
2024-05-25 21:31:26 +02:00
..
fdt audio_soc: set "status" as being at simplebus 2024-02-17 16:15:10 +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 sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
pci snd_hda: Add patch for Asus UX331UAL 2024-05-23 02:24:15 +02:00
pcm sound: Fix minchn, maxchn and fmts in sndstat_get_caps() 2024-05-25 21:31:26 +02:00
usb sound: Move chip.h contents to pcm/sound.h 2024-05-17 21:30:35 +02:00
driver.c sound: add missing modules to snd_driver 2024-01-30 13:07:29 +02:00