summaryrefslogtreecommitdiffstats
path: root/hal/audio_hw_extn_api.c
diff options
context:
space:
mode:
authorDhananjay Kumar <dhakumar@codeaurora.org>2017-01-11 18:38:09 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-01-24 05:33:47 -0800
commit23a3bec886cb3b1d581c0fcf1ee0cfa14474b539 (patch)
tree930e89d6a45e594fd168d3264208718f7294f3ec /hal/audio_hw_extn_api.c
parent86da07bb2f9b8fbd99e175b658f3c87496aa1ce3 (diff)
downloadhardware_qcom_audio-23a3bec886cb3b1d581c0fcf1ee0cfa14474b539.tar.gz
hardware_qcom_audio-23a3bec886cb3b1d581c0fcf1ee0cfa14474b539.tar.bz2
hardware_qcom_audio-23a3bec886cb3b1d581c0fcf1ee0cfa14474b539.zip
audio: enable compilation of qahw_api on Android builds
-Fix compilation errors from qahw_api tests and enable compilation of qahw_api on Android builds. Change-Id: Ifc05ea22f0fd9ac0e6f6e9b22a6c593841acc761
Diffstat (limited to 'hal/audio_hw_extn_api.c')
-rw-r--r--hal/audio_hw_extn_api.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/hal/audio_hw_extn_api.c b/hal/audio_hw_extn_api.c
index d98a4dc9..39d81fb8 100644
--- a/hal/audio_hw_extn_api.c
+++ b/hal/audio_hw_extn_api.c
@@ -49,7 +49,8 @@ uint64_t timestamp;
#endif
int qahwi_get_param_data(const struct audio_hw_device *adev,
- qahw_param_id param_id, qahw_param_payload *payload)
+ audio_extn_param_id param_id,
+ audio_extn_param_payload *payload)
{
int ret = 0;
const struct audio_device *dev = (const struct audio_device *)adev;
@@ -65,13 +66,13 @@ int qahwi_get_param_data(const struct audio_hw_device *adev,
}
switch (param_id) {
- case QAHW_PARAM_SOUND_FOCUS:
+ case AUDIO_EXTN_PARAM_SOUND_FOCUS:
ret = audio_extn_get_soundfocus_data(dev,
- (struct qahw_sound_focus_param *)payload);
+ (struct sound_focus_param *)payload);
break;
- case QAHW_PARAM_SOURCE_TRACK:
+ case AUDIO_EXTN_PARAM_SOURCE_TRACK:
ret = audio_extn_get_sourcetrack_data(dev,
- (struct qahw_source_tracking_param*)payload);
+ (struct source_tracking_param*)payload);
break;
default:
ALOGE("%s::INVALID PARAM ID:%d\n",__func__,param_id);
@@ -82,7 +83,8 @@ int qahwi_get_param_data(const struct audio_hw_device *adev,
}
int qahwi_set_param_data(struct audio_hw_device *adev,
- qahw_param_id param_id, qahw_param_payload *payload)
+ audio_extn_param_id param_id,
+ audio_extn_param_payload *payload)
{
int ret = 0;
struct audio_device *dev = (struct audio_device *)adev;
@@ -98,9 +100,9 @@ int qahwi_set_param_data(struct audio_hw_device *adev,
}
switch (param_id) {
- case QAHW_PARAM_SOUND_FOCUS:
+ case AUDIO_EXTN_PARAM_SOUND_FOCUS:
ret = audio_extn_set_soundfocus_data(dev,
- (struct qahw_sound_focus_param *)payload);
+ (struct sound_focus_param *)payload);
break;
default:
ALOGE("%s::INVALID PARAM ID:%d\n",__func__,param_id);