commit b7fe3af320226600c6162252f040b21d6323e07c Author: Samuel Thibault Date: Tue Mar 14 21:52:14 2017 -0500 add unicode variant of /dev/softsynth diff --git a/softsynth.c b/softsynth.c index 3394434..efa2351 100644 --- a/softsynth.c +++ b/softsynth.c @@ -235,7 +235,10 @@ int open_softsynth(void) } /* open the softsynth. */ - softFD = open("/dev/softsynth", O_RDWR | O_NONBLOCK); + softFD = open("/dev/softsynthu", O_RDWR | O_NONBLOCK); + if (softFD < 0 && errno == ENOENT) + /* Kernel without unicode support? Try without unicode. */ + softFD = open("/dev/softsynth", O_RDWR | O_NONBLOCK); if (softFD < 0) { perror("Unable to open the softsynth device"); rc = -1;