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 | |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 37 | static std::vector<aidl::android::media::audio::common::AudioPort> getAudioPortsForDeviceTypes( |
| 38 | const std::vector<aidl::android::media::audio::common::AudioPort>& ports, |
| 39 | const std::vector<aidl::android::media::audio::common::AudioDeviceType>& deviceTypes, |
| 40 | const std::string& connection = ""); |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 41 | static std::vector<aidl::android::media::audio::common::AudioPort> getBuiltInMicPorts( |
| 42 | const std::vector<aidl::android::media::audio::common::AudioPort>& ports); |
Mikhail Naganov | 111e0ce | 2022-06-17 21:41:19 +0000 | [diff] [blame] | 43 | |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 44 | explicit ModuleConfig(aidl::android::hardware::audio::core::IModule* module); |
| 45 | const ndk::ScopedAStatus& getStatus() const { return mStatus; } |
| 46 | std::string getError() const { return mStatus.getMessage(); } |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 47 | |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 48 | std::vector<aidl::android::media::audio::common::AudioPort> getAttachedDevicePorts() const; |
Mikhail Naganov | 95f2277 | 2023-10-25 08:44:47 -0700 | [diff] [blame] | 49 | std::vector<aidl::android::media::audio::common::AudioPort> getAudioPortsForDeviceTypes( |
| 50 | const std::vector<aidl::android::media::audio::common::AudioDeviceType>& deviceTypes, |
| 51 | const std::string& connection = "") const; |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 52 | std::vector<aidl::android::media::audio::common::AudioPort> getConnectedExternalDevicePorts() |
| 53 | const; |
| 54 | std::set<int32_t> getConnectedSinkDevicePorts() const; |
| 55 | std::set<int32_t> getConnectedSourceDevicePorts() const; |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 56 | std::vector<aidl::android::media::audio::common::AudioPort> getAttachedMicrophonePorts() const { |
| 57 | return getBuiltInMicPorts(getAttachedDevicePorts()); |
| 58 | } |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 59 | std::vector<aidl::android::media::audio::common::AudioPort> getExternalDevicePorts() const; |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 60 | std::vector<aidl::android::media::audio::common::AudioPort> getInputMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 61 | bool connectedOnly /*Permanently attached and connected external devices*/) const; |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 62 | std::vector<aidl::android::media::audio::common::AudioPort> getOutputMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 63 | bool connectedOnly /*Permanently attached and connected external devices*/) const; |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 64 | std::vector<aidl::android::media::audio::common::AudioPort> getMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 65 | bool isInput, |
| 66 | bool connectedOnly /*Permanently attached and connected external devices*/) const { |
| 67 | return isInput ? getInputMixPorts(connectedOnly) : getOutputMixPorts(connectedOnly); |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 68 | } |
Mikhail Naganov | 30301a4 | 2022-09-13 01:20:45 +0000 | [diff] [blame] | 69 | std::vector<aidl::android::media::audio::common::AudioPort> getNonBlockingMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 70 | bool connectedOnly /*Permanently attached and connected external devices*/, |
| 71 | bool singlePort) const; |
Mikhail Naganov | a2c5ddf | 2022-09-12 22:57:14 +0000 | [diff] [blame] | 72 | std::vector<aidl::android::media::audio::common::AudioPort> getOffloadMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 73 | bool connectedOnly /*Permanently attached and connected external devices*/, |
| 74 | bool singlePort) const; |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 75 | std::vector<aidl::android::media::audio::common::AudioPort> getPrimaryMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 76 | bool connectedOnly /*Permanently attached and connected external devices*/, |
| 77 | bool singlePort) const; |
jiabin | 9a8e686 | 2023-01-12 23:06:37 +0000 | [diff] [blame] | 78 | std::vector<aidl::android::media::audio::common::AudioPort> getMmapOutMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 79 | bool connectedOnly /*Permanently attached and connected external devices*/, |
| 80 | bool singlePort) const; |
jiabin | 9a8e686 | 2023-01-12 23:06:37 +0000 | [diff] [blame] | 81 | std::vector<aidl::android::media::audio::common::AudioPort> getMmapInMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 82 | bool connectedOnly /*Permanently attached and connected external devices*/, |
| 83 | bool singlePort) const; |
Mikhail Naganov | 95f2277 | 2023-10-25 08:44:47 -0700 | [diff] [blame] | 84 | std::vector<aidl::android::media::audio::common::AudioPort> getRemoteSubmixPorts( |
| 85 | bool isInput, bool singlePort) const; |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 86 | |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 87 | std::vector<aidl::android::media::audio::common::AudioPort> getConnectedDevicesPortsForMixPort( |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 88 | bool isInput, const aidl::android::media::audio::common::AudioPort& mixPort) const { |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 89 | return isInput ? getConnectedSourceDevicesPortsForMixPort(mixPort) |
| 90 | : getConnectedSinkDevicesPortsForMixPort(mixPort); |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 91 | } |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 92 | std::vector<aidl::android::media::audio::common::AudioPort> getConnectedDevicesPortsForMixPort( |
Mikhail Naganov | 4f5d3f1 | 2022-07-22 23:23:25 +0000 | [diff] [blame] | 93 | bool isInput, |
| 94 | const aidl::android::media::audio::common::AudioPortConfig& mixPortConfig) const; |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 95 | std::vector<aidl::android::media::audio::common::AudioPort> |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 96 | getConnectedSinkDevicesPortsForMixPort( |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 97 | const aidl::android::media::audio::common::AudioPort& mixPort) const; |
| 98 | std::vector<aidl::android::media::audio::common::AudioPort> |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 99 | getConnectedSourceDevicesPortsForMixPort( |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 100 | const aidl::android::media::audio::common::AudioPort& mixPort) const; |
| 101 | std::optional<aidl::android::media::audio::common::AudioPort> |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 102 | getSourceMixPortForConnectedDevice() const; |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 103 | |
Mikhail Naganov | 95f2277 | 2023-10-25 08:44:47 -0700 | [diff] [blame] | 104 | std::vector<aidl::android::media::audio::common::AudioPort> getRoutableDevicePortsForMixPort( |
| 105 | const aidl::android::media::audio::common::AudioPort& port, |
| 106 | bool connectedOnly /*Permanently attached and connected external devices*/) const; |
Mikhail Naganov | 84bcc04 | 2023-10-05 17:36:57 -0700 | [diff] [blame] | 107 | std::vector<aidl::android::media::audio::common::AudioPort> getRoutableMixPortsForDevicePort( |
Mikhail Naganov | 95f2277 | 2023-10-25 08:44:47 -0700 | [diff] [blame] | 108 | const aidl::android::media::audio::common::AudioPort& port, |
| 109 | bool connectedOnly /*Permanently attached and connected external devices*/) const; |
Mikhail Naganov | 84bcc04 | 2023-10-05 17:36:57 -0700 | [diff] [blame] | 110 | |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 111 | std::optional<SrcSinkPair> getNonRoutableSrcSinkPair(bool isInput) const; |
| 112 | std::optional<SrcSinkPair> getRoutableSrcSinkPair(bool isInput) const; |
| 113 | std::vector<SrcSinkGroup> getRoutableSrcSinkGroups(bool isInput) const; |
| 114 | |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 115 | std::vector<aidl::android::media::audio::common::AudioPortConfig> |
Mikhail Naganov | 00603d1 | 2022-05-02 22:52:13 +0000 | [diff] [blame] | 116 | getPortConfigsForAttachedDevicePorts() const { |
| 117 | return generateAudioDevicePortConfigs(getAttachedDevicePorts(), false); |
| 118 | } |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 119 | std::vector<aidl::android::media::audio::common::AudioPortConfig> getPortConfigsForMixPorts() |
| 120 | const { |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 121 | auto inputs = |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 122 | generateAudioMixPortConfigs(getInputMixPorts(false /*connectedOnly*/), true, false); |
| 123 | auto outputs = generateAudioMixPortConfigs(getOutputMixPorts(false /*connectedOnly*/), |
| 124 | false, false); |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 125 | inputs.insert(inputs.end(), outputs.begin(), outputs.end()); |
| 126 | return inputs; |
| 127 | } |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 128 | std::vector<aidl::android::media::audio::common::AudioPortConfig> getPortConfigsForMixPorts( |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 129 | bool isInput) const { |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 130 | return generateAudioMixPortConfigs(getMixPorts(isInput, false /*connectedOnly*/), isInput, |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 131 | false); |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 132 | } |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 133 | std::vector<aidl::android::media::audio::common::AudioPortConfig> getPortConfigsForMixPorts( |
| 134 | bool isInput, const aidl::android::media::audio::common::AudioPort& port) const { |
Mikhail Naganov | 111e0ce | 2022-06-17 21:41:19 +0000 | [diff] [blame] | 135 | return generateAudioMixPortConfigs({port}, isInput, 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::optional<aidl::android::media::audio::common::AudioPortConfig> getSingleConfigForMixPort( |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 138 | bool isInput) const { |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 139 | const auto config = generateAudioMixPortConfigs( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 140 | getMixPorts(isInput, false /*connectedOnly*/), isInput, true); |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 141 | if (!config.empty()) { |
| 142 | return *config.begin(); |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 143 | } |
Mikhail Naganov | 111e0ce | 2022-06-17 21:41:19 +0000 | [diff] [blame] | 144 | return {}; |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 145 | } |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 146 | std::optional<aidl::android::media::audio::common::AudioPortConfig> getSingleConfigForMixPort( |
| 147 | bool isInput, const aidl::android::media::audio::common::AudioPort& port) const { |
Mikhail Naganov | 111e0ce | 2022-06-17 21:41:19 +0000 | [diff] [blame] | 148 | const auto config = generateAudioMixPortConfigs({port}, isInput, true); |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 149 | if (!config.empty()) { |
| 150 | return *config.begin(); |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 151 | } |
Mikhail Naganov | 111e0ce | 2022-06-17 21:41:19 +0000 | [diff] [blame] | 152 | return {}; |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 153 | } |
| 154 | |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 155 | std::vector<aidl::android::media::audio::common::AudioPortConfig> getPortConfigsForDevicePort( |
| 156 | const aidl::android::media::audio::common::AudioPort& port) const { |
Mikhail Naganov | 00603d1 | 2022-05-02 22:52:13 +0000 | [diff] [blame] | 157 | return generateAudioDevicePortConfigs({port}, false); |
| 158 | } |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 159 | aidl::android::media::audio::common::AudioPortConfig getSingleConfigForDevicePort( |
| 160 | const aidl::android::media::audio::common::AudioPort& port) const { |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 161 | const auto config = generateAudioDevicePortConfigs({port}, true); |
| 162 | return *config.begin(); |
| 163 | } |
| 164 | |
Mikhail Naganov | a62c5df | 2024-04-17 17:10:31 -0700 | [diff] [blame] | 165 | std::optional<aidl::android::media::audio::common::AudioPort> getPort(int32_t portId); |
| 166 | |
Mikhail Naganov | 0e128dd | 2023-09-13 18:01:18 -0700 | [diff] [blame] | 167 | ndk::ScopedAStatus onExternalDeviceConnected( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 168 | aidl::android::hardware::audio::core::IModule* module, |
| 169 | const aidl::android::media::audio::common::AudioPort& port); |
Mikhail Naganov | 0e128dd | 2023-09-13 18:01:18 -0700 | [diff] [blame] | 170 | ndk::ScopedAStatus onExternalDeviceDisconnected( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 171 | aidl::android::hardware::audio::core::IModule* module, |
| 172 | const aidl::android::media::audio::common::AudioPort& port); |
| 173 | |
jiabin | b76981e | 2023-01-18 00:58:30 +0000 | [diff] [blame] | 174 | bool isMmapSupported() const; |
| 175 | |
Mikhail Naganov | 00603d1 | 2022-05-02 22:52:13 +0000 | [diff] [blame] | 176 | std::string toString() const; |
| 177 | |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 178 | private: |
Mikhail Naganov | 30301a4 | 2022-09-13 01:20:45 +0000 | [diff] [blame] | 179 | std::vector<aidl::android::media::audio::common::AudioPort> findMixPorts( |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 180 | bool isInput, bool connectedOnly, bool singlePort, |
Mikhail Naganov | ef6bc74 | 2022-10-06 00:14:19 +0000 | [diff] [blame] | 181 | const std::function<bool(const aidl::android::media::audio::common::AudioPort&)>& pred) |
| 182 | const; |
Mikhail Naganov | 95f2277 | 2023-10-25 08:44:47 -0700 | [diff] [blame] | 183 | std::set<int32_t> findRoutablePortIds(int32_t portId) const; |
Mikhail Naganov | 111e0ce | 2022-06-17 21:41:19 +0000 | [diff] [blame] | 184 | std::vector<aidl::android::media::audio::common::AudioPortConfig> generateAudioMixPortConfigs( |
| 185 | const std::vector<aidl::android::media::audio::common::AudioPort>& ports, bool isInput, |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 186 | bool singleProfile) const; |
| 187 | |
| 188 | // Unlike MixPorts, the generator for DevicePorts always returns a non-empty |
| 189 | // 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] | 190 | // port, its initial configs are looked up, if there are none, |
| 191 | // then an empty config is used, assuming further negotiation via setAudioPortConfig. |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 192 | std::vector<aidl::android::media::audio::common::AudioPortConfig> |
| 193 | generateAudioDevicePortConfigs( |
| 194 | const std::vector<aidl::android::media::audio::common::AudioPort>& ports, |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 195 | bool singleProfile) const; |
| 196 | |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 197 | ndk::ScopedAStatus mStatus = ndk::ScopedAStatus::ok(); |
| 198 | std::vector<aidl::android::media::audio::common::AudioPort> mPorts; |
| 199 | std::vector<aidl::android::media::audio::common::AudioPortConfig> mInitialConfigs; |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 200 | std::set<int32_t> mAttachedSinkDevicePorts; |
| 201 | std::set<int32_t> mAttachedSourceDevicePorts; |
Mikhail Naganov | 00603d1 | 2022-05-02 22:52:13 +0000 | [diff] [blame] | 202 | std::set<int32_t> mExternalDevicePorts; |
Shraddha Basantwani | 343db5e | 2023-08-23 12:39:15 +0000 | [diff] [blame] | 203 | std::set<int32_t> mConnectedExternalSinkDevicePorts; |
| 204 | std::set<int32_t> mConnectedExternalSourceDevicePorts; |
Mikhail Naganov | f84d640 | 2022-06-16 00:35:31 +0000 | [diff] [blame] | 205 | std::vector<aidl::android::hardware::audio::core::AudioRoute> mRoutes; |
Mikhail Naganov | e5d747e | 2021-11-16 01:31:03 +0000 | [diff] [blame] | 206 | }; |