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
1 file changed