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

Commit 5a8a6257 authored by Linux Build Service Account's avatar Linux Build Service Account
Browse files

Promotion of audio-userspace.lnx.2.1.c1-00015.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1086073   I855ec6375e9c3d51c509f5ead5aeb062ff1c4c79   audio: configs: Enable Dolby feature
1086073   Idcbbbdd0dfc769c46c2c23c32a0cd3143e6d9a83   hal: handle CLANG errors for Dolby
1086073   I5e5bb6b8544f5d5822b235167bd7fc1df09a0c1c   Add Dolby cflags to policy_hal/Android.mk
1084543   Iea1c4a21735e893aeded95b980044ec0861a7ea8   Fix potential overflow in Visualizer effect

Change-Id: I8874aed917d7fdcc74469a75ab211b7a3b2270b5
CRs-Fixed: 1084543, 1086073
parents f5b19d1a 8c304e42
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ MM_AUDIO_ENABLED_FTM := true
MM_AUDIO_ENABLED_SAFX := true
TARGET_USES_QCOM_MM_AUDIO := true
AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
#AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
##AUDIO_FEATURE_FLAGS
+2 −1
Original line number Diff line number Diff line
@@ -46,7 +46,8 @@ MM_AUDIO_ENABLED_FTM := true
MM_AUDIO_ENABLED_SAFX := true
TARGET_USES_QCOM_MM_AUDIO := true
AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
#AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true

AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true

+2 −2
Original line number Diff line number Diff line
@@ -46,8 +46,8 @@ MM_AUDIO_ENABLED_FTM := true
MM_AUDIO_ENABLED_SAFX := true
TARGET_USES_QCOM_MM_AUDIO := true
AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
#AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
#DOLBY_DDP := true
AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true

AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
##AUDIO_FEATURE_FLAGS
+6 −10
Original line number Diff line number Diff line
@@ -484,9 +484,7 @@ static struct ds2_extn_module ds2extnmod = {
};

int audio_extn_dap_hal_init(int snd_card) {
    char c_dmid[128] = {0};
    void *handle = NULL;
    int i_dmid, ret = -EINVAL;
    int ret = -EINVAL;
    dap_hal_device_be_id_map_t device_be_id_map;

    ALOGV("%s: opening DAP HAL lib\n", __func__);
@@ -532,9 +530,7 @@ int audio_extn_dap_hal_deinit() {
void audio_extn_dolby_ds2_set_endpoint(struct audio_device *adev) {
    struct listnode *node;
    struct audio_usecase *usecase;
    struct mixer_ctl *ctl;
    const char *mixer_ctl_name = "DS1 DAP Endpoint";
    int endpoint = 0, ret;
    int endpoint = 0;
    bool send = false;

    list_for_each(node, &adev->usecase_list) {
@@ -587,7 +583,7 @@ int audio_extn_ds2_enable(struct audio_device *adev) {
    return 0;
}

int audio_extn_dolby_set_dap_bypass(struct audio_device *adev, int state) {
int audio_extn_dolby_set_dap_bypass(struct audio_device *adev __unused, int state) {

    ALOGV("%s: state %d", __func__, state);
    if (ds2extnmod.dap_hal_set_hw_info) {
@@ -599,12 +595,12 @@ int audio_extn_dolby_set_dap_bypass(struct audio_device *adev, int state) {
    return 0;
}

void audio_extn_dolby_set_license(struct audio_device *adev)
void audio_extn_dolby_set_license(struct audio_device *adev __unused)
{
    int i_key=0;
    char c_key[128] = {0};
    char c_dmid[128] = {0};
    int i_dmid, ret = -EINVAL;
    int i_dmid;
    struct dolby_param_license dolby_license;

#ifdef DOLBY_ACDB_LICENSE
@@ -631,7 +627,7 @@ void audio_extn_dolby_set_license(struct audio_device *adev)
void audio_extn_ds2_set_parameters(struct audio_device *adev,
                                   struct str_parms *parms)
{
    int val, ret;
    int ret;
    char value[32]={0};

    ret = str_parms_get_str(parms, AUDIO_PARAMETER_KEY_SND_CARD_STATUS, value,
+2 −2
Original line number Diff line number Diff line
@@ -749,8 +749,8 @@ static int msm_device_to_be_id_internal_codec [][NO_COLS] = {
static int msm_device_to_be_id_external_codec [][NO_COLS] = {
       {AUDIO_DEVICE_OUT_EARPIECE                       ,       2},
       {AUDIO_DEVICE_OUT_SPEAKER                        ,       2},
       {AUDIO_DEVICE_OUT_WIRED_HEADSET                  ,       2},
       {AUDIO_DEVICE_OUT_WIRED_HEADPHONE                ,       2},
       {AUDIO_DEVICE_OUT_WIRED_HEADSET                  ,       41},
       {AUDIO_DEVICE_OUT_WIRED_HEADPHONE                ,       41},
       {AUDIO_DEVICE_OUT_BLUETOOTH_SCO                  ,       11},
       {AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET          ,       11},
       {AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT           ,       11},
Loading