Commit 9529397248a1330cf442e79e4d4bbe912fa7f6e6

Authored by bellard
1 parent a2458627

open OSS audio device as write only (malc)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1524 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
audio/ossaudio.c
@@ -127,7 +127,7 @@ static int oss_open (struct oss_params *req, struct oss_params *obt, int *pfd) @@ -127,7 +127,7 @@ static int oss_open (struct oss_params *req, struct oss_params *obt, int *pfd)
127 int fmt, freq, nchannels; 127 int fmt, freq, nchannels;
128 const char *dspname = conf.dspname; 128 const char *dspname = conf.dspname;
129 129
130 - fd = open (dspname, O_RDWR | O_NONBLOCK); 130 + fd = open (dspname, O_WRONLY | O_NONBLOCK);
131 if (-1 == fd) { 131 if (-1 == fd) {
132 dolog ("Could not initialize audio hardware. Failed to open `%s':\n" 132 dolog ("Could not initialize audio hardware. Failed to open `%s':\n"
133 "Reason:%s\n", 133 "Reason:%s\n",