alsa: Make sure not to create empty switches
alsa: Do not unnecessarily return values from functions

Also add a missing prototype and move 2 functions
alsa: Add a few more known elements