Home
last modified time | relevance | path

Searched refs:channelMask (Results 1 – 25 of 97) sorted by relevance

1234

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioProfile.cpp31 status_t AudioProfile::checkExact(uint32_t samplingRate, audio_channel_mask_t channelMask, in checkExact() argument
35 supportsChannels(channelMask) && in checkExact()
98 status_t AudioProfile::checkCompatibleChannelMask(audio_channel_mask_t channelMask, in checkCompatibleChannelMask() argument
104 updatedChannelMask = channelMask; in checkCompatibleChannelMask()
108 const bool isIndex = audio_channel_mask_get_representation(channelMask) in checkCompatibleChannelMask()
113 if (supported == channelMask) { in checkCompatibleChannelMask()
115 updatedChannelMask = channelMask; in checkCompatibleChannelMask()
142 audio_channel_mask_get_bits(channelMask) in checkCompatibleChannelMask()
148 audio_channel_mask_get_bits(channelMask) & equivalentBits); in checkCompatibleChannelMask()
151 (1 << audio_channel_count_from_in_mask(channelMask)) - 1; in checkCompatibleChannelMask()
[all …]
DIOProfile.cpp36 audio_channel_mask_t channelMask, in isCompatibleProfile() argument
59 (isPlaybackThread && (samplingRate == 0 || !audio_is_output_channel(channelMask))) || in isCompatibleProfile()
60 (isRecordThread && (!audio_is_input_channel(channelMask)))) { in isCompatibleProfile()
65 audio_channel_mask_t myUpdatedChannelMask = channelMask; in isCompatibleProfile()
74 if (checkExactAudioProfile(samplingRate, channelMask, format) != NO_ERROR) { in isCompatibleProfile()
/frameworks/base/media/java/android/media/
DAudioGain.java72 AudioGain(int index, int mode, int channelMask, in AudioGain() argument
77 mChannelMask = channelMask; in AudioGain()
97 public int channelMask() { in channelMask() method in AudioGain
154 public AudioGainConfig buildConfig(int mode, int channelMask, in buildConfig() argument
157 return new AudioGainConfig(mIndex, this, mode, channelMask, values, rampDurationMs); in buildConfig()
DAudioDevicePortConfig.java29 AudioDevicePortConfig(AudioDevicePort devicePort, int samplingRate, int channelMask, in AudioDevicePortConfig() argument
31 super((AudioPort)devicePort, samplingRate, channelMask, format, gain); in AudioDevicePortConfig() local
35 this(config.port(), config.samplingRate(), config.channelMask(), config.format(), in AudioDevicePortConfig()
DAudioGainConfig.java35 AudioGainConfig(int index, AudioGain gain, int mode, int channelMask, in AudioGainConfig() argument
40 mChannelMask = channelMask; in AudioGainConfig()
65 public int channelMask() { in channelMask() method in AudioGainConfig
DAudioPortConfig.java48 AudioPortConfig(AudioPort port, int samplingRate, int channelMask, int format, in AudioPortConfig() argument
52 mChannelMask = channelMask; in AudioPortConfig()
75 public int channelMask() { in channelMask() method in AudioPortConfig
DAudioMixPortConfig.java29 AudioMixPortConfig(AudioMixPort mixPort, int samplingRate, int channelMask, int format, in AudioMixPortConfig() argument
31 super((AudioPort)mixPort, samplingRate, channelMask, format, gain); in AudioMixPortConfig() local
DAudioFormat.java630 private AudioFormat(int encoding, int sampleRate, int channelMask, int channelIndexMask) { in AudioFormat() argument
633 mChannelMask = channelMask; in AudioFormat()
864 public @NonNull Builder setChannelMask(int channelMask) { in setChannelMask() argument
865 if (channelMask == CHANNEL_INVALID) { in setChannelMask()
868 Integer.bitCount(channelMask) != Integer.bitCount(mChannelIndexMask)) { in setChannelMask()
870 Integer.toHexString(channelMask).toUpperCase()); in setChannelMask()
872 mChannelMask = channelMask; in setChannelMask()
DAudioMixPort.java45 public AudioMixPortConfig buildConfig(int samplingRate, int channelMask, int format, in buildConfig() argument
47 return new AudioMixPortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
DAudioDevicePort.java76 public AudioDevicePortConfig buildConfig(int samplingRate, int channelMask, int format, in buildConfig() argument
78 return new AudioDevicePortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
DAudioPort.java182 public AudioPortConfig buildConfig(int samplingRate, int channelMask, int format, in buildConfig() argument
184 return new AudioPortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
/frameworks/base/core/jni/
Dandroid_media_AudioFormat.h124 static inline audio_channel_mask_t outChannelMaskToNative(int channelMask) in outChannelMaskToNative() argument
126 switch (channelMask) { in outChannelMaskToNative()
131 return (audio_channel_mask_t)(channelMask>>2); in outChannelMaskToNative()
145 static inline audio_channel_mask_t inChannelMaskToNative(int channelMask) in inChannelMaskToNative() argument
147 return (audio_channel_mask_t)channelMask; in inChannelMaskToNative()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioPort.h87 audio_channel_mask_t channelMask, in checkExactAudioProfile() argument
90 return mProfiles.checkExactProfile(samplingRate, channelMask, format); in checkExactAudioProfile()
96 audio_channel_mask_t &channelMask, in checkCompatibleAudioProfile() argument
99 return mProfiles.checkCompatibleProfile(samplingRate, channelMask, format, mType, mRole); in checkCompatibleAudioProfile()
107 audio_channel_mask_t &channelMask,
146 … void pickChannelMask(audio_channel_mask_t &channelMask, const ChannelsVector &channelMasks) const;
DAudioSession.h40 audio_channel_mask_t channelMask,
53 audio_channel_mask_t channelMask() const { return mConfig.channel_mask; } in channelMask() function
/frameworks/av/media/libnbaio/
DAudioStreamInSource.cpp51 audio_channel_mask_t channelMask; in negotiate() local
52 result = mStream->getAudioProperties(&sampleRate, &channelMask, &streamFormat); in negotiate()
55 audio_channel_count_from_in_mask(channelMask), streamFormat); in negotiate()
DAudioStreamOutSink.cpp49 audio_channel_mask_t channelMask; in negotiate() local
50 result = mStream->getAudioProperties(&sampleRate, &channelMask, &streamFormat); in negotiate()
53 audio_channel_count_from_out_mask(channelMask), streamFormat); in negotiate()
/frameworks/wilhelm/tests/sandbox/
Dsrcsink.c48 format_pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT; in main()
161 format_pcm.channelMask = 0; in main()
167 format_pcm.channelMask = SL_SPEAKER_FRONT_CENTER; in main()
172 format_pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT | in main()
179 format_pcm.channelMask = 0; in main()
185 format_pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT; in main()
/frameworks/wilhelm/src/android/
DAudioRecorder_to_android.cpp668 df_pcm->channelMask, in android_audioRecorder_realize()
673 audio_channel_mask_t channelMask = sles_to_audio_input_channel_mask(df_pcm->channelMask); in android_audioRecorder_realize() local
677 if (channelMask == AUDIO_CHANNEL_INVALID in android_audioRecorder_realize()
678 || audio_channel_mask_get_representation(channelMask) in android_audioRecorder_realize()
680 channelMask = audio_channel_in_mask_from_count(df_pcm->numChannels); in android_audioRecorder_realize()
683 "channel count of %d)", df_pcm->channelMask, channelMask, in android_audioRecorder_realize()
686 SL_LOGV("SLES channel mask %#x converted to Android mask %#x", df_pcm->channelMask, in android_audioRecorder_realize()
687 channelMask); in android_audioRecorder_realize()
694 channelMask, // channel mask in android_audioRecorder_realize()
/frameworks/base/cmds/bootanimation/
Daudioplay.cpp145 SLuint32 channelMask; in createBufferQueueAudioPlayer() local
148 channelMask = SL_SPEAKER_FRONT_CENTER; in createBufferQueueAudioPlayer()
151 channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT; in createBufferQueueAudioPlayer()
155 channelMask = 0; in createBufferQueueAudioPlayer()
164 channelMask, in createBufferQueueAudioPlayer()
/frameworks/av/media/libaudiohal/
DStreamPowerLog.h42 void init(uint32_t sampleRate, audio_channel_mask_t channelMask, audio_format_t format) { in init() argument
46 const uint32_t channelCount = popcount(audio_channel_mask_get_bits(channelMask)); in init()
/frameworks/av/media/libstagefright/
DAudioPlayer.cpp129 int32_t numChannels, channelMask; in start() local
133 if(!format->findInt32(kKeyChannelMask, &channelMask)) { in start()
137 channelMask = CHANNEL_MASK_USE_CHANNEL_ORDER; in start()
183 offloadInfo.channel_mask = channelMask; in start()
192 mSampleRate, numChannels, channelMask, audioFormat, in start()
233 audio_channel_mask_t audioMask = channelMask == CHANNEL_MASK_USE_CHANNEL_ORDER ? in start()
234 audio_channel_out_mask_from_count(numChannels) : channelMask; in start()
/frameworks/av/media/libaudioclient/
DAudioRecord.cpp40 audio_channel_mask_t channelMask) in getMinFrameCount() argument
47 status_t status = AudioSystem::getInputBufferSize(sampleRate, format, channelMask, &size); in getMinFrameCount()
50 "channelMask %#x; status %d", sampleRate, format, channelMask, status); in getMinFrameCount()
56 if ((*frameCount = (size * 2) / (audio_channel_count_from_in_mask(channelMask) * in getMinFrameCount()
59 sampleRate, format, channelMask); in getMinFrameCount()
81 audio_channel_mask_t channelMask, in AudioRecord() argument
103 mStatus = set(inputSource, sampleRate, format, channelMask, frameCount, cbf, user, in AudioRecord()
140 audio_channel_mask_t channelMask, in set() argument
156 inputSource, sampleRate, format, channelMask, frameCount, notificationFrames, in set()
213 if (!audio_is_input_channel(channelMask)) { in set()
[all …]
/frameworks/av/services/audioflinger/
DTracks.cpp67 audio_channel_mask_t channelMask, in TrackBase() argument
85 mChannelMask(channelMask), in TrackBase()
87 audio_channel_count_from_out_mask(channelMask) : in TrackBase()
88 audio_channel_count_from_in_mask(channelMask)), in TrackBase()
376 audio_channel_mask_t channelMask, in Track() argument
386 : TrackBase(thread, client, sampleRate, format, channelMask, frameCount, in Track()
429 mName = thread->getTrackName_l(channelMask, format, sessionId, uid); in Track()
1254 audio_channel_mask_t channelMask, in OutputTrack() argument
1258 sampleRate, format, channelMask, frameCount, in OutputTrack()
1453 audio_channel_mask_t channelMask, in PatchTrack() argument
[all …]
DAudioFlinger.h120 audio_channel_mask_t channelMask,
136 audio_channel_mask_t channelMask,
181 audio_channel_mask_t channelMask) const;
380 static inline bool isValidPcmSinkChannelMask(audio_channel_mask_t channelMask) { in isValidPcmSinkChannelMask() argument
381 switch (audio_channel_mask_get_representation(channelMask)) { in isValidPcmSinkChannelMask()
385 channelCount = audio_channel_count_from_out_mask(channelMask); in isValidPcmSinkChannelMask()
392 return channelMask == audio_channel_out_mask_from_count(channelCount); in isValidPcmSinkChannelMask()
396 const uint32_t channelCount = audio_channel_count_from_out_mask(channelMask); in isValidPcmSinkChannelMask()
DRecordTracks.h29 audio_channel_mask_t channelMask,
102 audio_channel_mask_t channelMask,

1234