Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/ducalex/retro-go into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ducalex committed Aug 3, 2024
2 parents 79513c0 + e9733bd commit 94ca0cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/retro-go/drivers/audio/i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ static bool driver_init(int device, int sample_rate)
if (ret == ESP_OK)
{
ret = i2s_set_pin(I2S_NUM_0, &(i2s_pin_config_t) {
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 0) // mck_io_num isn't present in esp-idf <= 4.3
.mck_io_num = GPIO_NUM_NC, // must be initialized to prevent it from defaulting to (GPIO_NUM_)0, which would interfere with other uses of that pin
#endif
.bck_io_num = RG_GPIO_SND_I2S_BCK,
.ws_io_num = RG_GPIO_SND_I2S_WS,
.data_out_num = RG_GPIO_SND_I2S_DATA,
Expand Down

0 comments on commit 94ca0cd

Please sign in to comment.