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

Commit 69b865c7 authored by Meng Wang's avatar Meng Wang Committed by Gerrit - the friendly Code Review server
Browse files

hal: Add support for handset and speaker device of SDM845 HDK



Identify SDM845 HDK devices to select HDK specific handset and speaker
device path.

Change-Id: I592ae5f61e631cdb0ed1347f0ba84c015d0b1699
Signed-off-by: default avatarMeng Wang <mwang@codeaurora.org>
parent 336f8626
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -383,6 +383,13 @@ static void update_hardware_info_sdm845(struct hardware_info *hw_info, const ch
        hw_info->num_snd_devices = ARRAY_SIZE(tavil_qrd_variant_devices);
        hw_info->is_stereo_spkr = false;
        strlcpy(hw_info->dev_extn, "-qrd", sizeof(hw_info->dev_extn));
    } else if (!strcmp(snd_card_name, "sdm845-tavil-hdk-snd-card")) {
        strlcpy(hw_info->type, " hdk", sizeof(hw_info->type));
        strlcpy(hw_info->name, "sdm845", sizeof(hw_info->name));
        hw_info->snd_devices = (snd_device_t *)tavil_qrd_variant_devices;
        hw_info->num_snd_devices = ARRAY_SIZE(tavil_qrd_variant_devices);
        hw_info->is_stereo_spkr = false;
        strlcpy(hw_info->dev_extn, "-hdk", sizeof(hw_info->dev_extn));
    } else {
        ALOGW("%s: Not a sdm845 device", __func__);
    }