Is it possible to switch the audio from HDMI to 3.5mm stereo jack output without having to reboot the machine?
Is it even possible to simply change the current audio routing, in such a way it returns to the settings from the boot config at the next restart?
Switching Audio Output
4 posts
I think so yes. There's some good info here. Can't give you specific help because you haven't said what version of what operating system you are using. Wheezy has sound enabled, squeeze doesn't. If you're using anything else, I don't know. 
Check out the wiki sound troubleshooting section
http://elinux.org/R-Pi_Troubleshooting#Sound
Check out the wiki sound troubleshooting section
http://elinux.org/R-Pi_Troubleshooting#Sound
I'm using Debian Wheezy, but I'll take a look at what you have linked to.
In that case you can force it from a command line prompt...
where n is 0=auto, 1=headphones, 2=hdmi.
Change <n> to 1 to force sound through the 3.5mm headphone jack
- Code: Select all
sudo amixer cset numid=3 <n>
where n is 0=auto, 1=headphones, 2=hdmi.
Change <n> to 1 to force sound through the 3.5mm headphone jack