Searched refs:asAudioPort (Results 1 – 8 of 8) sorted by relevance
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | PolicyAudioPort.h | 50 virtual sp<AudioPort> asAudioPort() const = 0; 57 if (asAudioPort()->getRole() == AUDIO_PORT_ROLE_SOURCE && in setFlags() 82 asAudioPort()->getAudioProfiles(), samplingRate, channelMask, format, in checkCompatibleAudioProfile() 83 asAudioPort()->getType(), asAudioPort()->getRole()); in checkCompatibleAudioProfile() 110 return (asAudioPort()->getType() == AUDIO_PORT_TYPE_MIX) && in isDirectOutput() 111 (asAudioPort()->getRole() == AUDIO_PORT_ROLE_SOURCE) && in isDirectOutput() 117 return (asAudioPort()->getType() == AUDIO_PORT_TYPE_MIX) in isMmap() 118 && (((asAudioPort()->getRole() == AUDIO_PORT_ROLE_SOURCE) && in isMmap() 120 || ((asAudioPort()->getRole() == AUDIO_PORT_ROLE_SINK) && in isMmap()
|
D | IOProfile.h | 54 virtual sp<AudioPort> asAudioPort() const { in asAudioPort() function
|
D | DeviceDescriptor.h | 83 virtual sp<AudioPort> asAudioPort() const { in asAudioPort() function
|
D | AudioOutputDescriptor.h | 262 virtual sp<AudioPort> getAudioPort() const { return mPolicyAudioPort->asAudioPort(); } in getAudioPort()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | PolicyAudioPort.cpp | 34 __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 …]
|
D | HwModule.cpp | 167 if (route->getSink()->asAudioPort()->getType() == AUDIO_PORT_TYPE_DEVICE) { in getRouteSinkDevice() 177 if (source->asAudioPort()->getType() == AUDIO_PORT_TYPE_DEVICE) { in getRouteSourceDevices()
|
D | DeviceDescriptor.cpp | 175 if (!force && !policyPort->asAudioPort()->hasDynamicAudioProfile()) { in importAudioPortAndPickAudioProfile() 178 AudioPort::importAudioPort(policyPort->asAudioPort()); in importAudioPortAndPickAudioProfile()
|
D | AudioOutputDescriptor.cpp | 47 if (mPolicyAudioPort->asAudioPort()->getGains().size() > 0) { in AudioOutputDescriptor() 48 mPolicyAudioPort->asAudioPort()->getGains()[0]->getDefaultConfig(&mGain); in AudioOutputDescriptor() 221 mPolicyAudioPort->asAudioPort()->toAudioPort(port); in toAudioPort()
|