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

Commit 839cd069 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Audio policy: fix HwModuleCollection::getDeviceDescriptor"

parents 5158f491 a81b20a8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -333,9 +333,10 @@ sp<DeviceDescriptor> HwModuleCollection::getDeviceDescriptor(const audio_devices
            if (encodedFormat != AUDIO_FORMAT_DEFAULT) {
                moduleDevice->setEncodedFormat(encodedFormat);
            }
            moduleDevice->setAddress(devAddress);
            if (allowToCreate) {
                moduleDevice->attach(hwModule);
                moduleDevice->setAddress(devAddress);
                moduleDevice->setName(String8(name));
            }
            return moduleDevice;
        }