summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2001-08-23 12:27:27 +0000
committercg <cg@FreeBSD.org>2001-08-23 12:27:27 +0000
commitf53d43761e663beb3f653487123cf4a929573e3f (patch)
tree6bd18f8d6b67544d8ec5bfc36c7fa78835de2486 /sys/dev/sound/pcm
parenta77fa3901d6cd2d19c4e01130aebda9cd584caac (diff)
downloadFreeBSD-src-f53d43761e663beb3f653487123cf4a929573e3f.zip
FreeBSD-src-f53d43761e663beb3f653487123cf4a929573e3f.tar.gz
the feederchain builder is currently broken for recording channels. disable
it until it is fixed. this limits recording to native formats and speeds only.
Diffstat (limited to 'sys/dev/sound/pcm')
-rw-r--r--sys/dev/sound/pcm/feeder.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/feeder.c b/sys/dev/sound/pcm/feeder.c
index 102bab2..f361ada 100644
--- a/sys/dev/sound/pcm/feeder.c
+++ b/sys/dev/sound/pcm/feeder.c
@@ -270,6 +270,9 @@ chn_fmtchain(struct pcm_channel *c, u_int32_t *to)
struct pcm_feeder *try, *stop;
int max;
+ /* we're broken for recording currently, reject attempts */
+ if (c->direction == PCMDIR_REC)
+ return EINVAL;
stop = c->feeder;
try = NULL;
max = 0;
OpenPOWER on IntegriCloud