Fix bugs introduced by silence detection function
Add setting and switching to emergency output
Send switch to emergency output to clocks