summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/channel.c
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2001-08-27 01:02:13 +0000
committercg <cg@FreeBSD.org>2001-08-27 01:02:13 +0000
commit748a830ba62a6069418a080174b09156a0df361f (patch)
treee4b0540849a3459200d702a202eb31175ed10c98 /sys/dev/sound/pcm/channel.c
parentb5d9fcd82cbba8da67cba3f7f67fcbacde2a966a (diff)
downloadFreeBSD-src-748a830ba62a6069418a080174b09156a0df361f.zip
FreeBSD-src-748a830ba62a6069418a080174b09156a0df361f.tar.gz
now we have the rate feeder, we don't need to constrain the default channel
speed. however, continue to do so for record channels until the feederchain builder is fixed.
Diffstat (limited to 'sys/dev/sound/pcm/channel.c')
-rw-r--r--sys/dev/sound/pcm/channel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c
index ce9344f..93d4593 100644
--- a/sys/dev/sound/pcm/channel.c
+++ b/sys/dev/sound/pcm/channel.c
@@ -606,7 +606,9 @@ chn_reset(struct pcm_channel *c, u_int32_t fmt)
CHANNEL_RESET(c->methods, c->devinfo);
if (fmt) {
hwspd = DSP_DEFAULT_SPEED;
- RANGE(hwspd, chn_getcaps(c)->minspeed, chn_getcaps(c)->maxspeed);
+ /* only do this on a record channel until feederbuilder works */
+ if (c->direction == PCMDIR_REC)
+ RANGE(hwspd, chn_getcaps(c)->minspeed, chn_getcaps(c)->maxspeed);
c->speed = hwspd;
r = chn_setformat(c, fmt);
OpenPOWER on IntegriCloud