Clean up alsaseq code

Remove unused and unnecessary functions,
and format code.