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/solo.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/solo.c')
-rw-r--r-- | sys/dev/sound/pci/solo.c | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/sys/dev/sound/pci/solo.c b/sys/dev/sound/pci/solo.c index 8c1f7bb..cd69868 100644 --- a/sys/dev/sound/pci/solo.c +++ b/sys/dev/sound/pci/solo.c @@ -52,20 +52,34 @@ static int esschan_trigger(void *data, int go); static int esschan_getptr(void *data); static pcmchan_caps *esschan_getcaps(void *data); -static pcmchan_caps ess_playcaps = { - 5000, 49000, - AFMT_STEREO | AFMT_U8 | AFMT_S8 | AFMT_U16_LE | AFMT_S16_LE, - AFMT_STEREO | AFMT_S16_LE +static u_int32_t ess_playfmt[] = { + AFMT_U8, + AFMT_STEREO | AFMT_U8, + AFMT_S8, + AFMT_STEREO | AFMT_S8, + AFMT_S16_LE, + AFMT_STEREO | AFMT_S16_LE, + AFMT_U16_LE, + AFMT_STEREO | AFMT_U16_LE, + 0 }; +static pcmchan_caps ess_playcaps = {5000, 49000, ess_playfmt, 0}; /* * Recording output is byte-swapped */ -static pcmchan_caps ess_reccaps = { - 5000, 49000, - AFMT_STEREO | AFMT_U8 | AFMT_S8 | AFMT_U16_BE | AFMT_S16_BE, - AFMT_STEREO | AFMT_S16_BE +static u_int32_t ess_recfmt[] = { + AFMT_U8, + AFMT_STEREO | AFMT_U8, + AFMT_S8, + AFMT_STEREO | AFMT_S8, + AFMT_S16_BE, + AFMT_STEREO | AFMT_S16_BE, + AFMT_U16_BE, + AFMT_STEREO | AFMT_U16_BE, + 0 }; +static pcmchan_caps ess_reccaps = {5000, 49000, ess_recfmt, 0}; static pcm_channel ess_chantemplate = { esschan_init, |