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

Skip to content
Commit c25a6e52 authored by Dhananjay Kumar's avatar Dhananjay Kumar Committed by Sachin Mohan Gadag
Browse files

ASoC: msm: qdsp6v2: fix incomplete playback issue for non-gapless formats



Fix data loss on auto switching of playback to next clip
when current playback format is not having gapless support
in compressed driver.
Media playback complete event is sent to framework on completion
of partial drain, this is supposed to be before actual renderer
EOS by duration equal to value of PARTIAL_DRAIN_ACK_EARLY_BY_MSEC,
but due to uninitialized frame size for non-gapless formats this
duration calculated is inaccurate and sometimes triggers drain
completion too early, leading to premature teardown of playback
session.
Fix this by disabling gapless on formats not having valid gapless
parameters.

Change-Id: I7f70a6fc17cc9c339ea754fd21aae6865355bef2
Signed-off-by: default avatarDhananjay Kumar <dhakumar@codeaurora.org>
parent f1c633ae
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