Home
last modified time | relevance | path

Searched refs:channel_mask (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/av/services/audioflinger/datapath/
DSpdifStreamOut.cpp54 mApplicationConfig.channel_mask = config->channel_mask; in open()
64 customConfig.channel_mask = AUDIO_CHANNEL_OUT_STEREO; in open()
70 " channelMask %#x", config->sample_rate, config->format, config->channel_mask); in open()
72 customConfig.sample_rate, customConfig.format, customConfig.channel_mask); in open()
86 audio_channel_count_from_out_mask(customConfig.channel_mask), in open()
DSpdifStreamIn.cpp56 mApplicationConfig.channel_mask = config->channel_mask; in open()
65 customConfig.channel_mask = AUDIO_CHANNEL_IN_STEREO; in open()
71 config->sample_rate, config->format, config->channel_mask); in open()
73 customConfig.sample_rate, customConfig.format, customConfig.channel_mask); in open()
90 audio_channel_count_from_in_mask(customConfig.channel_mask), in open()
DAudioHwDevice.cpp54 config->format, config->channel_mask); in openOutputStream()
65 " status %d", config->sample_rate, config->format, config->channel_mask, status); in openOutputStream()
109 config->format, config->channel_mask); in openInputStream()
119 (audio_channel_count_from_in_mask(config->channel_mask) <= FCC_LIMIT) && in openInputStream()
120 (audio_channel_count_from_in_mask(originalConfig.channel_mask) <= FCC_LIMIT)) { in openInputStream()
138 " status %d", config->sample_rate, config->format, config->channel_mask, status); in openInputStream()
DAudioStreamIn.cpp97 config->channel_mask, status); in open()
116 result.channel_mask = AUDIO_CHANNEL_INVALID; in getAudioProperties()
DAudioStreamOut.cpp113 config->channel_mask, status); in open()
149 result.channel_mask = AUDIO_CHANNEL_INVALID; in getAudioProperties()
/frameworks/av/media/libaudiofoundation/
DAudioGain.cpp44 config->channel_mask = mGain.channel_mask; in getDefaultConfig()
49 audio_channel_count_from_in_mask(mGain.channel_mask) : in getDefaultConfig()
50 audio_channel_count_from_out_mask(mGain.channel_mask); in getDefaultConfig()
71 if ((config->channel_mask & ~mGain.channel_mask) != 0) { in checkConfig()
75 audio_channel_count_from_in_mask(config->channel_mask) : in checkConfig()
76 audio_channel_count_from_out_mask(config->channel_mask); in checkConfig()
97 dst->append(base::StringPrintf("%*s- channel_mask: %08x\n", spaces, "", mGain.channel_mask)); in dump()
113 mGain.channel_mask == other->mGain.channel_mask && in equals()
/frameworks/av/media/libaudioclient/include/media/
DAudioCommonTypes.h114 lhs.sample_rate == rhs.sample_rate && lhs.channel_mask == rhs.channel_mask &&
129 return lhs.sample_rate == rhs.sample_rate && lhs.channel_mask == rhs.channel_mask &&
139 return lhs.sample_rate == rhs.sample_rate && lhs.channel_mask == rhs.channel_mask &&
/frameworks/av/services/mediametrics/
Dstatsd_audiotrack.cpp86 int64_t channel_mask = -1; in statsd_audiotrack() local
87 if (item->getInt64("android.media.audiotrack.channelMask", &channel_mask)) { in statsd_audiotrack()
88 metrics_proto.set_channel_mask(channel_mask); in statsd_audiotrack()
157 << " channel_mask:" << channel_mask in statsd_audiotrack()
Dstatsd_audiorecord.cpp128 int64_t channel_mask = -1; in statsd_audiorecord() local
129 if (item->getInt64("android.media.audiorecord.channelMask", &channel_mask)) { in statsd_audiorecord()
130 metrics_proto.set_channel_mask(channel_mask); in statsd_audiorecord()
180 << " channel_mask:" << channel_mask in statsd_audiorecord()
Dstatsd_audiothread.cpp120 int32_t channel_mask = -1; in statsd_audiothread() local
121 if (item->getInt32(MM_PREFIX "channelMask", &channel_mask)) { in statsd_audiothread()
122 metrics_proto.set_channel_mask(channel_mask); in statsd_audiothread()
220 << " channel_mask:" << channel_mask in statsd_audiothread()
/frameworks/av/services/oboeservice/
DAAudioServiceEndpointMMAP.cpp94 } else if (lhs.channel_mask != rhs.channel_mask) { in operator ()()
95 return lhs.channel_mask < rhs.channel_mask; in operator ()()
127 config.channel_mask = AAudio_getChannelMaskForOpen( in open()
207 config->channel_mask, deviceId); in openWithConfig()
226 __func__, status, config->format, config->sample_rate, config->channel_mask); in openWithConfig()
228 config->channel_mask = currentConfig.channel_mask; in openWithConfig()
258 config->channel_mask, getDirection() == AAUDIO_DIRECTION_INPUT, in openWithConfig()
259 AAudio_isChannelIndexMask(config->channel_mask))); in openWithConfig()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DPreferredMixerAttributesInfo.h55 config.channel_mask == mMixerAttributes.config.channel_mask && in configMatches()
/frameworks/av/media/audioaidlconversion/
DAidlConversionNdk.cpp145 legacy.channel_mask = VALUE_OR_RETURN(aidl2legacy_AudioChannelLayout_audio_channel_mask_t( in aidl2legacy_PlaybackTrackMetadata_playback_track_metadata_v7()
160 legacy.channel_mask, false /*isInput*/)); in legacy2aidl_playback_track_metadata_v7_PlaybackTrackMetadata()
176 legacy.channel_mask = VALUE_OR_RETURN(aidl2legacy_AudioChannelLayout_audio_channel_mask_t( in aidl2legacy_RecordTrackMetadata_record_track_metadata_v7()
192 legacy.channel_mask, true /*isInput*/)); in legacy2aidl_record_track_metadata_v7_RecordTrackMetadata()
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp102 && config1.channel_mask == config2.channel_mask; in equals()
294 config.channel_mask = channelMask; in getOutputForAttr()
325 config.channel_mask = channelMask; in getInputForAttr()
729 ASSERT_EQ(AUDIO_CHANNEL_INDEX_MASK_24, patch->mPatch.sources[0].channel_mask); in TEST_P()
730 ASSERT_EQ(AUDIO_CHANNEL_INDEX_MASK_24, patch->mPatch.sinks[0].channel_mask); in TEST_P()
786 directConfig.channel_mask = AUDIO_CHANNEL_OUT_5POINT1; in TEST_P()
791 nonDirectConfig.channel_mask = AUDIO_CHANNEL_OUT_STEREO; in TEST_P()
796 nonExistentConfig.channel_mask = AUDIO_CHANNEL_OUT_STEREO; in TEST_P()
801 msdDirectConfig1.channel_mask = AUDIO_CHANNEL_OUT_5POINT1; in TEST_P()
806 msdDirectConfig2.channel_mask = AUDIO_CHANNEL_INDEX_MASK_24; in TEST_P()
[all …]
/frameworks/av/media/libaudiofoundation/include/media/
DAudioGain.h40 void setChannelMask(audio_channel_mask_t mask) { mGain.channel_mask = mask; } in setChannelMask()
41 const audio_channel_mask_t &getChannelMask() const { return mGain.channel_mask; } in getChannelMask()
/frameworks/av/media/libnbaio/
DAudioStreamOutSink.cpp51 audio_channel_count_from_out_mask(config.channel_mask), config.format); in negotiate()
58 audio_channel_count_from_out_mask(config.channel_mask), in negotiate()
/frameworks/av/media/libaudioclient/tests/
Daudiotrack_tests.cpp74 info.channel_mask = AUDIO_CHANNEL_OUT_STEREO; in TEST()
81 /* .channel_mask = */ info.channel_mask, in TEST()
94 ap = sp<AudioPlayback>::make(info.sample_rate, info.format, info.channel_mask, in TEST()
98 ap = sp<AudioPlayback>::make(config.sample_rate, config.format, config.channel_mask, in TEST()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DPreferredMixerAttributesInfo.cpp26 mMixerAttributes.config.sample_rate, mMixerAttributes.config.channel_mask, in dump()
DClientDescriptor.cpp50 audio_format_to_string(mConfig.format), mConfig.sample_rate, mConfig.channel_mask); in dump()
102 {config.sample_rate, config.channel_mask, config.format}, AUDIO_PORT_HANDLE_NONE, in SourceClientDescriptor()
DAudioOutputDescriptor.cpp58 const audio_config_base_t config = { .sample_rate = mSamplingRate, .channel_mask = mChannelMask, in getConfig()
609 lHalConfig.channel_mask = mChannelMask; in open()
622 lHalConfig.offload_info.channel_mask = lHalConfig.channel_mask; in open()
631 lMixerConfig.channel_mask = lHalConfig.channel_mask; in open()
643 lMixerConfig.channel_mask = AUDIO_CHANNEL_OUT_5POINT1; in open()
664 mChannelMask = lHalConfig.channel_mask; in open()
666 mMixerChannelMask = lMixerConfig.channel_mask; in open()
1015 && mChannelMask == config.channel_mask in isConfigurationMatched()
DDeviceDescriptor.cpp144 if (mPreferredConfig->channel_mask != AUDIO_CHANNEL_NONE) { in toAudioPortConfig()
146 dstConfig->channel_mask = mPreferredConfig->channel_mask; in toAudioPortConfig()
222 spaces, "", mPreferredConfig.value().format, mPreferredConfig.value().channel_mask, in dump()
/frameworks/av/services/audiopolicy/fuzzer/
Daudiopolicy_fuzzer.cpp260 config.channel_mask = channelMask; in getOutputForAttr()
291 config.channel_mask = channelMask; in getInputForAttr()
591 audioConfig.channel_mask = getValueFromVector<audio_channel_mask_t>( in registerPolicyMixes()
677 mAudioConfig.channel_mask = in initialize()
700 mAudioConfig.channel_mask, mAudioConfig.sample_rate, AUDIO_INPUT_FLAG_NONE, in initialize()
728 getOutputForAttr(&playbackRoutedPortId, mAudioConfig.format, mAudioConfig.channel_mask, in playBackReRouting()
792 mAudioConfig.channel_mask = in initialize()
814 getOutputForAttr(&selectedDeviceId, mAudioConfig.format, mAudioConfig.channel_mask, in initialize()
845 mAudioConfig.channel_mask, mAudioConfig.sample_rate, AUDIO_INPUT_FLAG_NONE, in recordingInjection()
931 config.channel_mask = getValueFromVector<audio_channel_mask_t>(mFdp, kAudioChannelOutMasks); in fuzzGetDirectPlaybackSupport()
/frameworks/av/media/libaudiofoundation/tests/
Daudiofoundation_parcelable_test.cpp40 .channel_mask = AUDIO_CHANNEL_OUT_STEREO,
45 .channel_mask = AUDIO_CHANNEL_OUT_STEREO,
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp1238 .channel_mask = config->channel_mask, in getOutputForAttrInt()
1268 && (audio_channel_count_from_out_mask(policyDesc->getConfig().channel_mask) < in getOutputForAttrInt()
1269 audio_channel_count_from_out_mask(config->channel_mask)); in getOutputForAttrInt()
1340 config->channel_mask, *flags, toString(*stream).c_str()); in getOutputForAttrInt()
1402 if (!channels.empty() && (channels.find(config->channel_mask) == channels.end())) { in getOutputForAttrInt()
1403 config->channel_mask = *channels.begin(); in getOutputForAttrInt()
1486 .channel_mask = config->channel_mask, in getOutputForAttr()
1521 audio_channel_count_from_out_mask(config->channel_mask) <= 2) { in openDirectOutput()
1535 devices, config->sample_rate, config->format, config->channel_mask, in openDirectOutput()
1551 (config->channel_mask == desc->getChannelMask()) && in openDirectOutput()
[all …]
/frameworks/av/media/libaudioclient/fuzzer/
Daudioflinger_fuzzer.cpp246 offloadInfo.channel_mask = channelMask; in invokeAudioTrack()
607 config.channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioInputDevice()
614 config.offload_info.channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioInputDevice()
665 config.channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioOutputDevice()
670 config.offload_info.channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioOutputDevice()
729 patch.sources[i].channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioPatch()
731 patch.sources[i].gain.channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioPatch()
741 patch.sinks[i].channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioPatch()
743 patch.sinks[i].gain.channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioPatch()

123