Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 78770fa8 authored by Harmandeep Singh's avatar Harmandeep Singh Committed by Stephen Boyd
Browse files

ASoC: msm: Fix for a seekbar issue during audio playback.



Issue is that when seek happens several times during audio playback,
and at some point last buffer write done event from DSP is received,
an ioctl drain is issued, which will set pending_buffer flag to 0,
In the mean time before drain finishes a seek comes, which issues
a flush on all the buffers and try to resume the playback again.
Now because the pending_buffer flag is set to 0, CMD_RUN will return
without any further writes to DSP. As a result no audio buffers are
reaching the DSP and hence no audio is getting played.

Make a fix is to set pending_buffer flag to 1 whenever playback is resumed
after seek.

CRs-fixed: 416274
Change-Id: I297a3cf0ed41baa1b581da8a314d7929bc5e26f9
Signed-off-by: default avatarHarmandeep Singh <hsingh@codeaurora.org>
parent b2eb9bcd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment