diff options
| author | Andy Hung <hunga@google.com> | 2015-05-19 12:32:58 -0700 | 
|---|---|---|
| committer | Andy Hung <hunga@google.com> | 2015-05-19 13:01:13 -0700 | 
| commit | 64b6cb2cd5646a5ffcdb2cccee09a170ef2882d5 (patch) | |
| tree | 40c1f747e33929aa133c4671b603fadea10b635e /services/audioflinger | |
| parent | 467b6e152e3064b8da58551effb39e72acec14af (diff) | |
| download | frameworks_av-64b6cb2cd5646a5ffcdb2cccee09a170ef2882d5.zip frameworks_av-64b6cb2cd5646a5ffcdb2cccee09a170ef2882d5.tar.gz frameworks_av-64b6cb2cd5646a5ffcdb2cccee09a170ef2882d5.tar.bz2  | |
Allow creation of output endpoints with channel index masks
Bug: 21301523
Change-Id: I97e578f3da933f7086e4f431a199ed907f04cbc8
Diffstat (limited to 'services/audioflinger')
| -rw-r--r-- | services/audioflinger/AudioFlinger.h | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h index 51b2610..d1e52d5 100644 --- a/services/audioflinger/AudioFlinger.h +++ b/services/audioflinger/AudioFlinger.h @@ -356,6 +356,15 @@ private:              // check that channelMask is the "canonical" one we expect for the channelCount.              return channelMask == audio_channel_out_mask_from_count(channelCount);              } +        case AUDIO_CHANNEL_REPRESENTATION_INDEX: +            if (kEnableExtendedChannels) { +                const uint32_t channelCount = audio_channel_count_from_out_mask(channelMask); +                if (channelCount >= FCC_2 // mono is not supported at this time +                        && channelCount <= AudioMixer::MAX_NUM_CHANNELS) { +                    return true; +                } +            } +            return false;          default:              return false;          }  | 
