hal: Prevent de-routing in case the usecase doesn't share codec backend
During device selection for a usecase, other active usecases that share
the same codec backend are supposed to be switched to the new routing
device. Erroneously, during selection of the device for a capture usecase,
other active usecases are being de-routed irrespective of their backends
leading to unwarrented behavior e.g. voice call breakdown when a camcorder
usecase begins.
Add a check to avoid disabling of usecases in above mentioned scenarios
if these do not share the same codec backend.
CRs-Fixed: 813744
Change-Id: Ic7a5b54155e70a55fd0b0b2d5ad7e380de564123
1 file changed