hal: Fix for device check against wrong codec backend

 Make sure out stream device is checked against out codec backend
 device and in stream device against in codec backend. Checking out
 device against in codec backend or vice versa leads to issues as
 some out and in device ids are common except the bit in.

 CRs-Fixed: 1088820

Change-Id: I1197411c287cf65d41ed1d16f300e962b677b832
5 files changed