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

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

Merge "hal: update hw_info with tomtom sound card"

parents bc49f720 b4dbbbe6
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -128,13 +128,17 @@ static void update_hardware_info_8084(struct hardware_info *hw_info, const char
{
    if (!strcmp(snd_card_name, "apq8084-taiko-mtp-snd-card") ||
        !strncmp(snd_card_name, "apq8084-taiko-i2s-mtp-snd-card",
                 sizeof("apq8084-taiko-i2s-mtp-snd-card"))) {
                 sizeof("apq8084-taiko-i2s-mtp-snd-card")) ||
        !strncmp(snd_card_name, "apq8084-tomtom-mtp-snd-card",
                 sizeof("apq8084-tomtom-mtp-snd-card"))) {
        strlcpy(hw_info->type, "mtp", sizeof(hw_info->type));
        strlcpy(hw_info->name, "apq8084", sizeof(hw_info->name));
        hw_info->snd_devices = NULL;
        hw_info->num_snd_devices = 0;
        strlcpy(hw_info->dev_extn, "", sizeof(hw_info->dev_extn));
    } else if (!strcmp(snd_card_name, "apq8084-taiko-cdp-snd-card")) {
    } else if ((!strcmp(snd_card_name, "apq8084-taiko-cdp-snd-card")) ||
        !strncmp(snd_card_name, "apq8084-tomtom-cdp-snd-card",
                 sizeof("apq8084-tomtom-cdp-snd-card"))) {
        strlcpy(hw_info->type, " cdp", sizeof(hw_info->type));
        strlcpy(hw_info->name, "apq8084", sizeof(hw_info->name));
        hw_info->snd_devices = (snd_device_t *)taiko_apq8084_CDP_variant_devices;
@@ -256,6 +260,8 @@ void *hw_info_init(const char *snd_card_name)
    struct hardware_info *hw_info;

    hw_info = malloc(sizeof(struct hardware_info));
    hw_info->snd_devices = NULL;
    hw_info->num_snd_devices = 0;

    if(strstr(snd_card_name, "msm8974") ||
              strstr(snd_card_name, "apq8074")) {