mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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>
This commit is contained in:
parent
c0133e3b02
commit
27becea06e
1 changed files with 2 additions and 0 deletions
|
@ -123,6 +123,7 @@
|
|||
#define AFE_TDM_CON1_WLEN_32BIT (0x2 << 8)
|
||||
#define AFE_TDM_CON1_MSB_ALIGNED (0x1 << 4)
|
||||
#define AFE_TDM_CON1_1_BCK_DELAY (0x1 << 3)
|
||||
#define AFE_TDM_CON1_LRCK_INV (0x1 << 2)
|
||||
#define AFE_TDM_CON1_BCK_INV (0x1 << 1)
|
||||
#define AFE_TDM_CON1_EN (0x1 << 0)
|
||||
|
||||
|
@ -449,6 +450,7 @@ static int mtk_afe_hdmi_prepare(struct snd_pcm_substream *substream,
|
|||
runtime->rate * runtime->channels * 32);
|
||||
|
||||
val = AFE_TDM_CON1_BCK_INV |
|
||||
AFE_TDM_CON1_LRCK_INV |
|
||||
AFE_TDM_CON1_1_BCK_DELAY |
|
||||
AFE_TDM_CON1_MSB_ALIGNED | /* I2S mode */
|
||||
AFE_TDM_CON1_WLEN_32BIT |
|
||||
|
|
Loading…
Reference in a new issue