ref: 6ba89d0c05e4b93bdb64460b64a9ba3bdcc4bf6e
parent: 16e404d5f80e9f6dd343eb47d421fc69b3d82728
parent: 580c788b9d5674135b0ad6973fe21869b6cfa2c9
author: Simon Howard <fraggle@soulsphere.org>
date: Sun Jul 26 08:53:26 EDT 2020
Merge pull request #1283 from nicolas-robin/fix_opl_linux opl_linux: fix number of port requested by ioperm()
--- a/opl/opl_linux.c
+++ b/opl/opl_linux.c
@@ -35,7 +35,7 @@
{
// Try to get permissions:
- if (ioperm(port_base, 2, 1) < 0)
+ if (ioperm(port_base, 3, 1) < 0)
{
fprintf(stderr, "Failed to get I/O port permissions for 0x%x: %s\n",
port_base, strerror(errno));