Martin,
If you are looking for text based mixer technology, check out amixer.
I believe you can control all the things alsamixer controls but with
just text commands. I don't really use it, although I used to play with
it a bit.
Maybe it would help.
Cheers,
Mark