Skip to content

Commit

Permalink
fix merge "ASoC: rockchip: i2s-tdm: Fix trcm mode by setting clock on…
Browse files Browse the repository at this point in the history
… right mclk"
  • Loading branch information
scpcom committed Jul 21, 2024
1 parent d678cb7 commit ac4b082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/rockchip/rockchip_i2s_tdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,9 +883,9 @@ static int rockchip_i2s_tdm_hw_params(struct snd_pcm_substream *substream,
if (i2s_tdm->is_master_mode) {
struct clk *mclk;

if (i2s_tdm->clk_trcm == TRCM_TX) {
if (i2s_tdm->clk_trcm == I2S_CKR_TRCM_TXONLY) {
mclk = i2s_tdm->mclk_tx;
} else if (i2s_tdm->clk_trcm == TRCM_RX) {
} else if (i2s_tdm->clk_trcm == I2S_CKR_TRCM_RXONLY) {
mclk = i2s_tdm->mclk_rx;
} else if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
mclk = i2s_tdm->mclk_tx;
Expand Down

0 comments on commit ac4b082

Please sign in to comment.