Return error no if pcm_get_state fails.