Skip to content

Commit ff6cbd7

Browse files
committed
i2s: remove deprecated-declarations warnings
1 parent 299e970 commit ff6cbd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/src/chip/i2s.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ static i2s_config_t i2s_output_config = {
1919
| I2S_MODE_RX
2020
#endif
2121
,
22-
.communication_format = I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB,
22+
.communication_format = I2S_COMM_FORMAT_STAND_I2S,
2323
.use_apll = 1, // Use APLL
2424
.sample_rate = 44100,
2525
.bits_per_sample = I2S_BITS_PER_SAMPLE_16BIT,
@@ -36,7 +36,7 @@ static i2s_config_t i2s_input_config = {
3636
| I2S_MODE_PDM
3737
#endif
3838
,
39-
.communication_format = I2S_COMM_FORMAT_I2S_MSB | I2S_COMM_FORMAT_I2S,
39+
.communication_format = I2S_COMM_FORMAT_STAND_I2S,
4040
.use_apll = 0, // Use PLL_D2
4141
.sample_rate = 44100,
4242
.bits_per_sample = I2S_BITS_PER_SAMPLE_16BIT,

0 commit comments

Comments
 (0)