Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use master in mt7688 i2s,codec is slave
- Loading branch information
yuanchenmang
committed
May 25, 2018
1 parent
c3b7485
commit 32f4371
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
target/linux/ramips/patches-3.18/511-MT7688_I2S-fix-sound-noise-when-do-pause.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From 523e80835ddd4072e1ec96113f710a825ee66042 Mon Sep 17 00:00:00 2001 | ||
From: Pillar Zuo <zuobaozhu@gmail.com> | ||
Date: Tue, 25 Oct 2016 02:22:25 -0700 | ||
Subject: [PATCH] MT7688_I2S: fix sound noise when do pause | ||
|
||
Signed-off-by: Pillar Zuo <zuobaozhu@gmail.com> | ||
--- | ||
sound/soc/mtk/i2s_ctrl.c | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/sound/soc/mtk/i2s_ctrl.c b/sound/soc/mtk/i2s_ctrl.c | ||
index eed7306..14d0829 100644 | ||
--- a/sound/soc/mtk/i2s_ctrl.c | ||
+++ b/sound/soc/mtk/i2s_ctrl.c | ||
@@ -2311,8 +2311,8 @@ void i2s_dma_tx_handler(u32 dma_ch) | ||
{ | ||
if(!pi2s_config->bTrigger[STREAM_PLAYBACK]){ | ||
MSG("trigger stop: rIdx:%d widx:%d\n", pi2s_config->tx_r_idx,pi2s_config->tx_w_idx); | ||
- //i2s_dma_tx_transf_zero(pi2s_config, dma_ch); | ||
- i2s_dma_tx_transf_data(pi2s_config, dma_ch); | ||
+ i2s_dma_tx_transf_zero(pi2s_config, dma_ch); | ||
+ //i2s_dma_tx_transf_data(pi2s_config, dma_ch); | ||
if(pi2s_config->bPreTrigger[STREAM_PLAYBACK]){ | ||
/* mtk04880 commented: | ||
* for corner case, there are cases which ALSA Trigger stop before disabling DMA. | ||
-- | ||
1.9.1 | ||
|