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

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

Merge "audio policy: fix regression in USB audio"

parents 4a4c2644 308d50bf
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -332,10 +332,8 @@ sp<DeviceDescriptor> HwModuleCollection::getDeviceDescriptor(const audio_devices
        if (moduleDevice) {
            if (encodedFormat != AUDIO_FORMAT_DEFAULT) {
                moduleDevice->setEncodedFormat(encodedFormat);
                if (moduleDevice->address() != devAddress) {
                    moduleDevice->setAddress(devAddress);
                }
            }
            moduleDevice->setAddress(devAddress);
            if (allowToCreate) {
                moduleDevice->attach(hwModule);
            }