Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2022 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #pragma once |
| 18 | |
Mikhail Naganov | 30301a4 | 2022-09-13 01:20:45 +0000 | [diff] [blame] | 19 | #include <functional> |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 20 | #include <optional> |
| 21 | #include <set> |
| 22 | #include <utility> |
| 23 | #include <vector> |
| 24 | |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 25 | #include <aidl/android/hardware/audio/core/AudioRoute.h> |
| 26 | #include <aidl/android/hardware/audio/core/IModule.h> |
Mikhail Naganov | 111e0ce | 2022-06-17 21:41:19 +0000 | [diff] [blame] | 27 | #include <aidl/android/media/audio/common/AudioOffloadInfo.h> |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 28 | #include <aidl/android/media/audio/common/AudioPort.h> |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 29 | |
| 30 | class ModuleConfig { |
| 31 | public: |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 32 | using SrcSinkPair = std::pair<aidl::android::media::audio::common::AudioPortConfig, |
| 33 | aidl::android::media::audio::common::AudioPortConfig>; |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 34 | using SrcSinkGroup = |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 35 | std::pair<aidl::android::hardware::audio::core::AudioRoute, std::vector<SrcSinkPair>>; |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 36 | |
Mikhail Naganov | 111e0ce | 2022-06-17 21:41:19 +0000 | [diff] [blame] | 37 | static std::optional<aidl::android::media::audio::common::AudioOffloadInfo> |
| 38 | generateOffloadInfoIfNeeded( |
| 39 | const aidl::android::media::audio::common::AudioPortConfig& portConfig); |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 40 | |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 41 | static std::vector<aidl::android::media::audio::common::AudioPort> getAudioPortsForDeviceTypes( |
| 42 | const std::vector<aidl::android::media::audio::common::AudioPort>& ports, |
| 43 | const std::vector<aidl::android::media::audio::common::AudioDeviceType>& deviceTypes, |
| 44 | const std::string& connection = ""); |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 45 | static std::vector<aidl::android::media::audio::common::AudioPort> getBuiltInMicPorts( |
| 46 | const std::vector<aidl::android::media::audio::common::AudioPort>& ports); |
Mikhail Naganov | 111e0ce | 2022-06-17 21:41:19 +0000 | [diff] [blame] | 47 | |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 48 | explicit ModuleConfig(aidl::android::hardware::audio::core::IModule* module); |
| 49 | const ndk::ScopedAStatus& getStatus() const { return mStatus; } |
| 50 | std::string getError() const { return mStatus.getMessage(); } |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 51 | |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 52 | std::vector<aidl::android::media::audio::common::AudioPort> getAttachedDevicePorts() const; |
Mikhail Naganov | 95f2277 | 2023-10-25 08:44:47 -0700 | [diff] [blame] | 53 | std::vector<aidl::android::media::audio::common::AudioPort> getAudioPortsForDeviceTypes( |
| 54 | const std::vector<aidl::android::media::audio::common::AudioDeviceType>& deviceTypes, |
| 55 | const std::string& connection = "") const; |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 56 | std::vector<aidl::android::media::audio::common::AudioPort> getConnectedExternalDevicePorts() |
| 57 | const; |
| 58 | std::set<int32_t> getConnectedSinkDevicePorts() const; |
| 59 | std::set<int32_t> getConnectedSourceDevicePorts() const; |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 60 | std::vector<aidl::android::media::audio::common::AudioPort> getAttachedMicrophonePorts() const { |
| 61 | return getBuiltInMicPorts(getAttachedDevicePorts()); |
| 62 | } |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 63 | std::vector<aidl::android::media::audio::common::AudioPort> getExternalDevicePorts() const; |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 64 | std::vector<aidl::android::media::audio::common::AudioPort> getInputMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 65 | bool connectedOnly /*Permanently attached and connected external devices*/) const; |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 66 | std::vector<aidl::android::media::audio::common::AudioPort> getOutputMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 67 | bool connectedOnly /*Permanently attached and connected external devices*/) const; |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 68 | std::vector<aidl::android::media::audio::common::AudioPort> getMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 69 | bool isInput, |
| 70 | bool connectedOnly /*Permanently attached and connected external devices*/) const { |
| 71 | return isInput ? getInputMixPorts(connectedOnly) : getOutputMixPorts(connectedOnly); |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 72 | } |
Mikhail Naganov | 30301a4 | 2022-09-13 01:20:45 +0000 | [diff] [blame] | 73 | std::vector<aidl::android::media::audio::common::AudioPort> getNonBlockingMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 74 | bool connectedOnly /*Permanently attached and connected external devices*/, |
| 75 | bool singlePort) const; |
Mikhail Naganov | a2c5ddf | 2022-09-12 22:57:14 +0000 | [diff] [blame] | 76 | std::vector<aidl::android::media::audio::common::AudioPort> getOffloadMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 77 | bool connectedOnly /*Permanently attached and connected external devices*/, |
| 78 | bool singlePort) const; |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 79 | std::vector<aidl::android::media::audio::common::AudioPort> getPrimaryMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 80 | bool connectedOnly /*Permanently attached and connected external devices*/, |
| 81 | bool singlePort) const; |
jiabin | 9a8e686 | 2023-01-12 23:06:37 +0000 | [diff] [blame] | 82 | std::vector<aidl::android::media::audio::common::AudioPort> getMmapOutMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 83 | bool connectedOnly /*Permanently attached and connected external devices*/, |
| 84 | bool singlePort) const; |
jiabin | 9a8e686 | 2023-01-12 23:06:37 +0000 | [diff] [blame] | 85 | std::vector<aidl::android::media::audio::common::AudioPort> getMmapInMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 86 | bool connectedOnly /*Permanently attached and connected external devices*/, |
| 87 | bool singlePort) const; |
Mikhail Naganov | 95f2277 | 2023-10-25 08:44:47 -0700 | [diff] [blame] | 88 | std::vector<aidl::android::media::audio::common::AudioPort> getRemoteSubmixPorts( |
| 89 | bool isInput, bool singlePort) const; |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 90 | |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 91 | std::vector<aidl::android::media::audio::common::AudioPort> getConnectedDevicesPortsForMixPort( |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 92 | bool isInput, const aidl::android::media::audio::common::AudioPort& mixPort) const { |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 93 | return isInput ? getConnectedSourceDevicesPortsForMixPort(mixPort) |
| 94 | : getConnectedSinkDevicesPortsForMixPort(mixPort); |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 95 | } |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 96 | std::vector<aidl::android::media::audio::common::AudioPort> getConnectedDevicesPortsForMixPort( |
Mikhail Naganov | 4f5d3f1 | 2022-07-22 23:23:25 +0000 | [diff] [blame] | 97 | bool isInput, |
| 98 | const aidl::android::media::audio::common::AudioPortConfig& mixPortConfig) const; |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 99 | std::vector<aidl::android::media::audio::common::AudioPort> |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 100 | getConnectedSinkDevicesPortsForMixPort( |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 101 | const aidl::android::media::audio::common::AudioPort& mixPort) const; |
| 102 | std::vector<aidl::android::media::audio::common::AudioPort> |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 103 | getConnectedSourceDevicesPortsForMixPort( |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 104 | const aidl::android::media::audio::common::AudioPort& mixPort) const; |
| 105 | std::optional<aidl::android::media::audio::common::AudioPort> |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 106 | getSourceMixPortForConnectedDevice() const; |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 107 | |
Mikhail Naganov | 95f2277 | 2023-10-25 08:44:47 -0700 | [diff] [blame] | 108 | std::vector<aidl::android::media::audio::common::AudioPort> getRoutableDevicePortsForMixPort( |
| 109 | const aidl::android::media::audio::common::AudioPort& port, |
| 110 | bool connectedOnly /*Permanently attached and connected external devices*/) const; |
Mikhail Naganov | 84bcc04 | 2023-10-05 17:36:57 -0700 | [diff] [blame] | 111 | std::vector<aidl::android::media::audio::common::AudioPort> getRoutableMixPortsForDevicePort( |
Mikhail Naganov | 95f2277 | 2023-10-25 08:44:47 -0700 | [diff] [blame] | 112 | const aidl::android::media::audio::common::AudioPort& port, |
| 113 | bool connectedOnly /*Permanently attached and connected external devices*/) const; |
Mikhail Naganov | 84bcc04 | 2023-10-05 17:36:57 -0700 | [diff] [blame] | 114 | |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 115 | std::optional<SrcSinkPair> getNonRoutableSrcSinkPair(bool isInput) const; |
| 116 | std::optional<SrcSinkPair> getRoutableSrcSinkPair(bool isInput) const; |
| 117 | std::vector<SrcSinkGroup> getRoutableSrcSinkGroups(bool isInput) const; |
| 118 | |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 119 | std::vector<aidl::android::media::audio::common::AudioPortConfig> |
Mikhail Naganov | 00603d1 | 2022-05-02 22:52:13 +0000 | [diff] [blame] | 120 | getPortConfigsForAttachedDevicePorts() const { |
| 121 | return generateAudioDevicePortConfigs(getAttachedDevicePorts(), false); |
| 122 | } |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 123 | std::vector<aidl::android::media::audio::common::AudioPortConfig> getPortConfigsForMixPorts() |
| 124 | const { |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 125 | auto inputs = |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 126 | generateAudioMixPortConfigs(getInputMixPorts(false /*connectedOnly*/), true, false); |
| 127 | auto outputs = generateAudioMixPortConfigs(getOutputMixPorts(false /*connectedOnly*/), |
| 128 | false, false); |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 129 | inputs.insert(inputs.end(), outputs.begin(), outputs.end()); |
| 130 | return inputs; |
| 131 | } |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 132 | std::vector<aidl::android::media::audio::common::AudioPortConfig> getPortConfigsForMixPorts( |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 133 | bool isInput) const { |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 134 | return generateAudioMixPortConfigs(getMixPorts(isInput, false /*connectedOnly*/), isInput, |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 135 | false); |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 136 | } |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 137 | std::vector<aidl::android::media::audio::common::AudioPortConfig> getPortConfigsForMixPorts( |
| 138 | bool isInput, const aidl::android::media::audio::common::AudioPort& port) const { |
Mikhail Naganov | 111e0ce | 2022-06-17 21:41:19 +0000 | [diff] [blame] | 139 | return generateAudioMixPortConfigs({port}, isInput, false); |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 140 | } |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 141 | std::optional<aidl::android::media::audio::common::AudioPortConfig> getSingleConfigForMixPort( |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 142 | bool isInput) const { |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 143 | const auto config = generateAudioMixPortConfigs( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 144 | getMixPorts(isInput, false /*connectedOnly*/), isInput, true); |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 145 | if (!config.empty()) { |
| 146 | return *config.begin(); |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 147 | } |
Mikhail Naganov | 111e0ce | 2022-06-17 21:41:19 +0000 | [diff] [blame] | 148 | return {}; |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 149 | } |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 150 | std::optional<aidl::android::media::audio::common::AudioPortConfig> getSingleConfigForMixPort( |
| 151 | bool isInput, const aidl::android::media::audio::common::AudioPort& port) const { |
Mikhail Naganov | 111e0ce | 2022-06-17 21:41:19 +0000 | [diff] [blame] | 152 | const auto config = generateAudioMixPortConfigs({port}, isInput, true); |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 153 | if (!config.empty()) { |
| 154 | return *config.begin(); |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 155 | } |
Mikhail Naganov | 111e0ce | 2022-06-17 21:41:19 +0000 | [diff] [blame] | 156 | return {}; |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 157 | } |
| 158 | |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 159 | std::vector<aidl::android::media::audio::common::AudioPortConfig> getPortConfigsForDevicePort( |
| 160 | const aidl::android::media::audio::common::AudioPort& port) const { |
Mikhail Naganov | 00603d1 | 2022-05-02 22:52:13 +0000 | [diff] [blame] | 161 | return generateAudioDevicePortConfigs({port}, false); |
| 162 | } |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 163 | aidl::android::media::audio::common::AudioPortConfig getSingleConfigForDevicePort( |
| 164 | const aidl::android::media::audio::common::AudioPort& port) const { |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 165 | const auto config = generateAudioDevicePortConfigs({port}, true); |
| 166 | return *config.begin(); |
| 167 | } |
| 168 | |
Mikhail Naganov | 0e128dd | 2023-09-13 18:01:18 -0700 | [diff] [blame] | 169 | ndk::ScopedAStatus onExternalDeviceConnected( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 170 | aidl::android::hardware::audio::core::IModule* module, |
| 171 | const aidl::android::media::audio::common::AudioPort& port); |
Mikhail Naganov | 0e128dd | 2023-09-13 18:01:18 -0700 | [diff] [blame] | 172 | ndk::ScopedAStatus onExternalDeviceDisconnected( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 173 | aidl::android::hardware::audio::core::IModule* module, |
| 174 | const aidl::android::media::audio::common::AudioPort& port); |
| 175 | |
jiabin | b76981e | 2023-01-18 00:58:30 +0000 | [diff] [blame] | 176 | bool isMmapSupported() const; |
| 177 | |
Mikhail Naganov | 00603d1 | 2022-05-02 22:52:13 +0000 | [diff] [blame] | 178 | std::string toString() const; |
| 179 | |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 180 | private: |
Mikhail Naganov | 30301a4 | 2022-09-13 01:20:45 +0000 | [diff] [blame] | 181 | std::vector<aidl::android::media::audio::common::AudioPort> findMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 182 | bool isInput, bool connectedOnly, bool singlePort, |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 183 | const std::function<bool(const aidl::android::media::audio::common::AudioPort&)>& pred) |
| 184 | const; |
Mikhail Naganov | 95f2277 | 2023-10-25 08:44:47 -0700 | [diff] [blame] | 185 | std::set<int32_t> findRoutablePortIds(int32_t portId) const; |
Mikhail Naganov | 111e0ce | 2022-06-17 21:41:19 +0000 | [diff] [blame] | 186 | std::vector<aidl::android::media::audio::common::AudioPortConfig> generateAudioMixPortConfigs( |
| 187 | const std::vector<aidl::android::media::audio::common::AudioPort>& ports, bool isInput, |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 188 | bool singleProfile) const; |
| 189 | |
| 190 | // Unlike MixPorts, the generator for DevicePorts always returns a non-empty |
| 191 | // vector for a non-empty input port list. If there are no profiles in the |
Mikhail Naganov | 00603d1 | 2022-05-02 22:52:13 +0000 | [diff] [blame] | 192 | // port, its initial configs are looked up, if there are none, |
| 193 | // then an empty config is used, assuming further negotiation via setAudioPortConfig. |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 194 | std::vector<aidl::android::media::audio::common::AudioPortConfig> |
| 195 | generateAudioDevicePortConfigs( |
| 196 | const std::vector<aidl::android::media::audio::common::AudioPort>& ports, |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 197 | bool singleProfile) const; |
| 198 | |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 199 | ndk::ScopedAStatus mStatus = ndk::ScopedAStatus::ok(); |
| 200 | std::vector<aidl::android::media::audio::common::AudioPort> mPorts; |
| 201 | std::vector<aidl::android::media::audio::common::AudioPortConfig> mInitialConfigs; |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 202 | std::set<int32_t> mAttachedSinkDevicePorts; |
| 203 | std::set<int32_t> mAttachedSourceDevicePorts; |
Mikhail Naganov | 00603d1 | 2022-05-02 22:52:13 +0000 | [diff] [blame] | 204 | std::set<int32_t> mExternalDevicePorts; |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 205 | std::set<int32_t> mConnectedExternalSinkDevicePorts; |
| 206 | std::set<int32_t> mConnectedExternalSourceDevicePorts; |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 207 | std::vector<aidl::android::hardware::audio::core::AudioRoute> mRoutes; |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 208 | }; |