samples/96b_argonkey: microphone: (FIX) stop dmic trigger

Stop the trigger (DMIC_TRIGGER_STOP) after acquiring microphone data

Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
Armando Visconti 2019-10-15 10:39:27 +02:00 committed by Maureen Helm
commit 1c9840c420

View file

@ -154,6 +154,12 @@ void main(void)
signal_sampling_stopped();
ret = dmic_trigger(mic_dev, DMIC_TRIGGER_STOP);
if (ret < 0) {
printk("microphone stop trigger error\n");
return;
}
/* print PCM stream */
#ifdef PCM_OUTPUT_IN_ASCII
printk("-- start\n");