Have used the sample code (Dmic) and generated the output.
the default configurations
overlay:
prj.conf:
#define MAX_SAMPLE_RATE 16000
have changed the MAX_SAMPLE_RATE to 2000
the output observed:
*** Booting Zephyr OS build 28a3fca7da5c ***
[00:00:00.543,640] <inf> dmic_sample: DMIC sample
[00:00:00.543,670] <inf> dmic_sample: PCM output rate: 2000, channels: 1
[00:00:00.543,701] <err> dmic_nrfx_pdm: Cannot find suitable PDM clock configuration.
[00:00:00.543,701] <err> dmic_sample: Failed to configure the driver: -22
is there any way to configure PCM with sampling frequency to 2khz? and how?
2) if PCM is 2KHz. what should be the PDM clock configuration?