Skip to content

Commit 208faa9

Browse files
committed
samples: i2s_codec: enable i2s_codec samples for frdm_mcxn236
Enable i2s_codec samples for frdm_mcxn236. With 'CONFIG_USE_DMIC=n', you can hear the sine wave from the codec. Signed-off-by: Zhaoxiang Jin <[email protected]>
1 parent 55ca2f0 commit 208faa9

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright 2025 NXP
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
CONFIG_DMA_TCD_QUEUE_SIZE=4
6+
CONFIG_AUDIO_CODEC_DA7212=y
7+
CONFIG_SAMPLE_FREQ=16000
8+
CONFIG_I2S_INIT_BUFFERS=1
9+
CONFIG_USE_CODEC_CLOCK=y
10+
CONFIG_USE_DMIC=n
11+
CONFIG_DMIC_CHANNELS=1
12+
CONFIG_EXTRA_BLOCKS=10
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* Note: The DA7212 codec is not populated on this board by default.
8+
* Refer to the board MCX_N5XX_EVK to use this sample with the same codec.
9+
*/
10+
11+
/ {
12+
aliases {
13+
i2s-codec-tx = &sai1;
14+
i2s-tx = &sai1;
15+
};
16+
};
17+
18+
&sai1 {
19+
mclk-output;
20+
};

0 commit comments

Comments
 (0)