Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add get_microphones() and get_active_microphone() stub functions #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Sep 29, 2020

  1. audio: add get_micropones() function

    The Google VTS tests for Android VtsHalAudioV5_0Target(GetMicrophonesTest)
    needs to use pointer of function (*get_micropones)() which is not initialized
    and function adev_get_microphones() required for initialization witch is
    not implemented in tinyhal.
    
    The analysis of the implementation of the audio hal for Qualcomm
    (https://android.googlesource.com/platform/hardware/qcom/audio/+/refs/heads/
    master/hal/audio_hw.c) and Goldfish
    (https://android.googlesource.com/device/generic/goldfish/+/dc18a59%5E%21/)
    have been made. The implementation similar to Goldfish(stub) has been chosen as
    basic.
    
    Function adev_get_microphones() was implemented as stub function that will
    expand in the future. This function fill array audio_microphone_characteristic_t
    with default microphone information.
    
    Signed-off-by: Anton Dehtiarov <anton.dehtiarov@globallogic.com>
    AntonDehtiarov committed Sep 29, 2020
    Configuration menu
    Copy the full SHA
    bfb0a28 View commit details
    Browse the repository at this point in the history
  2. audio: add get_active_micropones() function

    The Google VTS tests for Android VtsHalAudioV5_0Target(GetMicrophonesTest)
    needs to use pointer of function (*get_active_micropones)() which is not
    initialized and function in_get_active_microphones() required for initialization
    witch is not implemented in tinyhal.
    
    The analysis of the implementation of the audio hal for Qualcomm
    (https://android.googlesource.com/platform/hardware/qcom/audio/+/refs/heads/
    master/hal/audio_hw.c) and Goldfish
    (https://android.googlesource.com/device/generic/goldfish/+/dc18a59%5E%21/)
    have been made. The implementation similar to Goldfish(stub) has been chosen as
    basic.
    
    Function in_get_active_microphones() was implemented as stub function that will
    expand in the future. This function fill array audio_microphone_characteristic_t
    with default microphone information.
    
    Signed-off-by: Anton Dehtiarov <anton.dehtiarov@globallogic.com>
    AntonDehtiarov committed Sep 29, 2020
    Configuration menu
    Copy the full SHA
    b84e993 View commit details
    Browse the repository at this point in the history