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

Commit 23a3bec8 authored by Dhananjay Kumar's avatar Dhananjay Kumar Committed by Gerrit - the friendly Code Review server
Browse files

audio: enable compilation of qahw_api on Android builds

-Fix compilation errors from qahw_api tests and enable
 compilation of qahw_api on Android builds.

Change-Id: Ifc05ea22f0fd9ac0e6f6e9b22a6c593841acc761
parent 86da07bb
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -53,6 +53,7 @@ AUDIO_FEATURE_ENABLED_DEV_ARBI := false
MM_AUDIO_ENABLED_FTM := true
MM_AUDIO_ENABLED_FTM := true
TARGET_USES_QCOM_MM_AUDIO := true
TARGET_USES_QCOM_MM_AUDIO := true
AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
BOARD_SUPPORTS_QAHW := true
##AUDIO_FEATURE_FLAGS
##AUDIO_FEATURE_FLAGS


#Audio Specific device overlays
#Audio Specific device overlays
+1 −0
Original line number Original line Diff line number Diff line
@@ -53,6 +53,7 @@ AUDIO_FEATURE_ENABLED_DEV_ARBI := false
MM_AUDIO_ENABLED_FTM := true
MM_AUDIO_ENABLED_FTM := true
TARGET_USES_QCOM_MM_AUDIO := true
TARGET_USES_QCOM_MM_AUDIO := true
AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
BOARD_SUPPORTS_QAHW := true
##AUDIO_FEATURE_FLAGS
##AUDIO_FEATURE_FLAGS


#Audio Specific device overlays
#Audio Specific device overlays
+1 −0
Original line number Original line Diff line number Diff line
@@ -52,6 +52,7 @@ MM_AUDIO_ENABLED_FTM := true
TARGET_USES_QCOM_MM_AUDIO := true
TARGET_USES_QCOM_MM_AUDIO := true
AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
BOARD_SUPPORTS_QAHW := true
##AUDIO_FEATURE_FLAGS
##AUDIO_FEATURE_FLAGS


#Audio Specific device overlays
#Audio Specific device overlays
+1 −0
Original line number Original line Diff line number Diff line
@@ -55,6 +55,7 @@ MM_AUDIO_ENABLED_FTM := true
TARGET_USES_QCOM_MM_AUDIO := true
TARGET_USES_QCOM_MM_AUDIO := true
AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
BOARD_SUPPORTS_QAHW := true
##AUDIO_FEATURE_FLAGS
##AUDIO_FEATURE_FLAGS


#Audio Specific device overlays
#Audio Specific device overlays
+8 −8
Original line number Original line Diff line number Diff line
@@ -115,27 +115,27 @@
/* MAX SECTORS for sourcetracking feature */
/* MAX SECTORS for sourcetracking feature */
#define MAX_SECTORS 8
#define MAX_SECTORS 8


struct qahw_source_tracking_param {
struct source_tracking_param {
    uint8_t   vad[MAX_SECTORS];
    uint8_t   vad[MAX_SECTORS];
    uint16_t  doa_speech;
    uint16_t  doa_speech;
    uint16_t  doa_noise[3];
    uint16_t  doa_noise[3];
    uint8_t   polar_activity[360];
    uint8_t   polar_activity[360];
};
};


struct qahw_sound_focus_param {
struct sound_focus_param {
    uint16_t  start_angle[MAX_SECTORS];
    uint16_t  start_angle[MAX_SECTORS];
    uint8_t   enable[MAX_SECTORS];
    uint8_t   enable[MAX_SECTORS];
    uint16_t  gain_step;
    uint16_t  gain_step;
};
};


typedef union {
typedef union {
    struct qahw_source_tracking_param st_params;
    struct source_tracking_param st_params;
    struct qahw_sound_focus_param sf_params;
    struct sound_focus_param sf_params;
} qahw_param_payload;
} audio_extn_param_payload;


typedef enum {
typedef enum {
    QAHW_PARAM_SOURCE_TRACK,
    AUDIO_EXTN_PARAM_SOURCE_TRACK,
    QAHW_PARAM_SOUND_FOCUS
    AUDIO_EXTN_PARAM_SOUND_FOCUS
} qahw_param_id;
} audio_extn_param_id;


#endif /* AUDIO_DEFS_H */
#endif /* AUDIO_DEFS_H */
Loading