summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/feeder.c
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2003-02-23 20:49:45 +0000
committergreen <green@FreeBSD.org>2003-02-23 20:49:45 +0000
commit339a4ba4db5f924375d3e3cf55122ce5ab144a75 (patch)
tree1ebdc932a8e7f692bce8444099b720f0a06094a3 /sys/dev/sound/pcm/feeder.c
parentd0bb7e7afbce5e386b13a63719dfab9f5aaa39a1 (diff)
downloadFreeBSD-src-339a4ba4db5f924375d3e3cf55122ce5ab144a75.zip
FreeBSD-src-339a4ba4db5f924375d3e3cf55122ce5ab144a75.tar.gz
It seems that sound(4)'s feeder routines don't need to allocate memory
without waiting, since they are called from a system-call context only. This appears to fix all sorts of problems with open("/dev/dsp", O_WRONLY) randomly returning ENXIO. Found by: cognet
Diffstat (limited to 'sys/dev/sound/pcm/feeder.c')
-rw-r--r--sys/dev/sound/pcm/feeder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/feeder.c b/sys/dev/sound/pcm/feeder.c
index 91bdb66..8519574 100644
--- a/sys/dev/sound/pcm/feeder.c
+++ b/sys/dev/sound/pcm/feeder.c
@@ -137,7 +137,7 @@ feeder_create(struct feeder_class *fc, struct pcm_feederdesc *desc)
struct pcm_feeder *f;
int err;
- f = (struct pcm_feeder *)kobj_create((kobj_class_t)fc, M_FEEDER, M_NOWAIT | M_ZERO);
+ f = (struct pcm_feeder *)kobj_create((kobj_class_t)fc, M_FEEDER, M_WAITOK | M_ZERO);
if (f == NULL)
return NULL;
OpenPOWER on IntegriCloud