Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de0ea45c authored by Banajit Goswami's avatar Banajit Goswami
Browse files

hal: add support for AANC on handset for APQ8084

For APQ8084 voice call use-case, Adaptive ANC (AANC) is used
by sending an appropriate flag to CSD for enabled AANC.

Change-Id: Ifc4609c16ef3c5d905628ff22853fc44fd81a73a
parent 394e152d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@

/* Flags used to initialize acdb_settings variable that goes to ACDB library */
#define NONE_FLAG            0x00000000
#define ANC_FLAG	     0x00000001
#define DMIC_FLAG            0x00000002
#define QMIC_FLAG            0x00000004
#define TTY_MODE_OFF         0x00000010
+1 −0
Original line number Diff line number Diff line
@@ -1422,6 +1422,7 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d
            if (out_device & AUDIO_DEVICE_OUT_EARPIECE &&
                audio_extn_should_use_handset_anc(channel_count)) {
                snd_device = SND_DEVICE_IN_AANC_HANDSET_MIC;
                adev->acdb_settings |= ANC_FLAG;
            } else if (my_data->fluence_type == FLUENCE_NONE ||
                my_data->fluence_in_voice_call == false) {
                snd_device = SND_DEVICE_IN_HANDSET_MIC;