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

Commit be677c34 authored by Vimal Puthanveed's avatar Vimal Puthanveed
Browse files

hal: Device switch should happen only during anc enable/disable

-Device switch used to happend even if the setparameter was
not for AUDIO_PARAMETER_KEY_ANC since it was outside the if
condition. Hence move the switch device inside the condition.

Change-Id: I0f51356900709401bf2f1ea3c98b80861128aef3
CRs-Fixed: 575732
parent b6645a4c
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -119,7 +119,6 @@ void audio_extn_set_anc_parameters(struct audio_device *adev,
            aextnmod.anc_enabled = true;
        else
            aextnmod.anc_enabled = false;
    }

        list_for_each(node, &adev->usecase_list) {
            usecase = node_to_item(node, struct audio_usecase, list);
@@ -134,6 +133,7 @@ void audio_extn_set_anc_parameters(struct audio_device *adev,
                }
            }
        }
    }

    ALOGD("%s: anc_enabled:%d", __func__, aextnmod.anc_enabled);
}