Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57530d5c authored by Paul McLean's avatar Paul McLean
Browse files

Adding Audio HAL V5: Direction API

Bug: 119137468
Test: With testbed app
Change-Id: I74263e8b638b3ddc7020d6510a9408b8a455ff07
parent 52abcb20
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -4205,6 +4205,21 @@ static int adev_get_microphones(const struct audio_hw_device *dev,
    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 int adev_open_output_stream(struct audio_hw_device *dev,
                                   audio_io_handle_t handle,
                                   audio_devices_t devices,
@@ -5132,6 +5147,8 @@ static int adev_open_input_stream(struct audio_hw_device *dev,
    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;