|
|
|
@ -502,8 +502,8 @@ audio_devices_t Engine::getDeviceForStrategyInt(legacy_strategy strategy,
|
|
|
|
|
|
|
|
|
|
audio_devices_t Engine::getDeviceForInputSource(audio_source_t inputSource) const
|
|
|
|
|
{
|
|
|
|
|
const DeviceVector &availableOutputDevices = getApmObserver()->getAvailableOutputDevices();
|
|
|
|
|
const DeviceVector &availableInputDevices = getApmObserver()->getAvailableInputDevices();
|
|
|
|
|
const DeviceVector availableOutputDevices = getApmObserver()->getAvailableOutputDevices();
|
|
|
|
|
const DeviceVector availableInputDevices = getApmObserver()->getAvailableInputDevices();
|
|
|
|
|
const SwAudioOutputCollection &outputs = getApmObserver()->getOutputs();
|
|
|
|
|
audio_devices_t availableDeviceTypes = availableInputDevices.types() & ~AUDIO_DEVICE_BIT_IN;
|
|
|
|
|
|
|
|
|
@ -704,7 +704,7 @@ DeviceVector Engine::getOutputDevicesForAttributes(const audio_attributes_t &att
|
|
|
|
|
return DeviceVector(preferredDevice);
|
|
|
|
|
}
|
|
|
|
|
product_strategy_t strategy = getProductStrategyForAttributes(attributes);
|
|
|
|
|
const DeviceVector &availableOutputDevices = getApmObserver()->getAvailableOutputDevices();
|
|
|
|
|
const DeviceVector availableOutputDevices = getApmObserver()->getAvailableOutputDevices();
|
|
|
|
|
const SwAudioOutputCollection &outputs = getApmObserver()->getOutputs();
|
|
|
|
|
//
|
|
|
|
|
// @TODO: what is the priority of explicit routing? Shall it be considered first as it used to
|
|
|
|
@ -730,7 +730,7 @@ sp<DeviceDescriptor> Engine::getInputDeviceForAttributes(const audio_attributes_
|
|
|
|
|
sp<AudioPolicyMix> *mix) const
|
|
|
|
|
{
|
|
|
|
|
const auto &policyMixes = getApmObserver()->getAudioPolicyMixCollection();
|
|
|
|
|
const auto &availableInputDevices = getApmObserver()->getAvailableInputDevices();
|
|
|
|
|
const auto availableInputDevices = getApmObserver()->getAvailableInputDevices();
|
|
|
|
|
const auto &inputs = getApmObserver()->getInputs();
|
|
|
|
|
std::string address;
|
|
|
|
|
|
|
|
|
|