summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-24 09:05:18 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-24 09:05:18 +0000
commit9529397248a1330cf442e79e4d4bbe912fa7f6e6 (patch)
treea268ef9c31213d73bd6e5b1afc9155206107953c /audio
parenta2458627f9d29675ef29d2a3c8c6a3df99bedfb1 (diff)
open OSS audio device as write only (malc)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1524 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'audio')
-rw-r--r--audio/ossaudio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/ossaudio.c b/audio/ossaudio.c
index ee897c9dd..5246ebb78 100644
--- a/audio/ossaudio.c
+++ b/audio/ossaudio.c
@@ -127,7 +127,7 @@ static int oss_open (struct oss_params *req, struct oss_params *obt, int *pfd)
int fmt, freq, nchannels;
const char *dspname = conf.dspname;
- fd = open (dspname, O_RDWR | O_NONBLOCK);
+ fd = open (dspname, O_WRONLY | O_NONBLOCK);
if (-1 == fd) {
dolog ("Could not initialize audio hardware. Failed to open `%s':\n"
"Reason:%s\n",