summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Borisov <dedsa2002@gmail.com>2018-08-20 20:59:06 +0000
committerNolen Johnson <johnsonnolen@gmail.com>2020-01-13 18:27:25 +0000
commit0b782613f00e89da1f319db36e28dfd20e0b9388 (patch)
tree52a581e40b3e28417367f874bd4514ee4998f155
parente1cdfc7c590bbefa8668fbcb4ae8f1039875aaa3 (diff)
downloadandroid_hardware_qcom_audio-0b782613f00e89da1f319db36e28dfd20e0b9388.tar.gz
android_hardware_qcom_audio-0b782613f00e89da1f319db36e28dfd20e0b9388.tar.bz2
android_hardware_qcom_audio-0b782613f00e89da1f319db36e28dfd20e0b9388.zip
msm8960: Add two stub microphone functions
platform_set_microphone_map and platform_set_mic_break_det are called in the common HAL code, so we should have them to avoid build errors. Change-Id: I666d721cd5f1fed9e7efdf4fbf4baf5fb6a04063
-rw-r--r--hal/msm8960/platform.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/hal/msm8960/platform.c b/hal/msm8960/platform.c
index c509b455..8793ae36 100644
--- a/hal/msm8960/platform.c
+++ b/hal/msm8960/platform.c
@@ -610,6 +610,11 @@ int platform_stop_voice_call(void *platform, uint32_t vsid __unused)
return ret;
}
+int platform_set_mic_break_det(void *platform __unused, bool enable __unused)
+{
+ return 0;
+}
+
void platform_set_speaker_gain_in_combo(struct audio_device *adev __unused,
snd_device_t snd_device __unused,
bool enable __unused) {
@@ -1398,6 +1403,11 @@ int platform_get_microphones(void *platform __unused,
return -ENOSYS;
}
+bool platform_set_microphone_map(void *platform __unused, snd_device_t in_snd_device __unused,
+ const struct mic_info *info __unused) {
+ return false;
+}
+
int platform_get_active_microphones(void *platform __unused, unsigned int channels __unused,
audio_usecase_t usecase __unused,
struct audio_microphone_characteristic_t *mic_array __unused,