summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorCameron Grant <cg@FreeBSD.org>2001-08-27 01:02:13 +0000
committerCameron Grant <cg@FreeBSD.org>2001-08-27 01:02:13 +0000
commit4f4449e01ce54d9234b16c0c04abef55a77186ab (patch)
treee4b0540849a3459200d702a202eb31175ed10c98 /sys/dev
parentafd9750bfd6977717a909840fa5d9b0e3213170d (diff)
Notes
Diffstat (limited to 'sys/dev')
-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 ce9344f44776..93d4593aa1b8 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);