mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04: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 <[email protected]> Signed-off-by: Mark Brown <[email protected]>
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