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

Commit 9fa5515a authored by Mikhail Naganov's avatar Mikhail Naganov Committed by Automerger Merge Worker
Browse files

audio: Set 'maxOpenStreamCount' to unlimited for input ports am: 8dbc5115 am: 81b8fb28

parents 3758b9a6 81b8fb28
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -237,7 +237,7 @@ std::unique_ptr<Configuration> getPrimaryConfiguration() {
        c.ports.push_back(primaryOutMix);
        c.ports.push_back(primaryOutMix);


        AudioPort primaryInMix =
        AudioPort primaryInMix =
                createPort(c.nextPortId++, "primary input", 0, true, createPortMixExt(0, 0));
                createPort(c.nextPortId++, "primary input", 0, true, createPortMixExt(0, 1));
        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},
@@ -252,14 +252,14 @@ std::unique_ptr<Configuration> getPrimaryConfiguration() {
        c.ports.push_back(telephonyTxOutMix);
        c.ports.push_back(telephonyTxOutMix);


        AudioPort telephonyRxInMix =
        AudioPort telephonyRxInMix =
                createPort(c.nextPortId++, "telephony_rx", 0, true, createPortMixExt(1, 1));
                createPort(c.nextPortId++, "telephony_rx", 0, true, createPortMixExt(0, 1));
        telephonyRxInMix.profiles.insert(telephonyRxInMix.profiles.begin(),
        telephonyRxInMix.profiles.insert(telephonyRxInMix.profiles.begin(),
                                         standardPcmAudioProfiles.begin(),
                                         standardPcmAudioProfiles.begin(),
                                         standardPcmAudioProfiles.end());
                                         standardPcmAudioProfiles.end());
        c.ports.push_back(telephonyRxInMix);
        c.ports.push_back(telephonyRxInMix);


        AudioPort fmTunerInMix =
        AudioPort fmTunerInMix =
                createPort(c.nextPortId++, "fm_tuner", 0, true, createPortMixExt(1, 1));
                createPort(c.nextPortId++, "fm_tuner", 0, true, createPortMixExt(0, 1));
        fmTunerInMix.profiles.insert(fmTunerInMix.profiles.begin(),
        fmTunerInMix.profiles.insert(fmTunerInMix.profiles.begin(),
                                     standardPcmAudioProfiles.begin(),
                                     standardPcmAudioProfiles.begin(),
                                     standardPcmAudioProfiles.end());
                                     standardPcmAudioProfiles.end());
@@ -441,7 +441,7 @@ std::unique_ptr<Configuration> getUsbConfiguration() {
        c.ports.push_back(usbDeviceOutMix);
        c.ports.push_back(usbDeviceOutMix);


        AudioPort usbDeviceInMix =
        AudioPort usbDeviceInMix =
                createPort(c.nextPortId++, "usb_device input", 0, true, createPortMixExt(1, 1));
                createPort(c.nextPortId++, "usb_device input", 0, true, createPortMixExt(0, 1));
        c.ports.push_back(usbDeviceInMix);
        c.ports.push_back(usbDeviceInMix);


        c.routes.push_back(createRoute({usbDeviceOutMix}, usbOutDevice));
        c.routes.push_back(createRoute({usbDeviceOutMix}, usbOutDevice));