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

Commit a84618b0 authored by Meng Wang's avatar Meng Wang
Browse files

hal: update hardware info for msmnile qrd device

It's using tavil codec on msmnile qrd device, not pahu codec.
update hardware info for tavil codec.

Change-Id: Idac164412df07534288fe03d33cf52a9113fcacb
parent 8b5aa299
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -219,14 +219,6 @@ static const snd_device_t tavil_qrd_variant_devices[] = {
    SND_DEVICE_OUT_VOICE_TTY_HCO_HANDSET,
};

static const snd_device_t pahu_qrd_variant_devices[] = {
    SND_DEVICE_OUT_SPEAKER,
    SND_DEVICE_OUT_VOICE_SPEAKER,
    SND_DEVICE_OUT_HANDSET,
    SND_DEVICE_OUT_VOICE_HANDSET,
    SND_DEVICE_OUT_VOICE_TTY_HCO_HANDSET,
};

static const snd_device_t auto_variant_devices[] = {
    SND_DEVICE_OUT_SPEAKER
};
@@ -433,8 +425,8 @@ static void update_hardware_info_msmnile(struct hardware_info *hw_info, const c
    if (strstr(snd_card_name, "qrd")) {
        strlcpy(hw_info->type, " qrd", sizeof(hw_info->type));
        strlcpy(hw_info->name, "msmnile", sizeof(hw_info->name));
        hw_info->snd_devices = (snd_device_t *)pahu_qrd_variant_devices;
        hw_info->num_snd_devices = ARRAY_SIZE(pahu_qrd_variant_devices);
        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, "-qrd", sizeof(hw_info->dev_extn));
    } else {