aboutsummaryrefslogtreecommitdiffstats
path: root/sound/oss/swarm_cs4297a.c
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2015-01-15 02:11:43 -0500
committerTakashi Iwai <tiwai@suse.de>2015-01-15 02:32:27 -0500
commitfd4e8dde42bb142448e3fd7dc6094cb2707d3b64 (patch)
treea439b1bd8a0d89c72ab2eff4cd1601cb85a7dc54 /sound/oss/swarm_cs4297a.c
parent7b617289b699b5f7e4544bfd2794818cb880b928 (diff)
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>
Diffstat (limited to 'sound/oss/swarm_cs4297a.c')
-rw-r--r--sound/oss/swarm_cs4297a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/oss/swarm_cs4297a.c b/sound/oss/swarm_cs4297a.c
index a33e8ce8085b..213a416b6e0b 100644
--- a/sound/oss/swarm_cs4297a.c
+++ b/sound/oss/swarm_cs4297a.c
@@ -1654,7 +1654,7 @@ static int drain_dac(struct cs4297a_state *s, int nonblock)
1654 s->dma_dac.hwptr = s->dma_dac.swptr = hwptr; 1654 s->dma_dac.hwptr = s->dma_dac.swptr = hwptr;
1655 spin_unlock_irqrestore(&s->lock, flags); 1655 spin_unlock_irqrestore(&s->lock, flags);
1656 remove_wait_queue(&s->dma_dac.wait, &wait); 1656 remove_wait_queue(&s->dma_dac.wait, &wait);
1657 current->state = TASK_RUNNING; 1657 __set_current_state(TASK_RUNNING);
1658 return 0; 1658 return 0;
1659} 1659}
1660 1660