Skip to content

Commit

Permalink
ALSA: compress_core: don't wake up on pause
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Vinod Koul authored and tiwai committed Jun 12, 2012
1 parent f2a8eca commit 6b18f79
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sound/core/compress_offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6b18f79

Please sign in to comment.