Merge branch 'feature/i2s_support_mclk_input' into 'master'

feat(i2s): supported external clock source input

Closes IDF-7889

See merge request espressif/esp-idf!24942
This commit is contained in:
Kevin (Lao Kaiyao)
2023-08-16 19:07:22 +08:00
30 changed files with 289 additions and 184 deletions

View File

@@ -207,6 +207,9 @@ static inline void i2s_ll_tx_clk_set_src(i2s_dev_t *hw, i2s_clock_src_t src)
case I2S_CLK_SRC_PLL_160M:
hw->tx_clkm_conf.tx_clk_sel = 2;
break;
case I2S_CLK_SRC_EXTERNAL:
hw->tx_clkm_conf.tx_clk_sel = 3;
break;
default:
HAL_ASSERT(false && "unsupported clock source");
break;
@@ -229,6 +232,9 @@ static inline void i2s_ll_rx_clk_set_src(i2s_dev_t *hw, i2s_clock_src_t src)
case I2S_CLK_SRC_PLL_160M:
hw->rx_clkm_conf.rx_clk_sel = 2;
break;
case I2S_CLK_SRC_EXTERNAL:
hw->rx_clkm_conf.rx_clk_sel = 3;
break;
default:
HAL_ASSERT(false && "unsupported clock source");
break;