diff options
author | Tzung-Bi Shih <tzungbi@google.com> | 2021-01-20 16:08:48 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-01-20 18:46:50 +0000 |
commit | df369921d726410a093de48d33e605fd4e0ee33c (patch) | |
tree | 3636f190e2764cde23a0dfc1ec110f080550cca5 | |
parent | 12295ef97078db19683d8c0a23abc6f633ef0e23 (diff) | |
download | linux-stable-df369921d726410a093de48d33e605fd4e0ee33c.tar.gz linux-stable-df369921d726410a093de48d33e605fd4e0ee33c.tar.bz2 linux-stable-df369921d726410a093de48d33e605fd4e0ee33c.zip |
ASoC: mediatek: mt8192: change mclk_multiple of TDM from 128 to 512
mclk = rate * mclk_multiple
bclk = rate * channel * sample_width
If TDM outputs 8 channels and 32 bits, bclk will be greater than mclk.
Changes the ratio from 128 to 512.
Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20210120080850.699354-4-tzungbi@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/mediatek/mt8192/mt8192-dai-tdm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/mediatek/mt8192/mt8192-dai-tdm.c b/sound/soc/mediatek/mt8192/mt8192-dai-tdm.c index 8383536b7ae0..f5de1d769679 100644 --- a/sound/soc/mediatek/mt8192/mt8192-dai-tdm.c +++ b/sound/soc/mediatek/mt8192/mt8192-dai-tdm.c @@ -738,7 +738,7 @@ static struct mtk_afe_tdm_priv *init_tdm_priv_data(struct mtk_base_afe *afe) if (!tdm_priv) return NULL; - tdm_priv->mclk_multiple = 128; + tdm_priv->mclk_multiple = 512; tdm_priv->bck_id = MT8192_I2S4_BCK; tdm_priv->mclk_id = MT8192_I2S4_MCK; tdm_priv->id = MT8192_DAI_TDM; |