Commit 7948516
committed
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>1 parent 5f03d4a commit 7948516
1 file changed
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2036 | 2036 | | |
2037 | 2037 | | |
2038 | 2038 | | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
2039 | 2081 | | |
2040 | 2082 | | |
2041 | 2083 | | |
| |||
2343 | 2385 | | |
2344 | 2386 | | |
2345 | 2387 | | |
| 2388 | + | |
2346 | 2389 | | |
2347 | 2390 | | |
2348 | 2391 | | |
| |||
0 commit comments