Home
last modified time | relevance | path

Searched refs:portConfig (Results 1 – 5 of 5) sorted by relevance

/frameworks/av/media/libaudiohal/impl/
DHal2AidlMapper.cpp64 bool isConfigEqualToPortConfig(const AudioConfig& config, const AudioPortConfig& portConfig) { in isConfigEqualToPortConfig() argument
65 return portConfig.sampleRate.value().value == config.base.sampleRate && in isConfigEqualToPortConfig()
66 portConfig.channelMask.value() == config.base.channelMask && in isConfigEqualToPortConfig()
67 portConfig.format.value() == config.base.format; in isConfigEqualToPortConfig()
70 AudioConfig* setConfigFromPortConfig(AudioConfig* config, const AudioPortConfig& portConfig) { in setConfigFromPortConfig() argument
71 config->base.sampleRate = portConfig.sampleRate.value().value; in setConfigFromPortConfig()
72 config->base.channelMask = portConfig.channelMask.value(); in setConfigFromPortConfig()
73 config->base.format = portConfig.format.value(); in setConfigFromPortConfig()
77 void setPortConfigFromConfig(AudioPortConfig* portConfig, const AudioConfig& config) { in setPortConfigFromConfig() argument
79 portConfig->sampleRate = Int{ .value = config.base.sampleRate }; in setPortConfigFromConfig()
[all …]
DHal2AidlMapper.h59 ::aidl::android::media::audio::common::AudioPortConfig* portConfig);
91 ::aidl::android::media::audio::common::AudioPortConfig* portConfig,
167 ::aidl::android::media::audio::common::AudioPortConfig* portConfig,
177 ::aidl::android::media::audio::common::AudioPortConfig* portConfig, bool* created);
181 ::aidl::android::media::audio::common::AudioPortConfig* portConfig, bool* created);
DDeviceHalAidl.cpp751 AudioPortConfig portConfig; in setAudioPortConfig() local
753 return mMapper.setPortConfig(requestedPortConfig, std::set<int32_t>(), &portConfig); in setAudioPortConfig()
/frameworks/av/media/libaudiohal/tests/
DCoreAudioHalAidl_test.cpp1292 auto portConfig = mModule->getPortConfig(resultingPortConfig.id); in TEST_F() local
1293 ASSERT_TRUE(portConfig.has_value()); in TEST_F()
1294 ASSERT_TRUE(portConfig->gain.has_value()); in TEST_F()
1295 EXPECT_EQ(gainConfig, portConfig->gain); in TEST_F()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp8763 auto portConfig = desc->getConfig(); in openOutputWithProfileAndDevice() local
8765 device->setPreferredConfig(&portConfig); in openOutputWithProfileAndDevice()