@@ -424,8 +424,8 @@ class AudioFlinger :
424424 void sendConfigEvent_l (int event, int param = 0 );
425425 void processConfigEvents ();
426426 audio_io_handle_t id () const { return mId ;}
427- bool standby () { return mStandby ; }
428- uint32_t device () { return mDevice ; }
427+ bool standby () const { return mStandby ; }
428+ uint32_t device () const { return mDevice ; }
429429 virtual audio_stream_t * stream () = 0;
430430
431431 sp<EffectHandle> createEffect_l (
@@ -461,7 +461,7 @@ class AudioFlinger :
461461 // integrity of the chains during the process.
462462 void lockEffectChains_l (Vector<sp <EffectChain> >& effectChains);
463463 // unlock effect chains after process
464- void unlockEffectChains (Vector<sp <EffectChain> >& effectChains);
464+ void unlockEffectChains (const Vector<sp<EffectChain> >& effectChains);
465465 // set audio mode to all effect chains
466466 void setMode (audio_mode_t mode);
467467 // get effect module with corresponding ID on specified audio session
@@ -968,7 +968,7 @@ class AudioFlinger :
968968 virtual uint32_t activeSleepTimeUs ();
969969
970970 private:
971- bool outputsReady (SortedVector< sp<OutputTrack> > &outputTracks);
971+ bool outputsReady (const SortedVector<sp<OutputTrack> > &outputTracks);
972972 void updateWaitTime ();
973973
974974 SortedVector < sp<OutputTrack> > mOutputTracks ;
@@ -993,8 +993,9 @@ class AudioFlinger :
993993 PlaybackThread *srcThread,
994994 PlaybackThread *dstThread,
995995 bool reRegister);
996- PlaybackThread *primaryPlaybackThread_l ();
997- uint32_t primaryOutputDevice_l ();
996+ // return thread associated with primary hardware device, or NULL
997+ PlaybackThread *primaryPlaybackThread_l () const ;
998+ uint32_t primaryOutputDevice_l () const ;
998999
9991000 friend class AudioBuffer ;
10001001
0 commit comments