Skip to content

Commit 4dc0eca

Browse files
mstasiaknordicmasz-nordic
authored andcommitted
applications: nrf5340_audio: add prescaler structure
Added prescaler substructure to I2S configuration. Signed-off-by: Michał Stasiak <[email protected]>
1 parent 71d452d commit 4dc0eca

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

applications/nrf5340_audio/src/modules/audio_i2s.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ static nrfx_i2s_config_t cfg = {
4646
.mode = NRF_I2S_MODE_MASTER,
4747
.format = NRF_I2S_FORMAT_I2S,
4848
.alignment = NRF_I2S_ALIGN_LEFT,
49-
.ratio = I2S_RATIO,
50-
.mck_setup = 0x66666000,
49+
.prescalers = {
50+
.ratio = I2S_RATIO,
51+
.mck_setup = 0x66666000,
52+
.enable_bypass = false,
53+
},
5154
#if (CONFIG_AUDIO_BIT_DEPTH_16)
5255
.sample_width = NRF_I2S_SWIDTH_16BIT,
5356
#elif (CONFIG_AUDIO_BIT_DEPTH_32)
@@ -57,7 +60,6 @@ static nrfx_i2s_config_t cfg = {
5760
#endif /* (CONFIG_AUDIO_BIT_DEPTH_16) */
5861
.channels = NRF_I2S_CHANNELS_STEREO,
5962
.clksrc = NRF_I2S_CLKSRC_ACLK,
60-
.enable_bypass = false,
6163
};
6264

6365
static i2s_blk_comp_callback_t i2s_blk_comp_callback;

0 commit comments

Comments
 (0)