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

Commit 6ce16cba authored by Jeff Tinker's avatar Jeff Tinker
Browse files

Remove lock on MediaCrypto's decrypt call

The lock isn't necessary and prevents concurrent hwbinder
calls into the drm plugin which impacts performance.
Serialization of decrypt calls is done at a lower level.

bug: 157017229
test: Media GTS tests on coral
Change-Id: I38e3132f45c140cba9b2b8a72054fbff5eedb997
parent 88320846
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -376,6 +376,7 @@ ssize_t CryptoHal::decrypt(const uint8_t keyId[16], const uint8_t iv[16],

    Return<void> hResult;

    mLock.unlock();
    if (mPluginV1_2 != NULL) {
        hResult = mPluginV1_2->decrypt_1_2(secure, toHidlArray16(keyId), toHidlArray16(iv),
                hMode, hPattern, hSubSamples, hSource, offset, hDestination,