diff options
author | Vinod Koul <vinod.koul@linux.intel.com> | 2012-06-12 14:46:17 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-06-12 19:54:42 +0400 |
commit | 6b18f79399f25a0f8e2b915b2dcb8bf5c7aa470d (patch) | |
tree | ab18690b00150841eacf430493509b4c9c0eff84 /sound/core | |
parent | f2a8ecaf6d7259cc70fb5898823eab9a2dd86570 (diff) | |
download | linux-6b18f79399f25a0f8e2b915b2dcb8bf5c7aa470d.tar.xz |
ALSA: compress_core: don't wake up on pause
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@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | 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 a68aed7fce02..375f7a0d66ef 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; } |