0.9.7b doesn't compile with [p]ac series kernels
PATCH 1/1 0.9.7b doesn't compile with [p]ac series kernels
Since the -[p]ac kernel patch series make tty counts atomic, ALSA's serialmidi.c fails to compile.
Patch attached; this breaks "normal" kernels though [guess we need a configure check for atomic tty->count; I haven't done that yet]
LLaP
bero
Signature · 5 lines
Ark Linux - Linux for the masses http://www.arklinux.org/ Redistribution and processing of this message is subject to http://www.arklinux.org/terms.php
drivers/serialmidi.c renamed from drivers/serialmidi.c.bero +1 -1
@@ -155,7 +155,7 @@ retval = -EIO ; goto __end; } -if (tty->count >1 ) { +if (atomic_read (&tty->count) >1 ) {snd_printk (KERN_ERR "tty %s is already used" , serial->sdev); retval = -EBUSY ; goto __end;