From 1c4ee2443d104cc41034e6ed23fc7dcb1845b943 Mon Sep 17 00:00:00 2001 From: Peipeng Zhao Date: Thu, 29 Jun 2017 18:38:27 +0800 Subject: [PATCH] audio: fix audio tdm mic noise and digital mic noise PD#146748: audio capture noise on analog and digital mic Change-Id: Id9820999399d3d933fc055fa45188fc702bba211 Signed-off-by: Peipeng Zhao --- sound/soc/amlogic/auge/pdm.c | 2 -- sound/soc/amlogic/auge/tdm_hw.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/amlogic/auge/pdm.c b/sound/soc/amlogic/auge/pdm.c index 20b244e..93ad66a 100644 --- a/sound/soc/amlogic/auge/pdm.c +++ b/sound/soc/amlogic/auge/pdm.c @@ -438,8 +438,6 @@ static int aml_pdm_dai_prepare( toddr_type = 2; break; case 24: - toddr_type = 3; - break; case 32: toddr_type = 4; break; diff --git a/sound/soc/amlogic/auge/tdm_hw.c b/sound/soc/amlogic/auge/tdm_hw.c index 6cf3b14..06af3d7 100644 --- a/sound/soc/amlogic/auge/tdm_hw.c +++ b/sound/soc/amlogic/auge/tdm_hw.c @@ -270,7 +270,7 @@ void aml_tdm_set_slot( offset = EE_AUDIO_TDMIN_B_CTRL - EE_AUDIO_TDMIN_A_CTRL; reg = EE_AUDIO_TDMIN_A_CTRL + offset * index; aml_audiobus_update_bits(actrl, reg, - 0xf<<20|0x7<<16|0x1f, index<<20|(slot_width-1)); + 0xf<<20|0x1f, index<<20|(slot_width-1)); } void aml_tdm_set_channel_mask( -- 2.7.4