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

Skip to content
Commit 7d3c9fe3 authored by Manisha Agarwal's avatar Manisha Agarwal
Browse files

hal: Resolves rewound and restart issue during SSR/PDR.

Audio playback after SSR/PDR gets rewound or restarts.

The issue occurs because of two scenarios:

1.out_get_render_position returns 0 when card status goes from offline
to online and out->compr is NULL.So,getPosition returns default 0 dsp
frames and anchorTime gets updated to mAudioFirstAnchorTimeMediaUs,
making it seek to the wrong position.

2.out_get_presentation_position returns 0 when out->compr is NULL,
even for offload usecase.

To solve the first issue introduce a flag which is true if the card
was offline previously and out_get_render_position checks the flag,
which if true return invalid value.For the second issue return failure
from out_get_presentation_position when out->compr is NULL and it is
offload usecase.

CRs-Fixed: 2392929
Change-Id: Ic0718bc2d62e4b05a6166efeb33ccf658d6cad2d
parent 7ea1a8e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment