Restarting sound on Ubuntu

sudo /sbin/alsa force-reload[/code]