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

Commit bb15d174 authored by Yamit Mehta's avatar Yamit Mehta Committed by Tom Cherry
Browse files

hal: msm8916: Add correct HFP Tx mute mixer controller

Add correct HFP mixer controller for mute.

Change-Id: I5a845b17765fabae5bee45f066cbea3edc5992c4
parent ed0c3b64
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1367,12 +1367,10 @@ int platform_set_mic_mute(void *platform, bool state)
    struct mixer_ctl *ctl;
    const char *mixer_ctl_name = "Voice Tx Mute";
    int ret = 0;
    uint32_t set_values[ ] = {0,
                              ALL_SESSION_VSID,
                              DEFAULT_MUTE_RAMP_DURATION_MS};
    uint32_t set_values[ ] = {0};

    if (audio_extn_hfp_is_active(adev))
        mixer_ctl_name = "HFP Tx Mute";
        mixer_ctl_name = "HFP TX Mute";

    set_values[0] = state;
    ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name);