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

Commit 01f806a2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: Make internal codec flag true for SDM670"

parents 54a828cb 999cf723
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -993,7 +993,9 @@ static void update_codec_type_and_interface(struct platform_data * my_data, cons
     if (!strncmp(snd_card_name, "sdm660-snd-card-skush",
                  sizeof("sdm660-snd-card-skush")) ||
         !strncmp(snd_card_name, "sdm660-snd-card-skush",
                  sizeof("sdm660-snd-card-mtp"))) {
                  sizeof("sdm660-snd-card-mtp"))   ||
         !strncmp(snd_card_name, "sdm670-mtp-snd-card",
                   sizeof("sdm670-mtp-snd-card"))) {
         ALOGI("%s: snd_card_name: %s",__func__,snd_card_name);
         my_data->is_internal_codec = true;
         my_data->is_slimbus_interface = false;
@@ -1970,6 +1972,7 @@ void *platform_init(struct audio_device *adev)
                            MIXER_XML_PATH_AUXPCM) == -ENOSYS)
                adev->audio_route = audio_route_init(adev->snd_card,
                                               mixer_xml_file);
                update_codec_type_and_interface(my_data, snd_card_name);
        } else {
            ALOGD("%s: Loading default mixer file", __func__);
            if (audio_extn_read_xml(adev, adev->snd_card, MIXER_XML_DEFAULT_PATH,