audio: Use audio_channel_count_from_[in|out]_mask instead of popcount
audio: Use audio_channel_count_from_[in|out]_mask instead of popcount

Now that the channel mask could include extra format info bits
it's not valid to use popcount directly. Instead we should be
using the helper functions for converting mask to count.

Change-Id: Ia1691e275045bda529b3316d1d175ccbe04eee00
Signed-off-by: Richard Fitzgerald <22ee0097135072451429b5ac45630d52779cd49b@opensource.cirrus.com>

CirrusLogic/tinyhal,CirrusLogic/tinyhal,CirrusLogic/tinyhal