mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "audio: Match framework expectations for mic addresses" am: 5324db0668 am: 73975dc526
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2402202 Change-Id: Ideabaaa12d9d9203138ef05448d10cf5ea4a4dad Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -76,6 +76,11 @@ static AudioPortExt createDeviceExt(AudioDeviceType devType, int32_t flags,
|
||||
std::string connection = "") {
|
||||
AudioPortDeviceExt deviceExt;
|
||||
deviceExt.device.type.type = devType;
|
||||
if (devType == AudioDeviceType::IN_MICROPHONE && connection.empty()) {
|
||||
deviceExt.device.address = "bottom";
|
||||
} else if (devType == AudioDeviceType::IN_MICROPHONE_BACK && connection.empty()) {
|
||||
deviceExt.device.address = "back";
|
||||
}
|
||||
deviceExt.device.type.connection = std::move(connection);
|
||||
deviceExt.flags = flags;
|
||||
return AudioPortExt::make<AudioPortExt::Tag::device>(deviceExt);
|
||||
|
||||
Reference in New Issue
Block a user