commit | ca3803f10e8fc47f941b15e4878025b312c13182 | [log] [tgz] |
---|---|---|
author | jiabin <jiabin@google.com> | Mon Apr 30 09:25:26 2018 -0700 |
committer | jiabin <jiabin@google.com> | Mon Apr 30 14:21:58 2018 -0700 |
tree | 5ad989185101d73d7e4a1e0e811a4e182027bbea | |
parent | adf9e18c01c3bf25858aacc380c16aa465b0ef34 [diff] |
Add AUDIO_MICROPHONE_CHANNEL_MAPPING_CNT. Bug: 75041465 Test: make Change-Id: I2cb444637ddfa67949cb95af80c691fa6892b639
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 004a99e..5828c3f 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 <stdio.h> +#include <log/log.h> + namespace android { namespace hardware { namespace audio { @@ -108,6 +110,9 @@ return AudioMicrophoneChannelMapping::DIRECT; case AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED: return AudioMicrophoneChannelMapping::PROCESSED; + default: + ALOGE("Invalid channel mapping type: %d", mapping); + return AudioMicrophoneChannelMapping::UNUSED; } }