Skip to content

Commit 1c9840c

Browse files
aviscontiMaureenHelm
authored andcommitted
samples/96b_argonkey: microphone: (FIX) stop dmic trigger
Stop the trigger (DMIC_TRIGGER_STOP) after acquiring microphone data Signed-off-by: Armando Visconti <[email protected]>
1 parent 18e28c4 commit 1c9840c

File tree

1 file changed

+6
-0
lines changed
  • samples/boards/96b_argonkey/microphone/src

1 file changed

+6
-0
lines changed

samples/boards/96b_argonkey/microphone/src/main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ void main(void)
154154

155155
signal_sampling_stopped();
156156

157+
ret = dmic_trigger(mic_dev, DMIC_TRIGGER_STOP);
158+
if (ret < 0) {
159+
printk("microphone stop trigger error\n");
160+
return;
161+
}
162+
157163
/* print PCM stream */
158164
#ifdef PCM_OUTPUT_IN_ASCII
159165
printk("-- start\n");

0 commit comments

Comments
 (0)