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. Recalculate partial drain delay based on flac min block size to avoid incorrect drain delay for FLAC format. Change-Id: I7f70a6fc17cc9c339ea754fd21aae6865355bef2 Signed-off-by:Dhananjay Kumar <dhakumar@codeaurora.org> Signed-off-by:
Banajit Goswami <bgoswami@codeaurora.org>
Loading
Please register or sign in to comment