diff options
| author | Satya Krishna Pindiproli <satyak@codeaurora.org> | 2016-06-23 13:50:03 +0530 |
|---|---|---|
| committer | Kyle Yan <kyan@codeaurora.org> | 2016-06-29 11:00:33 -0700 |
| commit | 4ff0e8648b5212189bc82d35c6c55f691c003eb7 (patch) | |
| tree | c2d5a804336139da91a183353f90776e51fe52ab | |
| parent | 9ee577f0c10df25243f78acad1c42ee496e84969 (diff) | |
ASoC: msm: qdsp6v2: fix non-gapless transition failure
During non-gapless transition, there is an indefinite wait in
drain until either eos_ack or cmd_interrupt is set. This results
in playback getting stuck and occurs because cmd_interrupt is
not set in TRIGGER_STOP as gapless_transition is set to 1 during
partial drain of earlier stream.
Fix the issue by setting gapless_transition to 0 when gapless
fails which ensures that cmd_interrupt is set in TRIGGER_STOP.
CRs-Fixed: 1027991
Change-Id: I47d2d45df8686f25e8170a84fcaf68e143f6e4f6
Signed-off-by: Satya Krishna Pindiproli <satyak@codeaurora.org>
| -rwxr-xr-x | sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c index b0cd4a635968..1115b13c233c 100755 --- a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c +++ b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c @@ -1763,6 +1763,7 @@ static int msm_compr_trigger(struct snd_compr_stream *cstream, int cmd) stream can be used for gapless playback */ prtd->gapless_state.set_next_stream_id = false; + prtd->gapless_state.gapless_transition = 0; pr_debug("%s:CMD_EOS stream_id %d\n", __func__, ac->stream_id); prtd->eos_ack = 0; |
