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

Skip to content
Commit 95b597a3 authored by kunleiz's avatar kunleiz
Browse files

hal: initialize value of stop_threshold for VoIP

The value of stop_threshold for VoIP is not initialized,
then it will be set to default value equals to frames
counts during pcm_open. If all frames are rendered out,
then it can trigger XRUN and stop VoIP stream. When the
stream is restarted, path configuration would fail and
cause RX mute.

Fix by initializing stop_threshold and avail_min value
to INT_MAX and default period_size for VoIP.

CRs-Fixed: 2130594
Change-Id: I141643b8fd653c4c4b27f9812b8f6a2f96b98bc0
parent adbbe4f9
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