Searched refs:format2 (Results 1 – 5 of 5) sorted by relevance
163 int PolicyAudioPort::compareFormats(audio_format_t format1, audio_format_t format2) in compareFormats() argument168 if (!audio_is_linear_pcm(format2)) { in compareFormats()173 if (!audio_is_linear_pcm(format2)) { in compareFormats()184 if (sPcmFormatCompareTable[i] == format2) { in compareFormats()193 uint32_t PolicyAudioPort::formatDistance(audio_format_t format1, audio_format_t format2) in formatDistance() argument195 if (format1 == format2) { in formatDistance()198 if (format1 == AUDIO_FORMAT_INVALID || format2 == AUDIO_FORMAT_INVALID) { in formatDistance()202 audio_bytes_per_sample(format2); in formatDistance()
163 bool Format_isEqual(const NBAIO_Format& format1, const NBAIO_Format& format2) in Format_isEqual() argument165 return format1.mSampleRate == format2.mSampleRate && in Format_isEqual()166 format1.mChannelCount == format2.mChannelCount && format1.mFormat == format2.mFormat && in Format_isEqual()167 format1.mFrameSize == format2.mFrameSize; in Format_isEqual()
180 audio_format_t format2) in audio_formats_match() argument184 audio_is_linear_pcm(format2) && in audio_formats_match()185 (audio_bytes_per_sample(format2) > 2)) { in audio_formats_match()188 return format1 == format2; in audio_formats_match()
84 static int compareFormats(audio_format_t format1, audio_format_t format2);92 audio_format_t format2);
91 bool Format_isEqual(const NBAIO_Format& format1, const NBAIO_Format& format2);