policy_hal: Add new parameter to the getOutputForAttr
Add new parameter to pass output type in
AudioPolicyManager::getOutputForAttr method.
Change-Id: I846812bc75dc36ce01b9c38d357c5576b636b2ca
diff --git a/policy_hal/AudioPolicyManager.cpp b/policy_hal/AudioPolicyManager.cpp
index 77002e4..15e9a8f 100644
--- a/policy_hal/AudioPolicyManager.cpp
+++ b/policy_hal/AudioPolicyManager.cpp
@@ -1383,7 +1383,8 @@
audio_output_flags_t *flags,
audio_port_handle_t *selectedDeviceId,
audio_port_handle_t *portId,
- std::vector<audio_io_handle_t> *secondaryOutputs)
+ std::vector<audio_io_handle_t> *secondaryOutputs,
+ output_type_t *outputType)
{
audio_offload_info_t tOffloadInfo = AUDIO_INFO_INITIALIZER;
audio_config_t tConfig;
@@ -1411,7 +1412,8 @@
flags,
(audio_port_handle_t*)selectedDeviceId,
portId,
- secondaryOutputs);
+ secondaryOutputs,
+ outputType);
}
audio_io_handle_t AudioPolicyManagerCustom::getOutputForDevices(
diff --git a/policy_hal/AudioPolicyManager.h b/policy_hal/AudioPolicyManager.h
index 513c53c..0ad9c33 100644
--- a/policy_hal/AudioPolicyManager.h
+++ b/policy_hal/AudioPolicyManager.h
@@ -170,7 +170,8 @@
audio_output_flags_t *flags,
audio_port_handle_t *selectedDeviceId,
audio_port_handle_t *portId,
- std::vector<audio_io_handle_t> *secondaryOutputs);
+ std::vector<audio_io_handle_t> *secondaryOutputs,
+ output_type_t *outputType);