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

Commit cf877730 authored by Sidipotu Ashok's avatar Sidipotu Ashok Committed by Gerrit - the friendly Code Review server
Browse files

hal: limit 44.1 Native to tasha codecs

44.1 Native is enabled for all the external codecs, limit it to
tasha & tasha lite codecs.

Change-Id: Ifff5ff621dd0a043f136f44bb9507ec190b74507
CRs-Fixed: 906352
parent 2874593b
Loading
Loading
Loading
Loading
+21 −1
Original line number Diff line number Diff line
@@ -1625,6 +1625,26 @@ acdb_init_fail:
    my_data->current_backend_cfg[HEADPHONE_44_1_BACKEND].samplerate_mixer_ctl =
        strdup("SLIM_5_RX SampleRate");


    if (platform_get_native_support()) {

        if (!strncmp(snd_card_name, "msm8976-tasha-snd-card",
            sizeof("msm8976-tasha-snd-card")) ||
            !strncmp(snd_card_name, "msm8976-tashalite-snd-card",
            sizeof("msm8976-tashalite-snd-card"))) {
            /* do nothing */
        }
        else {
            platform_set_native_support(false);
        }
    }

    ALOGD("native: native audio: %s for sound card %s",
        (platform_get_native_support() ? "enabled" : "disabled"),
        snd_card_name);



    my_data->edid_info = NULL;
    return my_data;
}
@@ -1914,7 +1934,7 @@ int platform_set_native_support(bool codec_support)
{
    na_props.platform_na_prop_enabled = na_props.ui_na_prop_enabled
        = codec_support;
    ALOGD("%s: na_props.platform_na_prop_enabled: %d", __func__,
    ALOGV("%s: na_props.platform_na_prop_enabled: %d", __func__,
           na_props.platform_na_prop_enabled);
    return 0;
}