hal: Fix use of channel mask APIs
Change-Id: I352f05da08dd453174dc7c8d1d0b98f15bf33ed0
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index c85c085..13c3bec 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -2378,7 +2378,7 @@
(in->dev->mode == AUDIO_MODE_IN_COMMUNICATION) &&
(voice_extn_compress_voip_is_format_supported(in->format)) &&
(in->config.rate == 8000 || in->config.rate == 16000) &&
- (popcount(in->channel_mask) == 1)) {
+ (audio_channel_count_from_in_mask(in->channel_mask) == 1)) {
err = voice_extn_compress_voip_open_input_stream(in);
if (err != 0) {
ALOGE("%s: Compress voip input cannot be opened, error:%d",