policy: add channelmask when selecting output
When selecting output for haptics, channelmask is needed.
Change-Id: Id58cd2f90615bfb008a3eebbaace12328c41e945
diff --git a/policy_hal/AudioPolicyManager.cpp b/policy_hal/AudioPolicyManager.cpp
index 6238fa9..8f371f0 100644
--- a/policy_hal/AudioPolicyManager.cpp
+++ b/policy_hal/AudioPolicyManager.cpp
@@ -1869,7 +1869,7 @@
ALOGI("FLAG None hence request for a primary output");
}
- output = selectOutput(outputs, *flags, config->format);
+ output = selectOutput(outputs, *flags, config->format, channelMask);
}
ALOGW_IF((output == 0), "getOutputForDevice() could not find output for stream %d, "