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 <peipeng.zhao@amlogic.com>
This commit is contained in:
Peipeng Zhao
2017-06-29 18:38:27 +08:00
committed by Jianxin Pan
parent 51153256b0
commit 1c4ee2443d
2 changed files with 1 additions and 3 deletions

View File

@@ -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;

View File

@@ -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(