Skip to content

Commit

Permalink
use master in mt7688 i2s,codec is slave
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanchenmang committed May 25, 2018
1 parent c3b7485 commit 32f4371
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion target/linux/ramips/patches-3.18/500-alsa.patch
Expand Up @@ -4466,7 +4466,7 @@
+#endif
+
+//#define CONFIG_I2S_MS_CTRL
+//#define CONFIG_I2S_MS_MODE
+#define CONFIG_I2S_MS_MODE
+//#define memory_test
+
+#if defined (CONFIG_ARCH_MT7623)
Expand Down
@@ -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

0 comments on commit 32f4371

Please sign in to comment.