mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 06:22:53 +00:00
Merge "Add AUDIO_MICROPHONE_CHANNEL_MAPPING_CNT." into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d5c9702411
@@ -18,6 +18,8 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <log/log.h>
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user