Merge "Add function to derive a channel mask from a channel count"