Home
last modified time | relevance | path

Searched refs:asAudioPort (Results 1 – 8 of 8) sorted by relevance

/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DPolicyAudioPort.h45 virtual sp<AudioPort> asAudioPort() const = 0;
52 if (asAudioPort()->getRole() == AUDIO_PORT_ROLE_SOURCE && in setFlags()
77 asAudioPort()->getAudioProfiles(), samplingRate, channelMask, format, in checkCompatibleAudioProfile()
78 asAudioPort()->getType(), asAudioPort()->getRole()); in checkCompatibleAudioProfile()
105 return (asAudioPort()->getType() == AUDIO_PORT_TYPE_MIX) && in isDirectOutput()
106 (asAudioPort()->getRole() == AUDIO_PORT_ROLE_SOURCE) && in isDirectOutput()
112 return (asAudioPort()->getType() == AUDIO_PORT_TYPE_MIX) in isMmap()
113 && (((asAudioPort()->getRole() == AUDIO_PORT_ROLE_SOURCE) && in isMmap()
115 || ((asAudioPort()->getRole() == AUDIO_PORT_ROLE_SINK) && in isMmap()
DIOProfile.h54 virtual sp<AudioPort> asAudioPort() const { in asAudioPort() function
DDeviceDescriptor.h80 virtual sp<AudioPort> asAudioPort() const { in asAudioPort() function
DAudioOutputDescriptor.h261 virtual sp<AudioPort> getAudioPort() const { return mPolicyAudioPort->asAudioPort(); } in getAudioPort()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DPolicyAudioPort.cpp34 __FUNCTION__, getModuleName(), asAudioPort()->getName().c_str()); in attach()
70 status = asAudioPort()->checkGain(&config->gain, config->gain.index); in checkExactAudioProfile()
77 status = checkExactProfile(asAudioPort()->getAudioProfiles(), config->sample_rate, in checkExactAudioProfile()
104 if (asAudioPort()->getType() == AUDIO_PORT_TYPE_MIX) { in pickSamplingRate()
129 if (asAudioPort()->useInputChannelMask()) { in pickChannelMask()
145 if (asAudioPort()->getType() != AUDIO_PORT_TYPE_MIX) { in pickChannelMask()
150 if (asAudioPort()->useInputChannelMask()) { in pickChannelMask()
233 if (!asAudioPort()->hasValidAudioProfile()) { in pickAudioProfile()
239 if ((asAudioPort()->getType() != AUDIO_PORT_TYPE_MIX) || isDirectOutput()) { in pickAudioProfile()
243 const AudioProfileVector& audioProfiles = asAudioPort()->getAudioProfiles(); in pickAudioProfile()
[all …]
DDeviceDescriptor.cpp164 if (!force && !policyPort->asAudioPort()->hasDynamicAudioProfile()) { in importAudioPortAndPickAudioProfile()
167 AudioPort::importAudioPort(policyPort->asAudioPort()); in importAudioPortAndPickAudioProfile()
DHwModule.cpp157 if (route->getSink()->asAudioPort()->getType() == AUDIO_PORT_TYPE_DEVICE) { in getRouteSinkDevice()
167 if (source->asAudioPort()->getType() == AUDIO_PORT_TYPE_DEVICE) { in getRouteSourceDevices()
DAudioOutputDescriptor.cpp47 if (mPolicyAudioPort->asAudioPort()->getGains().size() > 0) { in AudioOutputDescriptor()
48 mPolicyAudioPort->asAudioPort()->getGains()[0]->getDefaultConfig(&mGain); in AudioOutputDescriptor()
215 mPolicyAudioPort->asAudioPort()->toAudioPort(port); in toAudioPort()