hal: Fix device selection during voice call

During a voice call, when a device switch happens
for any stream, we try to make sure that all
streams sharing the same back end is re-routed
to the new device. This was causing even
devices that do not share the same codec backend
to get re-routed to the new device. Fix this
by checking for the device on which use case
is running

Change-Id: I101b79d3642fa1f8f32eeaf3731a5c7bd5364c72
CRs-Fixed: 1006364
1 file changed