summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2015-06-09 18:40:25 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-09 18:40:26 +0000
commit4492b55354e3fa18330d389ced1daf1635fdde33 (patch)
treeb002d566bf904b2e1da82f1a83e719631a106078 /services
parentf028dad745f85066abc0229d61c0d837f40dc000 (diff)
parente1635ec096d1110c33a5aa46847af59c261fb7fa (diff)
downloadframeworks_av-4492b55354e3fa18330d389ced1daf1635fdde33.zip
frameworks_av-4492b55354e3fa18330d389ced1daf1635fdde33.tar.gz
frameworks_av-4492b55354e3fa18330d389ced1daf1635fdde33.tar.bz2
Merge "Take advantage of audio_channel_in_mask_from_count" into mnc-dev
Diffstat (limited to 'services')
-rw-r--r--services/audioflinger/Threads.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index dc6710f..ad445a5 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -743,7 +743,8 @@ void AudioFlinger::ThreadBase::processConfigEvents_l()
String8 channelMaskToString(audio_channel_mask_t mask, bool output) {
String8 s;
- const audio_channel_representation_t representation = audio_channel_mask_get_representation(mask);
+ const audio_channel_representation_t representation =
+ audio_channel_mask_get_representation(mask);
switch (representation) {
case AUDIO_CHANNEL_REPRESENTATION_POSITION: {
@@ -6709,11 +6710,8 @@ bool AudioFlinger::RecordThread::checkForNewParameter_l(const String8& keyValueP
audio_format_t reqFormat = mFormat;
uint32_t samplingRate = mSampleRate;
+ // TODO this may change if we want to support capture from HDMI PCM multi channel (e.g on TVs).
audio_channel_mask_t channelMask = audio_channel_in_mask_from_count(mChannelCount);
- // possible that we are > 2 channels, use channel index mask
- if (channelMask == AUDIO_CHANNEL_INVALID && mChannelCount <= FCC_8) {
- audio_channel_mask_for_index_assignment_from_count(mChannelCount);
- }
AudioParameter param = AudioParameter(keyValuePair);
int value;