[PATCH alsa-lib 2/3] pcm: direct: Move slave PCM state checks into XRUN check helper