[alsa-devel] [PATCH 1/2] alsa: compress_core: don't wake up on pause
Vinod Koul
vinod.koul at linux.intel.com
Tue Jun 12 12:46:17 CEST 2012
during pause the core should maintain the status-quo on the device and pointers
and not wake up. If app needs it should call DROP explcitly.
Signed-off-by: Namarta Kohli <namartax.kohli at intel.com>
Signed-off-by: Vinod Koul <vinod.koul at linux.intel.com>
---
sound/core/compress_offload.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c
index a68aed7..375f7a0 100644
--- a/sound/core/compress_offload.c
+++ b/sound/core/compress_offload.c
@@ -502,10 +502,8 @@ static int snd_compr_pause(struct snd_compr_stream *stream)
if (stream->runtime->state != SNDRV_PCM_STATE_RUNNING)
return -EPERM;
retval = stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_PAUSE_PUSH);
- if (!retval) {
+ if (!retval)
stream->runtime->state = SNDRV_PCM_STATE_PAUSED;
- wake_up(&stream->runtime->sleep);
- }
return retval;
}
--
1.7.0.4
More information about the Alsa-devel
mailing list