summaryrefslogtreecommitdiffstats
path: root/hal/audio_extn/audio_extn.c
diff options
context:
space:
mode:
authorKuirong Wang <kuirongw@codeaurora.org>2016-03-07 11:21:52 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-06-23 10:28:19 -0700
commita9f7cee0718c0bee1d7bbe27ef6603e104822fe1 (patch)
treee1129ae75f3be74a9815c4514a8869c082e618de /hal/audio_extn/audio_extn.c
parentbff5f0bee0fd2cca7a54be4d113e0925f9ed92de (diff)
downloadhardware_qcom_audio-a9f7cee0718c0bee1d7bbe27ef6603e104822fe1.tar.gz
hardware_qcom_audio-a9f7cee0718c0bee1d7bbe27ef6603e104822fe1.tar.bz2
hardware_qcom_audio-a9f7cee0718c0bee1d7bbe27ef6603e104822fe1.zip
hal: Add USB audio via ADSP support
Add changes to support USB audio via ADSP tunnel solution. CRs-Fixed: 1019158 Change-Id: I95a9796d7cad71e09dedd2bcd451183cbd25ca71
Diffstat (limited to 'hal/audio_extn/audio_extn.c')
-rw-r--r--hal/audio_extn/audio_extn.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/hal/audio_extn/audio_extn.c b/hal/audio_extn/audio_extn.c
index 8b8632ea..49e649c6 100644
--- a/hal/audio_extn/audio_extn.c
+++ b/hal/audio_extn/audio_extn.c
@@ -677,11 +677,7 @@ int audio_extn_get_afe_proxy_parameters(const struct audio_device *adev,
ret = str_parms_get_str(query, AUDIO_PARAMETER_CAN_OPEN_PROXY, value,
sizeof(value));
if (ret >= 0) {
- if (audio_extn_usb_is_proxy_inuse() ||
- !adev->allow_afe_proxy_usage)
- val = 0;
- else
- val = 1;
+ val = (adev->allow_afe_proxy_usage ? 1: 0);
str_parms_add_int(reply, AUDIO_PARAMETER_CAN_OPEN_PROXY, val);
}
ALOGV("%s: called ... can_use_proxy %d", __func__, val);