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

Commit a843b935 authored by Mikhail Naganov's avatar Mikhail Naganov Committed by android-build-merger
Browse files

Fix parameters passed to pcm_open to include PCM_MONOTONIC am: 635e743a

am: 6e14144a

Change-Id: Ida70817f1c07a8988a04efbb4c7c01ecf3eb5d16
parents 66ff30c8 6e14144a
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1798,7 +1798,7 @@ int start_output_stream(struct stream_out *out)
            goto error_open;
        }
    } else {
        unsigned int flags = PCM_OUT;
        unsigned int flags = PCM_OUT | PCM_MONOTONIC;
        unsigned int pcm_open_retry_count = 0;

        if (out->usecase == USECASE_AUDIO_PLAYBACK_AFE_PROXY) {
@@ -1806,8 +1806,7 @@ int start_output_stream(struct stream_out *out)
            pcm_open_retry_count = PROXY_OPEN_RETRY_COUNT;
        } else if (out->realtime) {
            flags |= PCM_MMAP | PCM_NOIRQ;
        } else
            flags |= PCM_MONOTONIC;
        }

        while (1) {
            out->pcm = pcm_open(adev->snd_card, out->pcm_device_id,