Use a switch to handle the ALSA PCM state