Skip to content

Commit 05d8795

Browse files
committed
samples: i2s_codec: Enable nxp micfil sample
Enable nxp micfil sample with 'CONFIG_USE_DMIC=y', you can hear the voice played from the on-board micphone. Signed-off-by: Zhaoxiang Jin <[email protected]>
1 parent ee4c77b commit 05d8795

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2025 NXP
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
CONFIG_DMA_TCD_QUEUE_SIZE=4
5+
CONFIG_AUDIO_CODEC_DA7212=y
6+
CONFIG_SAMPLE_FREQ=16000
7+
CONFIG_I2S_INIT_BUFFERS=1
8+
CONFIG_USE_CODEC_CLOCK=y
9+
CONFIG_USE_DMIC=n
10+
CONFIG_USE_DMIC=y
11+
CONFIG_DMIC_CHANNELS=1
12+
CONFIG_EXTRA_BLOCKS=10
13+
CONFIG_SAMPLE_WIDTH=32
14+
CONFIG_BYTES_PER_SAMPLE=4
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
aliases {
9+
i2s-codec-tx = &sai1;
10+
i2s-tx = &sai1;
11+
};
12+
};
13+
14+
&sai1 {
15+
mclk-output;
16+
};
17+
18+
dmic_dev: &micfil {
19+
channel0: micfil-channel@0 {
20+
status = "okay";
21+
};
22+
23+
channel1: micfil-channel@1 {
24+
status = "okay";
25+
};
26+
};

samples/drivers/i2s/i2s_codec/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ tests:
1010
- mimxrt1060_evk/mimxrt1062/qspi
1111
- mimxrt1180_evk/mimxrt1189/cm33
1212
- mimxrt1180_evk/mimxrt1189/cm7
13+
- frdm_mcxn236
1314
harness: console
1415
harness_config:
1516
type: one_line

0 commit comments

Comments
 (0)