summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/feeder.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sound/pcm/feeder.c')
-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