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

Commit 1483d8a6 authored by Fred Oh's avatar Fred Oh Committed by Steve Kondik
Browse files

hal: set maximum polling time to 1000 ms

Since small bufs uses blocking writes, a write will be blocked for
the default max poll time (20s) in the event of an SSR.Reduce the poll
time to observe and deal with SSR faster.

Change-Id: I8693a55596bc9578f9b5a04469d12155f191dcf1
parent 62babb94
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1488,6 +1488,14 @@ int start_output_stream(struct stream_out *out)
        if (out->offload_callback)
            compress_nonblock(out->compr, out->non_blocking);

        /* Since small bufs uses blocking writes, a write will be blocked
           for the default max poll time (20s) in the event of an SSR.
           Reduce the poll time to observe and deal with SSR faster.
        */
        if (out->use_small_bufs) {
            compress_set_max_poll_wait(out->compr, 1000);
        }

#ifdef DS1_DOLBY_DDP_ENABLED
        if (audio_extn_is_dolby_format(out->format))
            audio_extn_dolby_send_ddp_endp_params(adev);