mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 10:44:41 +00:00
Merge "Remove the limitation of max open streams" into main am: 4115d8b01d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2719933 Change-Id: I38ec098ea8e30ffe13b5f54ee77a8b0aff448023 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -230,14 +230,14 @@ std::unique_ptr<Configuration> getPrimaryConfiguration() {
|
||||
|
||||
AudioPort primaryOutMix = createPort(c.nextPortId++, "primary output",
|
||||
makeBitPositionFlagMask(AudioOutputFlags::PRIMARY),
|
||||
false, createPortMixExt(1, 1));
|
||||
false, createPortMixExt(0, 0));
|
||||
primaryOutMix.profiles.insert(primaryOutMix.profiles.begin(),
|
||||
standardPcmAudioProfiles.begin(),
|
||||
standardPcmAudioProfiles.end());
|
||||
c.ports.push_back(primaryOutMix);
|
||||
|
||||
AudioPort primaryInMix =
|
||||
createPort(c.nextPortId++, "primary input", 0, true, createPortMixExt(1, 1));
|
||||
createPort(c.nextPortId++, "primary input", 0, true, createPortMixExt(0, 0));
|
||||
primaryInMix.profiles.push_back(
|
||||
createProfile(PcmType::INT_16_BIT,
|
||||
{AudioChannelLayout::LAYOUT_MONO, AudioChannelLayout::LAYOUT_STEREO},
|
||||
|
||||
@@ -1379,7 +1379,7 @@ TEST_P(AudioCoreModule, CheckMixPorts) {
|
||||
<< "At least two mix ports have PRIMARY flag set: " << primaryMixPort.value()
|
||||
<< " and " << port.id;
|
||||
primaryMixPort = port.id;
|
||||
EXPECT_EQ(1, mixPort.maxOpenStreamCount)
|
||||
EXPECT_GE(mixPort.maxOpenStreamCount, 0)
|
||||
<< "Primary mix port " << port.id << " can not have maxOpenStreamCount "
|
||||
<< mixPort.maxOpenStreamCount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user