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

Commit d19fa84a authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 7502225 from c47a784d to sc-d1-release

Change-Id: Ibbc0db46f0d3c393dec7f4f157992e086c3618e4
parents 65b5fcf5 c47a784d
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -237,6 +237,12 @@ aaudio_result_t AAudioServiceEndpointMMAP::openWithFormat(audio_format_t audioFo
        result = AAUDIO_ERROR_INTERNAL;
        result = AAUDIO_ERROR_INTERNAL;
        goto error;
        goto error;
    }
    }
    // Call to HAL to make sure the transport FD was able to be closed by binder.
    // This is a tricky workaround for a problem in Binder.
    // TODO:[b/192048842] When that problem is fixed we may be able to remove or change this code.
    struct audio_mmap_position position;
    mMmapStream->getMmapPosition(&position);

    mFramesPerBurst = mMmapBufferinfo.burst_size_frames;
    mFramesPerBurst = mMmapBufferinfo.burst_size_frames;
    setFormat(config.format);
    setFormat(config.format);
    setSampleRate(config.sample_rate);
    setSampleRate(config.sample_rate);