Hello, I am trying to understand how to set the gain registers (GAINL and GAINR) of the PDM peripheral via the proper high-level Zephyr interface. I am expecting one of the following:
- KConfig options
- Devicetree settings
- Something through the dmic API (zephyr/audio/dmic.h)
As far as I can tell, there is nothing. I am using Zephyr/SDK v2.5.0 installed through the Toolchain Manager and using build configuration nrf5340dk_nrf5340_cpuapp.
I am building using a copy of the samples/drivers/audio/dmic application. I am using the Adafruit 3492 ST MEMS PDM microphone connected using the default pin configuration from the demo.
I have looked all throughout the code. There is nothing that passes through to nrf_pdm_gain_set().
PDM_NRFX_DEVICE() uses NRFX_PDM_DEFAULT_CONFIG(), which sets the gain values to NRF_PDM_GAIN_DEFAULT.
I have looked through the existing DevZone posts and have not seen this question answered adequately.
Again, I am looking for something in the KConfig or in the Zephyr driver APIs that allows me to alter this and am not finding it.
Am I missing something?