The microphone input from WM8960 Chip is connected to I2S-0. Tinyalsa was correctly configured for sound playing and then the microphone input was added the same way.
Audio HAL did not print any errors and warnings to logs.
Sound/Music from speaker/headphones is working.
The problem is that no data going from microphone. In the logcat logs I see the ‘open input stream’ actions with stream information. Tinymix correctly changed when board is in capture mode.
Where tinycap tool can be found in Android 9 source code for Edge ?
Does tinyalsa have integration with microphone?
Is there a way to debug microphone issues?
The initial topic was related to audio problem using WM8960 Codec.
This tool does not exist in the adb shell (but tinyplay, tinymix, tinypcminfo do exist). But tinycap tool is not a solution. I am just asking about it, because it is related to recording from microphone and probably microphone integration is not ready yet for Android 9. So the main question is:
Does tinyalsa have integration with microphone in Android 9 and how it can be configured?
Fixed by removing mic-det-gpio line from DTS file, adding card name to the hardware/rockchip/audio/tinyalsa_hal/audio_hw.c file. Also, I made a few corrections to wm8960_config.h file, because it contains invalid control names.