From ca3803f10e8fc47f941b15e4878025b312c13182 Mon Sep 17 00:00:00 2001 From: jiabin Date: Mon, 30 Apr 2018 09:25:26 -0700 Subject: [PATCH] Add AUDIO_MICROPHONE_CHANNEL_MAPPING_CNT. Bug: 75041465 Test: make Change-Id: I2cb444637ddfa67949cb95af80c691fa6892b639 --- .../include/core/all-versions/default/Conversions.impl.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/audio/core/all-versions/default/include/core/all-versions/default/Conversions.impl.h b/audio/core/all-versions/default/include/core/all-versions/default/Conversions.impl.h index 004a99ee3a..5828c3f373 100644 --- a/audio/core/all-versions/default/include/core/all-versions/default/Conversions.impl.h +++ b/audio/core/all-versions/default/include/core/all-versions/default/Conversions.impl.h @@ -18,6 +18,8 @@ #include +#include + namespace android { namespace hardware { namespace audio { @@ -108,6 +110,9 @@ AudioMicrophoneChannelMapping halToChannelMapping(audio_microphone_channel_mappi return AudioMicrophoneChannelMapping::DIRECT; case AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED: return AudioMicrophoneChannelMapping::PROCESSED; + default: + ALOGE("Invalid channel mapping type: %d", mapping); + return AudioMicrophoneChannelMapping::UNUSED; } }