mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Merge "audio: Update hardwired configuration"
This commit is contained in:
@@ -47,10 +47,14 @@ ndk::ScopedAStatus Config::getEngineConfig(AudioHalEngineConfig* _aidl_return) {
|
||||
LOG(WARNING) << __func__ << mAudioPolicyConverter.getError();
|
||||
}
|
||||
}
|
||||
// Logging full contents of the config is an overkill, just provide statistics.
|
||||
LOG(DEBUG) << "getEngineConfig: number of strategies parsed: "
|
||||
<< engConfig.productStrategies.size()
|
||||
<< ", default strategy: " << engConfig.defaultProductStrategyId
|
||||
<< ", number of volume groups parsed: " << engConfig.volumeGroups.size();
|
||||
return engConfig;
|
||||
}();
|
||||
*_aidl_return = returnEngCfg;
|
||||
LOG(DEBUG) << __func__ << ": returning " << _aidl_return->toString();
|
||||
return ndk::ScopedAStatus::ok();
|
||||
}
|
||||
} // namespace aidl::android::hardware::audio::core
|
||||
|
||||
@@ -81,6 +81,8 @@ static AudioPortExt createDeviceExt(AudioDeviceType devType, int32_t flags,
|
||||
deviceExt.device.address = "bottom";
|
||||
} else if (devType == AudioDeviceType::IN_MICROPHONE_BACK && connection.empty()) {
|
||||
deviceExt.device.address = "back";
|
||||
} else if (devType == AudioDeviceType::IN_SUBMIX || devType == AudioDeviceType::OUT_SUBMIX) {
|
||||
deviceExt.device.address = "0";
|
||||
}
|
||||
deviceExt.device.type.connection = std::move(connection);
|
||||
deviceExt.flags = flags;
|
||||
@@ -365,8 +367,10 @@ std::unique_ptr<Configuration> getRSubmixConfiguration() {
|
||||
|
||||
// Device ports
|
||||
|
||||
AudioPort rsubmixOutDevice = createPort(c.nextPortId++, "Remote Submix Out", 0, false,
|
||||
createDeviceExt(AudioDeviceType::OUT_SUBMIX, 0));
|
||||
AudioPort rsubmixOutDevice =
|
||||
createPort(c.nextPortId++, "Remote Submix Out", 0, false,
|
||||
createDeviceExt(AudioDeviceType::OUT_SUBMIX, 0,
|
||||
AudioDeviceDescription::CONNECTION_VIRTUAL));
|
||||
rsubmixOutDevice.profiles.push_back(
|
||||
createProfile(PcmType::INT_24_BIT, {AudioChannelLayout::LAYOUT_STEREO}, {48000}));
|
||||
c.ports.push_back(rsubmixOutDevice);
|
||||
|
||||
Reference in New Issue
Block a user