Searched refs:asAudioPort (Results 1 – 8 of 8) sorted by relevance
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | PolicyAudioPort.h | 45 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()
|
D | IOProfile.h | 54 virtual sp<AudioPort> asAudioPort() const { in asAudioPort() function
|
D | DeviceDescriptor.h | 80 virtual sp<AudioPort> asAudioPort() const { in asAudioPort() function
|
D | AudioOutputDescriptor.h | 261 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 | DeviceDescriptor.cpp | 164 if (!force && !policyPort->asAudioPort()->hasDynamicAudioProfile()) { in importAudioPortAndPickAudioProfile() 167 AudioPort::importAudioPort(policyPort->asAudioPort()); in importAudioPortAndPickAudioProfile()
|
D | HwModule.cpp | 157 if (route->getSink()->asAudioPort()->getType() == AUDIO_PORT_TYPE_DEVICE) { in getRouteSinkDevice() 167 if (source->asAudioPort()->getType() == AUDIO_PORT_TYPE_DEVICE) { in getRouteSourceDevices()
|
D | AudioOutputDescriptor.cpp | 47 if (mPolicyAudioPort->asAudioPort()->getGains().size() > 0) { in AudioOutputDescriptor() 48 mPolicyAudioPort->asAudioPort()->getGains()[0]->getDefaultConfig(&mGain); in AudioOutputDescriptor() 215 mPolicyAudioPort->asAudioPort()->toAudioPort(port); in toAudioPort()
|