Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca3803f1 authored by jiabin's avatar jiabin
Browse files

Add AUDIO_MICROPHONE_CHANNEL_MAPPING_CNT.

Bug: 75041465
Test: make
Change-Id: I2cb444637ddfa67949cb95af80c691fa6892b639
parent adf9e18c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;
    }
}