sound/oss: use current->state helpers
authorDavidlohr Bueso <dave@stgolabs.net>
Thu, 15 Jan 2015 07:11:43 +0000 (23:11 -0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 15 Jan 2015 07:32:27 +0000 (08:32 +0100)
commitfd4e8dde42bb142448e3fd7dc6094cb2707d3b64
treea439b1bd8a0d89c72ab2eff4cd1601cb85a7dc54
parent7b617289b699b5f7e4544bfd2794818cb880b928
sound/oss: use current->state helpers

Call __set_current_state() instead of assigning the new state directly.
These interfaces also aid CONFIG_DEBUG_ATOMIC_SLEEP environments, keeping
track of who changed the state.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/oss/msnd_pinnacle.c
sound/oss/swarm_cs4297a.c