hal: Add Mic Direction API
Add mic direction api.
Bug: 125191693
Test: verified compilation
Change-Id: I74263e8b638b3ddc7020d6510a9408b8a455ff07
(cherry picked from commit 57530d5cfffdef64eaa6ee6af013bf38cf0ed509)
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 9ec04f9..05e4fa0 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -4333,6 +4333,22 @@
return ret;
}
+static int in_set_microphone_direction(const struct audio_stream_in *stream,
+ audio_microphone_direction_t dir) {
+ (void)stream;
+ (void)dir;
+ ALOGVV("%s", __func__);
+ return -ENOSYS;
+}
+
+static int in_set_microphone_field_dimension(const struct audio_stream_in *stream, float zoom) {
+ (void)stream;
+ (void)zoom;
+ ALOGVV("%s", __func__);
+ return -ENOSYS;
+}
+
+
static bool stream_get_parameter_channels(struct str_parms *query,
struct str_parms *reply,
audio_channel_mask_t *supported_channel_masks) {
@@ -7980,6 +7996,8 @@
in->stream.get_input_frames_lost = in_get_input_frames_lost;
in->stream.get_capture_position = in_get_capture_position;
in->stream.get_active_microphones = in_get_active_microphones;
+ in->stream.set_microphone_direction = in_set_microphone_direction;
+ in->stream.set_microphone_field_dimension = in_set_microphone_field_dimension;
in->device = devices;
in->source = source;