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

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

hal: Avoid stereo device selection for target with single speaker

Stereo flag is true by default, speaker device in selection
of VOICE_SPEAKER_2 during call for target with single speaker.
Fix this by set stereo flag to false for target with single
speaker to ensure proper speaker device is selected.

Change-Id: I4733270abbbce1fba976e191abef84e0710bdfca
parent 69b865c7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -390,6 +390,8 @@ 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, "-hdk", sizeof(hw_info->dev_extn));
    } else if (!strcmp(snd_card_name, "sdm845-qvr-tavil-snd-card")) {
        hw_info->is_stereo_spkr = false;
    } else {
        ALOGW("%s: Not a sdm845 device", __func__);
    }