diff options
author | cg <cg@FreeBSD.org> | 2000-08-20 22:18:56 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 2000-08-20 22:18:56 +0000 |
commit | cc65486f22393469327f3952efc2526af719e4a2 (patch) | |
tree | f4dad15d15847c43242bb2f8e08bd8143dae99e5 /sys/dev/sound/pci/aureal.c | |
parent | b648921accec69a7e5c83e915ded3037cbca7f3d (diff) | |
download | FreeBSD-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/pci/aureal.c')
-rw-r--r-- | sys/dev/sound/pci/aureal.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/sys/dev/sound/pci/aureal.c b/sys/dev/sound/pci/aureal.c index e97b689..5b5e47c 100644 --- a/sys/dev/sound/pci/aureal.c +++ b/sys/dev/sound/pci/aureal.c @@ -46,17 +46,23 @@ static int auchan_trigger(void *data, int go); static int auchan_getptr(void *data); static pcmchan_caps *auchan_getcaps(void *data); -static pcmchan_caps au_playcaps = { - 4000, 48000, - AFMT_STEREO | AFMT_U8 | AFMT_S16_LE, - AFMT_STEREO | AFMT_S16_LE +static u_int32_t au_playfmt[] = { + AFMT_U8, + AFMT_STEREO | AFMT_U8, + AFMT_S16_LE, + AFMT_STEREO | AFMT_S16_LE, + 0 }; - -static pcmchan_caps au_reccaps = { - 4000, 48000, - AFMT_STEREO | AFMT_U8 | AFMT_S16_LE, - AFMT_STEREO | AFMT_S16_LE +static pcmchan_caps au_playcaps = {4000, 48000, au_playfmt, 0}; + +static u_int32_t au_recfmt[] = { + AFMT_U8, + AFMT_STEREO | AFMT_U8, + AFMT_S16_LE, + AFMT_STEREO | AFMT_S16_LE, + 0 }; +static pcmchan_caps au_reccaps = {4000, 48000, au_recfmt, 0}; static pcm_channel au_chantemplate = { auchan_init, |