summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c2
-rw-r--r--src/module-oss-mmap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 67109682..d10ce0d5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -38,7 +38,7 @@ int main(int argc, char *argv[]) {
c = core_new(pa_mainloop_get_api(mainloop));
assert(c);
- module_load(c, "module-oss-mmap", "/dev/dsp");
+ module_load(c, "module-oss-mmap", "/dev/dsp1");
/* module_load(c, "module-pipe-sink", NULL);*/
module_load(c, "module-simple-protocol-tcp", NULL);
/* module_load(c, "module-simple-protocol-unix", NULL);
diff --git a/src/module-oss-mmap.c b/src/module-oss-mmap.c
index 3997c490..3f69e05b 100644
--- a/src/module-oss-mmap.c
+++ b/src/module-oss-mmap.c
@@ -273,7 +273,7 @@ int module_init(struct core *c, struct module*m) {
}
}
- if (m != O_RDONLY) {
+ if (mode != O_RDONLY) {
if (ioctl(u->fd, SNDCTL_DSP_GETOSPACE, &info) < 0) {
fprintf(stderr, "SNDCTL_DSP_GETOSPACE: %s\n", strerror(errno));
goto fail;