]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Update the state properly before notification
authorTakashi Iwai <tiwai@suse.de>
Thu, 6 Nov 2014 11:15:25 +0000 (12:15 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 6 Nov 2014 11:17:29 +0000 (12:17 +0100)
commit6a7d58857b2c658ccaba92596e197f33ef7e563c
tree7057d633bf148db9b443eccda3c69513db92ab38
parent541ee57eccad0c7bc5811127eedae179e1d1c48f
ALSA: pcm: Update the state properly before notification

Some state changes (e.g. snd_pcm_stop()) sets the runtime state after
calling snd_timer_notify().  This is basically racy, since the
notification may wakes up the user even before the state change.
Although the possibility is low, we should set the state before the
notifications.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c