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

Commit 88ca0d7e authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Remove the limitation of max open streams" into main am: 4115d8b0 am:...

Merge "Remove the limitation of max open streams" into main am: 4115d8b0 am: fcc06a7f am: bcdc82db am: dd7b38e0

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2719933



Change-Id: Icee0ad69c6c4fb9a4e7a235786e863795a91f7b6
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents b73dfff1 dd7b38e0
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -230,14 +230,14 @@ std::unique_ptr<Configuration> getPrimaryConfiguration() {


        AudioPort primaryOutMix = createPort(c.nextPortId++, "primary output",
        AudioPort primaryOutMix = createPort(c.nextPortId++, "primary output",
                                             makeBitPositionFlagMask(AudioOutputFlags::PRIMARY),
                                             makeBitPositionFlagMask(AudioOutputFlags::PRIMARY),
                                             false, createPortMixExt(1, 1));
                                             false, createPortMixExt(0, 0));
        primaryOutMix.profiles.insert(primaryOutMix.profiles.begin(),
        primaryOutMix.profiles.insert(primaryOutMix.profiles.begin(),
                                      standardPcmAudioProfiles.begin(),
                                      standardPcmAudioProfiles.begin(),
                                      standardPcmAudioProfiles.end());
                                      standardPcmAudioProfiles.end());
        c.ports.push_back(primaryOutMix);
        c.ports.push_back(primaryOutMix);


        AudioPort primaryInMix =
        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(
        primaryInMix.profiles.push_back(
                createProfile(PcmType::INT_16_BIT,
                createProfile(PcmType::INT_16_BIT,
                              {AudioChannelLayout::LAYOUT_MONO, AudioChannelLayout::LAYOUT_STEREO},
                              {AudioChannelLayout::LAYOUT_MONO, AudioChannelLayout::LAYOUT_STEREO},
+1 −1
Original line number Original line Diff line number Diff line
@@ -1379,7 +1379,7 @@ TEST_P(AudioCoreModule, CheckMixPorts) {
                    << "At least two mix ports have PRIMARY flag set: " << primaryMixPort.value()
                    << "At least two mix ports have PRIMARY flag set: " << primaryMixPort.value()
                    << " and " << port.id;
                    << " and " << port.id;
            primaryMixPort = port.id;
            primaryMixPort = port.id;
            EXPECT_EQ(1, mixPort.maxOpenStreamCount)
            EXPECT_GE(mixPort.maxOpenStreamCount, 0)
                    << "Primary mix port " << port.id << " can not have maxOpenStreamCount "
                    << "Primary mix port " << port.id << " can not have maxOpenStreamCount "
                    << mixPort.maxOpenStreamCount;
                    << mixPort.maxOpenStreamCount;
        }
        }