Searched refs:audioPort (Results 1 – 12 of 12) sorted by relevance
/hardware/interfaces/audio/aidl/default/r_submix/ |
D | ModuleRemoteSubmix.cpp | 46 std::optional<r_submix::AudioConfig> getRemoteEndConfig(const AudioPort& audioPort) { in getRemoteEndConfig() argument 47 const auto& deviceAddress = audioPort.ext.get<AudioPortExt::device>().device.address; in getRemoteEndConfig() 48 const bool isInput = audioPort.flags.getTag() == AudioIoFlags::input; in getRemoteEndConfig() 105 ndk::ScopedAStatus ModuleRemoteSubmix::populateConnectedDevicePort(AudioPort* audioPort, int32_t) { in populateConnectedDevicePort() argument 106 if (audioPort->ext.getTag() != AudioPortExt::device) { in populateConnectedDevicePort() 107 LOG(ERROR) << __func__ << ": not a device port: " << audioPort->toString(); in populateConnectedDevicePort() 112 if (auto pipeConfig = getRemoteEndConfig(*audioPort); pipeConfig.has_value()) { in populateConnectedDevicePort() 113 audioPort->profiles.clear(); in populateConnectedDevicePort() 114 audioPort->profiles.push_back(AudioProfile{ in populateConnectedDevicePort() 118 LOG(DEBUG) << __func__ << ": populated from remote end as: " << audioPort->toString(); in populateConnectedDevicePort() [all …]
|
/hardware/interfaces/audio/aidl/default/usb/ |
D | ModuleUsb.cpp | 41 bool isUsbDevicePort(const AudioPort& audioPort) { in isUsbDevicePort() argument 42 return audioPort.ext.getTag() == AudioPortExt::Tag::device && in isUsbDevicePort() 43 audioPort.ext.get<AudioPortExt::Tag::device>().device.type.connection == in isUsbDevicePort() 90 ndk::ScopedAStatus ModuleUsb::populateConnectedDevicePort(AudioPort* audioPort, in populateConnectedDevicePort() argument 92 if (!isUsbDevicePort(*audioPort)) { in populateConnectedDevicePort() 93 LOG(ERROR) << __func__ << ": port id " << audioPort->id << " is not a usb device port"; in populateConnectedDevicePort() 96 return ModuleAlsa::populateConnectedDevicePort(audioPort, nextPortId); in populateConnectedDevicePort() 116 const ::aidl::android::media::audio::common::AudioPort& audioPort, bool connected) { in onExternalDeviceConnectionChanged() 117 if (!isUsbDevicePort(audioPort)) { in onExternalDeviceConnectionChanged() 120 auto profile = alsa::getDeviceProfile(audioPort); in onExternalDeviceConnectionChanged()
|
/hardware/interfaces/audio/aidl/default/bluetooth/ |
D | ModuleBluetooth.cpp | 189 void ModuleBluetooth::onExternalDeviceConnectionChanged(const AudioPort& audioPort, in onExternalDeviceConnectionChanged() argument 191 if (!connected) mProxies.erase(audioPort.id); in onExternalDeviceConnectionChanged() 214 ndk::ScopedAStatus ModuleBluetooth::populateConnectedDevicePort(AudioPort* audioPort, in populateConnectedDevicePort() argument 216 if (audioPort->ext.getTag() != AudioPortExt::device) { in populateConnectedDevicePort() 217 LOG(ERROR) << __func__ << ": not a device port: " << audioPort->toString(); in populateConnectedDevicePort() 224 const auto& devicePort = audioPort->ext.get<AudioPortExt::device>(); in populateConnectedDevicePort() 233 LOG(ERROR) << __func__ << ": unsupported device type: " << audioPort->toString(); in populateConnectedDevicePort() 237 RETURN_STATUS_IF_ERROR(createProxy(*audioPort, nextPortId, proxy)); in populateConnectedDevicePort() 241 audioPort->profiles.clear(); in populateConnectedDevicePort() 242 audioPort->profiles.push_back( in populateConnectedDevicePort() [all …]
|
/hardware/interfaces/audio/aidl/default/alsa/ |
D | ModuleAlsa.cpp | 37 ndk::ScopedAStatus ModuleAlsa::populateConnectedDevicePort(AudioPort* audioPort, int32_t) { in populateConnectedDevicePort() argument 38 auto deviceProfile = alsa::getDeviceProfile(*audioPort); in populateConnectedDevicePort() 63 audioPort->profiles.push_back(std::move(audioProfile)); in populateConnectedDevicePort()
|
D | Utils.cpp | 242 const ::aidl::android::media::audio::common::AudioPort& audioPort) { in getDeviceProfile() 243 if (audioPort.ext.getTag() != AudioPortExt::Tag::device) { in getDeviceProfile() 244 LOG(ERROR) << __func__ << ": port id " << audioPort.id << " is not a device port"; in getDeviceProfile() 247 auto& devicePort = audioPort.ext.get<AudioPortExt::Tag::device>(); in getDeviceProfile() 248 return getDeviceProfile(devicePort.device, audioPort.flags.getTag() == AudioIoFlags::input); in getDeviceProfile()
|
D | Utils.h | 73 const ::aidl::android::media::audio::common::AudioPort& audioPort);
|
/hardware/interfaces/audio/aidl/default/include/core-impl/ |
D | ModuleBluetooth.h | 61 const ::aidl::android::media::audio::common::AudioPort& audioPort, bool connected); 74 ::aidl::android::media::audio::common::AudioPort* audioPort, 82 const ::aidl::android::media::audio::common::AudioPort& audioPort, 86 const ::aidl::android::media::audio::common::AudioPort& audioPort, CachedProxy& proxy);
|
D | ModuleUsb.h | 47 ::aidl::android::media::audio::common::AudioPort* audioPort, 54 const ::aidl::android::media::audio::common::AudioPort& audioPort,
|
D | ModuleAlsa.h | 36 ::aidl::android::media::audio::common::AudioPort* audioPort,
|
D | ModuleRemoteSubmix.h | 50 ::aidl::android::media::audio::common::AudioPort* audioPort,
|
D | Module.h | 192 ::aidl::android::media::audio::common::AudioPort* audioPort, int32_t nextPortId); 199 const ::aidl::android::media::audio::common::AudioPort& audioPort, bool connected); 201 const ::aidl::android::media::audio::common::AudioPort& audioPort);
|
/hardware/interfaces/audio/aidl/default/ |
D | Module.cpp | 1590 ndk::ScopedAStatus Module::populateConnectedDevicePort(AudioPort* audioPort, int32_t) { in populateConnectedDevicePort() argument 1591 if (audioPort->ext.getTag() != AudioPortExt::device) { in populateConnectedDevicePort() 1592 LOG(ERROR) << __func__ << ": " << mType << ": not a device port: " << audioPort->toString(); in populateConnectedDevicePort() 1595 const auto& devicePort = audioPort->ext.get<AudioPortExt::device>(); in populateConnectedDevicePort() 1614 const ::aidl::android::media::audio::common::AudioPort& audioPort __unused, in onExternalDeviceConnectionChanged() 1620 const ::aidl::android::media::audio::common::AudioPort& audioPort __unused) { in onPrepareToDisconnectExternalDevice()
|