diff options
author | PC Liao <pc.liao@mediatek.com> | 2016-04-26 02:30:18 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-04-26 06:25:51 -0400 |
commit | 27becea06e73c96b825ecddd8b3a59642364514a (patch) | |
tree | db0cea2d64ab79ac85e8068c4a67d15c7273ba79 | |
parent | c0133e3b0265341e7d62e150df18709af33c3a30 (diff) |
ASoC: mediatek: HDMI audio LR channel swapped
Because LRCK of TDM use High to Low as default setting, this patch
changes the TDM setting to inverse LRCK.
Signed-off-by: PC Liao <pc.liao@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/mediatek/mtk-afe-pcm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/mediatek/mtk-afe-pcm.c b/sound/soc/mediatek/mtk-afe-pcm.c index f1c58a2c12fb..2b5df2ef51a3 100644 --- a/sound/soc/mediatek/mtk-afe-pcm.c +++ b/sound/soc/mediatek/mtk-afe-pcm.c | |||
@@ -123,6 +123,7 @@ | |||
123 | #define AFE_TDM_CON1_WLEN_32BIT (0x2 << 8) | 123 | #define AFE_TDM_CON1_WLEN_32BIT (0x2 << 8) |
124 | #define AFE_TDM_CON1_MSB_ALIGNED (0x1 << 4) | 124 | #define AFE_TDM_CON1_MSB_ALIGNED (0x1 << 4) |
125 | #define AFE_TDM_CON1_1_BCK_DELAY (0x1 << 3) | 125 | #define AFE_TDM_CON1_1_BCK_DELAY (0x1 << 3) |
126 | #define AFE_TDM_CON1_LRCK_INV (0x1 << 2) | ||
126 | #define AFE_TDM_CON1_BCK_INV (0x1 << 1) | 127 | #define AFE_TDM_CON1_BCK_INV (0x1 << 1) |
127 | #define AFE_TDM_CON1_EN (0x1 << 0) | 128 | #define AFE_TDM_CON1_EN (0x1 << 0) |
128 | 129 | ||
@@ -449,6 +450,7 @@ static int mtk_afe_hdmi_prepare(struct snd_pcm_substream *substream, | |||
449 | runtime->rate * runtime->channels * 32); | 450 | runtime->rate * runtime->channels * 32); |
450 | 451 | ||
451 | val = AFE_TDM_CON1_BCK_INV | | 452 | val = AFE_TDM_CON1_BCK_INV | |
453 | AFE_TDM_CON1_LRCK_INV | | ||
452 | AFE_TDM_CON1_1_BCK_DELAY | | 454 | AFE_TDM_CON1_1_BCK_DELAY | |
453 | AFE_TDM_CON1_MSB_ALIGNED | /* I2S mode */ | 455 | AFE_TDM_CON1_MSB_ALIGNED | /* I2S mode */ |
454 | AFE_TDM_CON1_WLEN_32BIT | | 456 | AFE_TDM_CON1_WLEN_32BIT | |