From: Peipeng Zhao Date: Thu, 29 Jun 2017 10:38:27 +0000 (+0800) Subject: audio: fix audio tdm mic noise and digital mic noise X-Git-Tag: khadas-vims-v0.9.6-release~3033 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c4ee2443d104cc41034e6ed23fc7dcb1845b943;p=platform%2Fkernel%2Flinux-amlogic.git 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 --- 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(