diff options
author | cg <cg@FreeBSD.org> | 2001-08-27 01:02:13 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 2001-08-27 01:02:13 +0000 |
commit | 748a830ba62a6069418a080174b09156a0df361f (patch) | |
tree | e4b0540849a3459200d702a202eb31175ed10c98 /sys/dev/sound/pcm/channel.c | |
parent | b5d9fcd82cbba8da67cba3f7f67fcbacde2a966a (diff) | |
download | FreeBSD-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.c | 4 |
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); |