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

Commit 30adca5d authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioSystem: fix missing audio port callbacks after audioserver restart

Commit ce3d1106 dropped the enablement of audio port and volume group
callbacks after registering the audio policy client when reconnecting
audiosystem to a new instance of audio policy service.

Bug: 378032953
Test: make
Flag: EXEMPT bug fix
Change-Id: Ia20bbe206b6073c37b4ba07faf3b906abd52b549
parent 5ad9790a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -985,6 +985,8 @@ public:
        // TODO(b/375280520) consider registerClient() within mMutex lock.
        const int64_t token = IPCThreadState::self()->clearCallingIdentity();
        aps->registerClient(client);
        aps->setAudioPortCallbacksEnabled(client->isAudioPortCbEnabled());
        aps->setAudioVolumeGroupCallbacksEnabled(client->isAudioVolumeGroupCbEnabled());
        IPCThreadState::self()->restoreCallingIdentity(token);
    }