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

Commit 6d5ee512 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Audio policy: fix HwModuleCollection::getDeviceDescriptor" into qt-r1-dev

parents 937b2d07 947c0f18
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;
        }