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

Commit 3305c11a authored by François Gaffie's avatar François Gaffie Committed by Eric Laurent
Browse files

audiopolicy: engineconfigurable: Forward device connection state to Policy PFW wrapper



Test: make
Change-Id: I4a70abbae6c6bd0e683447d32d964728a9acc3fd
Signed-off-by: default avatarFrançois Gaffie <francois.gaffie@renault.com>
parent d544f1c6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -219,8 +219,10 @@ audio_policy_forced_cfg_t Engine::getForceUse(audio_policy_force_use_t usage) co
}

status_t Engine::setDeviceConnectionState(const sp<DeviceDescriptor> devDesc,
                                          audio_policy_dev_state_t /*state*/)
                                          audio_policy_dev_state_t state)
{
    mPolicyParameterMgr->setDeviceConnectionState(devDesc, state);

    if (audio_is_output_device(devDesc->type())) {
        return mPolicyParameterMgr->setAvailableOutputDevices(
                    mApmObserver->getAvailableOutputDevices().types());