[alsa-devel] [PATCH] ALSA: pcm: Update the state properly before notification