Module Name: src Committed By: nia Date: Fri May 17 12:20:02 UTC 2024
Modified Files: src/sys/dev/pci: eap.c Log Message: eap(4): Restore the full set of supported hardware encodings from netbsd-7 Tested in QEMU. To generate a diff of this commit: cvs rdiff -u -r1.102 -r1.103 src/sys/dev/pci/eap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/eap.c diff -u src/sys/dev/pci/eap.c:1.102 src/sys/dev/pci/eap.c:1.103 --- src/sys/dev/pci/eap.c:1.102 Thu Jul 25 15:06:07 2019 +++ src/sys/dev/pci/eap.c Fri May 17 12:20:02 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: eap.c,v 1.102 2019/07/25 15:06:07 msaitoh Exp $ */ +/* $NetBSD: eap.c,v 1.103 2024/05/17 12:20:02 nia Exp $ */ /* $OpenBSD: eap.c,v 1.6 1999/10/05 19:24:42 csapuntz Exp $ */ /* @@ -56,7 +56,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: eap.c,v 1.102 2019/07/25 15:06:07 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: eap.c,v 1.103 2024/05/17 12:20:02 nia Exp $"); #include "midi.h" #include "joy_eap.h" @@ -218,9 +218,39 @@ static const struct audio_format eap_for .precision = 16, .channels = 2, .channel_mask = AUFMT_STEREO, - .frequency_type = 2, + .frequency_type = 0, .frequency = { 4000, 48000 }, }, + { + .mode = AUMODE_PLAY | AUMODE_RECORD, + .encoding = AUDIO_ENCODING_SLINEAR_LE, + .validbits = 16, + .precision = 16, + .channels = 1, + .channel_mask = AUFMT_MONAURAL, + .frequency_type = 0, + .frequency = { 4000, 48000 }, + }, + { + .mode = AUMODE_PLAY | AUMODE_RECORD, + .encoding = AUDIO_ENCODING_ULINEAR_LE, + .validbits = 8, + .precision = 8, + .channels = 2, + .channel_mask = AUFMT_STEREO, + .frequency_type = 0, + .frequency = { 4000, 48000 }, + }, + { + .mode = AUMODE_PLAY | AUMODE_RECORD, + .encoding = AUDIO_ENCODING_ULINEAR_LE, + .validbits = 8, + .precision = 8, + .channels = 1, + .channel_mask = AUFMT_MONAURAL, + .frequency_type = 0, + .frequency = { 4000, 48000 }, + } }; #define EAP_NFORMATS __arraycount(eap_formats)