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

Skip to content
Commit 993f390f authored by Francois Gaffie's avatar Francois Gaffie Committed by Eric Laurent
Browse files

audiopolicy: remove double call to attach / getModuleForDeviceType



For a2dp hybrid mode, device retrieval is done through type / code pair.
When the device is connected, getDeviceDescriptor is called with allowToCreate
boolean. As a result, HwModuleCollection::createDevice will be called, invoking
getModuleForDeviceTypes as done laterly in setDeviceConnectionState.

This CL removes double call to these function.

Bug: 130284799
Test: make

Change-Id: I188f11e9325cfc6af2ae872e00485e00ccd9096b
Signed-off-by: default avatarFrancois Gaffie <francois.gaffie@renault.com>
parent 9e1533cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment