Merge "Check input HAL channel mask instead of channel count"