apply channel mask when setting the channel