Home
last modified time | relevance | path

Searched refs:mixPortConfig (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/libaudiohal/impl/
DHal2AidlMapper.cpp776 AudioPortConfig* mixPortConfig, AudioPatch* patch) { in prepareToOpenStream() argument
780 config->toString().c_str(), mixPortConfig->toString().c_str()); in prepareToOpenStream()
795 mixPortConfig, patch); in prepareToOpenStream()
807 &deviceConfig, mixPortConfig, patch); in prepareToOpenStream()
819 Cleanups* cleanups, AudioConfig* config, AudioPortConfig* mixPortConfig, in prepareToOpenStreamHelper() argument
824 std::set<int32_t>{devicePortId}, mixPortConfig, &created)); in prepareToOpenStreamHelper()
826 cleanups->add(&Hal2AidlMapper::resetPortConfig, mixPortConfig->id); in prepareToOpenStreamHelper()
828 setConfigFromPortConfig(config, *mixPortConfig); in prepareToOpenStreamHelper()
830 if (mixPortConfig->id == 0 && config->base == AudioConfigBase{}) { in prepareToOpenStreamHelper()
836 mixPortConfig->id = 0; in prepareToOpenStreamHelper()
[all …]
DDeviceHalAidl.cpp292 AudioPortConfig mixPortConfig; in getInputBufferSize() local
299 &cleanups, &aidlConfig, &mixPortConfig, &aidlPatch)); in getInputBufferSize()
303 if (mixPortConfig.id == 0) return BAD_VALUE; // HAL suggests a different config. in getInputBufferSize()
447 AudioPortConfig mixPortConfig; in openOutputStream() local
454 &cleanups, &aidlConfig, &mixPortConfig, &aidlPatch)); in openOutputStream()
458 if (mixPortConfig.id == 0) return BAD_VALUE; // HAL suggests a different config. in openOutputStream()
460 args.portConfigId = mixPortConfig.id; in openOutputStream()
493 mMapper.addStream(*outStream, mixPortConfig.id, aidlPatch.id); in openOutputStream()
530 AudioPortConfig mixPortConfig; in openInputStream() local
537 &cleanups, &aidlConfig, &mixPortConfig, &aidlPatch)); in openInputStream()
[all …]
DHal2AidlMapper.h86 ::aidl::android::media::audio::common::AudioPortConfig* mixPortConfig,
202 ::aidl::android::media::audio::common::AudioPortConfig* mixPortConfig,
/frameworks/av/media/libaudiohal/tests/
DCoreAudioHalAidl_test.cpp1210 AudioPortConfig mixPortConfig; in TEST_F() local
1215 &mixPortConfig, &transientPatch)); in TEST_F()
1218 ASSERT_NE(0, mixPortConfig.id); in TEST_F()
1220 mMapper->addStream(stream, mixPortConfig.id, transientPatch.id); in TEST_F()
1230 ASSERT_EQ(OK, mMapper->createOrUpdatePatch({backMicPortConfig}, {mixPortConfig}, &patchId, in TEST_F()
1243 EXPECT_EQ(std::vector<int32_t>{mixPortConfig.id}, patchIt->sinkPortConfigIds); in TEST_F()