Skip to content

Commit 93d967b

Browse files
committed
samples: i2s_codec: Enable nxp micfil test
Enable nxp micfil test 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 6704f0c commit 93d967b

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

samples/drivers/i2s/i2s_codec/boards/frdm_mcxn236.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ CONFIG_AUDIO_CODEC_DA7212=y
77
CONFIG_SAMPLE_FREQ=16000
88
CONFIG_I2S_INIT_BUFFERS=1
99
CONFIG_USE_CODEC_CLOCK=y
10-
CONFIG_USE_DMIC=n
10+
CONFIG_USE_DMIC=y
1111
CONFIG_DMIC_CHANNELS=1
1212
CONFIG_EXTRA_BLOCKS=10
13+
CONFIG_SAMPLE_WIDTH=32
14+
CONFIG_BYTES_PER_SAMPLE=4

samples/drivers/i2s/i2s_codec/boards/frdm_mcxn236.overlay

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,13 @@
1414
&sai1 {
1515
mclk-output;
1616
};
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)