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

Commit 8d9b238a authored by Jasmine Cha's avatar Jasmine Cha Committed by Automerger Merge Worker
Browse files

oboeservice: call to hal again to close transport FD by binder am: c47a784d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/14732026

Change-Id: Iba9907427eeffe31e64212be579847440f972970
parents fbf2b507 c47a784d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -237,6 +237,12 @@ aaudio_result_t AAudioServiceEndpointMMAP::openWithFormat(audio_format_t audioFo
        result = AAUDIO_ERROR_INTERNAL;
        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;
    setFormat(config.format);
    setSampleRate(config.sample_rate);