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
Loading
Please register or sign in to comment