diff options
Diffstat (limited to 'services/audioflinger/AudioFlinger.h')
-rw-r--r-- | services/audioflinger/AudioFlinger.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h index 51b2610..d087ced 100644 --- a/services/audioflinger/AudioFlinger.h +++ b/services/audioflinger/AudioFlinger.h @@ -257,6 +257,9 @@ public: /* Get the HW synchronization source used for an audio session */ virtual audio_hw_sync_t getAudioHwSyncForSession(audio_session_t sessionId); + /* Indicate JAVA services are ready (scheduling, power management ...) */ + virtual status_t systemReady(); + virtual status_t onTransact( uint32_t code, const Parcel& data, @@ -356,6 +359,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; } @@ -752,6 +764,7 @@ private: uint32_t mPrimaryOutputSampleRate; // sample rate of the primary output, or zero if none // protected by mHardwareLock + bool mSystemReady; }; #undef INCLUDING_FROM_AUDIOFLINGER_H |