audio: fix audio tdm mic noise and digital mic noise
authorPeipeng Zhao <peipeng.zhao@amlogic.com>
Thu, 29 Jun 2017 10:38:27 +0000 (18:38 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 29 Jun 2017 12:00:10 +0000 (05:00 -0700)
PD#146748: audio capture noise on analog and digital mic

Change-Id: Id9820999399d3d933fc055fa45188fc702bba211
Signed-off-by: Peipeng Zhao <peipeng.zhao@amlogic.com>
sound/soc/amlogic/auge/pdm.c
sound/soc/amlogic/auge/tdm_hw.c

index 20b244e..93ad66a 100644 (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;
index 6cf3b14..06af3d7 100644 (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(