Fixed typo in Function Manager

Added more check on ALSA audio input code