[alsa-devel] [PATCH 05/14] ALSA: pcm: Check PCM state by a common helper function