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
diff --git a/hal/msm8960/platform.c b/hal/msm8960/platform.c
index c509b45..8793ae3 100644
--- a/hal/msm8960/platform.c
+++ b/hal/msm8960/platform.c
@@ -610,6 +610,11 @@
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 @@
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,