Loading services/audiopolicy/common/managerdefinitions/src/HwModule.cpp +2 −1 Original line number Original line Diff line number Diff line Loading @@ -333,9 +333,10 @@ sp<DeviceDescriptor> HwModuleCollection::getDeviceDescriptor(const audio_devices if (encodedFormat != AUDIO_FORMAT_DEFAULT) { if (encodedFormat != AUDIO_FORMAT_DEFAULT) { moduleDevice->setEncodedFormat(encodedFormat); moduleDevice->setEncodedFormat(encodedFormat); } } moduleDevice->setAddress(devAddress); if (allowToCreate) { if (allowToCreate) { moduleDevice->attach(hwModule); moduleDevice->attach(hwModule); moduleDevice->setAddress(devAddress); moduleDevice->setName(String8(name)); } } return moduleDevice; return moduleDevice; } } Loading Loading
services/audiopolicy/common/managerdefinitions/src/HwModule.cpp +2 −1 Original line number Original line Diff line number Diff line Loading @@ -333,9 +333,10 @@ sp<DeviceDescriptor> HwModuleCollection::getDeviceDescriptor(const audio_devices if (encodedFormat != AUDIO_FORMAT_DEFAULT) { if (encodedFormat != AUDIO_FORMAT_DEFAULT) { moduleDevice->setEncodedFormat(encodedFormat); moduleDevice->setEncodedFormat(encodedFormat); } } moduleDevice->setAddress(devAddress); if (allowToCreate) { if (allowToCreate) { moduleDevice->attach(hwModule); moduleDevice->attach(hwModule); moduleDevice->setAddress(devAddress); moduleDevice->setName(String8(name)); } } return moduleDevice; return moduleDevice; } } Loading