policy_hal: avoid open stereo channel output for voip_rx flag

Stereo output is started with setting voip_rx flag. This is not
allowed due to voip_rx profile is not supported.

Add channel mask and sample rate check to ensure voip_rx flag is set
when using correct channel and sample rate.

CRs-Fixed: 2414061
Change-Id: Iae9252915006b7f8b695a1e4680845f2e4e3ac8f
1 file changed
tree: c3fb385db3e9d653eeb95d6b926e447b776529cc
  1. policy_hal/
  2. Android.mk