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

Commit fdb08f41 authored by Aviral Gupta's avatar Aviral Gupta Committed by Dhananjay Kumar
Browse files

hal_mpq: Fix the underrun issue in the offload playback

The cmd_pending variable was not updated correctly leading to the
underrun

Change-Id: Ic5a779c2caf737da097ce9165242f1bdbfa737aa
parent e88b020a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2139,6 +2139,7 @@ static int write_data(struct stream_out *out, struct alsa_handle *handle,
        /* TODO:disnable this if ms12 */

        if (ret >= 0 && ret < (ssize_t)bytes) {
            handle->cmd_pending = true;
            send_offload_cmd_l(out, OFFLOAD_CMD_WAIT_FOR_BUFFER);
        }
        return ret;