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

Commit 488d6781 authored by Giulio Cervera's avatar Giulio Cervera
Browse files

QCOM/LPA: flag to disable pause IOCTL from seekTo

parent a04560ea
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -418,11 +418,13 @@ status_t LPAPlayer::seekTo(int64_t time_us) {
    LOGV("In seekTo(), mSeekTimeUs %lld",mSeekTimeUs);
    if (!bIsA2DPEnabled) {
        if(mIsDriverStarted) {
#ifndef QCOM_KERNEL_SUPPORT_LPA_PAUSE
            if (!isPaused) {
                if (ioctl(afd, AUDIO_PAUSE, 1) < 0) {
                    LOGE("Audio Pause failed");
                }
            }
#endif
            if (ioctl(afd, AUDIO_FLUSH, 0) < 0) {
                LOGE("Audio Flush failed");
            }