ALSA: aloop: Fix Oops while PM resume
authorTakashi Iwai <tiwai@suse.de>
Mon, 4 Feb 2013 09:28:15 +0000 (10:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 13:44:23 +0000 (06:44 -0700)
commit760ae1d191c247b1e0c837b9701dd3da5db69f11
treedd9c47668fb3622e04812c73848451802cd7f84f
parentcd25cf8987bc5a34b70056c2c3e2a54accd34bb7
ALSA: aloop: Fix Oops while PM resume

commit edac894389f9c9de2a1368c78809c824b343f3a5 upstream.

snd-aloop driver has no proper PM implementation, thus the PM resume
may trigger Oops due to leftover timer instance.  This patch adds the
missing suspend/resume implementation.

Reported-and-tested-by: El boulangero <elboulangero@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Weng Meiling <wengmeiling.weng@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/drivers/aloop.c