OSDN Git Service

ALSA: timer: Fix pause event notification
authorBen Hutchings <ben.hutchings@codethink.co.uk>
Thu, 17 May 2018 21:34:39 +0000 (22:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:48:51 +0000 (07:48 +0200)
commitc04a69fb83974aa25f1065fc0c7b63e046dc46f2
tree409439c527c6cd5297cf06ad13f5ed7a2e31e6fd
parent1ac501e05fcd8a016d440c2d040272ab67f365b4
ALSA: timer: Fix pause event notification

commit 3ae180972564846e6d794e3615e1ab0a1e6c4ef9 upstream.

Commit f65e0d299807 ("ALSA: timer: Call notifier in the same spinlock")
combined the start/continue and stop/pause functions, and in doing so
changed the event code for the pause case to SNDRV_TIMER_EVENT_CONTINUE.
Change it back to SNDRV_TIMER_EVENT_PAUSE.

Fixes: f65e0d299807 ("ALSA: timer: Call notifier in the same spinlock")
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Cc: stable@vger.kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/core/timer.c