summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/isa/ad1816.c
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2000-08-20 22:18:56 +0000
committercg <cg@FreeBSD.org>2000-08-20 22:18:56 +0000
commitcc65486f22393469327f3952efc2526af719e4a2 (patch)
treef4dad15d15847c43242bb2f8e08bd8143dae99e5 /sys/dev/sound/isa/ad1816.c
parentb648921accec69a7e5c83e915ded3037cbca7f3d (diff)
downloadFreeBSD-src-cc65486f22393469327f3952efc2526af719e4a2.zip
FreeBSD-src-cc65486f22393469327f3952efc2526af719e4a2.tar.gz
rework feeder sytem to allow feeders in klds
modify driver capability reporting format to list every audio format seperately- required for above and because we could not previously indicate that mono was unsupported. there should be no functional impact.
Diffstat (limited to 'sys/dev/sound/isa/ad1816.c')
-rw-r--r--sys/dev/sound/isa/ad1816.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/sys/dev/sound/isa/ad1816.c b/sys/dev/sound/isa/ad1816.c
index a041ba9..ec7a61e 100644
--- a/sys/dev/sound/isa/ad1816.c
+++ b/sys/dev/sound/isa/ad1816.c
@@ -85,12 +85,20 @@ static int ad1816chan_trigger(void *data, int go);
static int ad1816chan_getptr(void *data);
static pcmchan_caps *ad1816chan_getcaps(void *data);
-static pcmchan_caps ad1816_caps = {
- 4000, 55200,
- AFMT_STEREO | AFMT_U8 | AFMT_S16_LE | AFMT_MU_LAW | AFMT_A_LAW,
- AFMT_STEREO | AFMT_S16_LE
+static u_int32_t ad1816_fmt[] = {
+ AFMT_U8,
+ AFMT_STEREO | AFMT_U8,
+ AFMT_S16_LE,
+ AFMT_STEREO | AFMT_S16_LE,
+ AFMT_MU_LAW,
+ AFMT_STEREO | AFMT_MU_LAW,
+ AFMT_A_LAW,
+ AFMT_STEREO | AFMT_A_LAW,
+ 0
};
+static pcmchan_caps ad1816_caps = {4000, 55200, ad1816_fmt, 0};
+
static pcm_channel ad1816_chantemplate = {
ad1816chan_init,
ad1816chan_setdir,
OpenPOWER on IntegriCloud