I've been looking for a way to reencode audio in realtime to 5.1 in linux lately, while I haven't found that, i did find a way to do it in windows for anyone interested.
http://kxproject.lugosoft.com/index.php?skip=1
thats a driver for audigy, and compatible sound cards that will reencode and send 5.1 out spdif.