@@ -423,8 +423,8 @@ class AudioFlinger :
423423 void sendConfigEvent_l (int event, int param = 0 );
424424 void processConfigEvents ();
425425 audio_io_handle_t id () const { return mId ;}
426- bool standby () { return mStandby ; }
427- uint32_t device () { return mDevice ; }
426+ bool standby () const { return mStandby ; }
427+ uint32_t device () const { return mDevice ; }
428428 virtual audio_stream_t * stream () = 0;
429429
430430 sp<EffectHandle> createEffect_l (
@@ -460,7 +460,7 @@ class AudioFlinger :
460460 // integrity of the chains during the process.
461461 void lockEffectChains_l (Vector<sp <EffectChain> >& effectChains);
462462 // unlock effect chains after process
463- void unlockEffectChains (Vector<sp <EffectChain> >& effectChains);
463+ void unlockEffectChains (const Vector<sp<EffectChain> >& effectChains);
464464 // set audio mode to all effect chains
465465 void setMode (audio_mode_t mode);
466466 // get effect module with corresponding ID on specified audio session
@@ -969,7 +969,7 @@ class AudioFlinger :
969969 virtual uint32_t activeSleepTimeUs ();
970970
971971 private:
972- bool outputsReady (SortedVector< sp<OutputTrack> > &outputTracks);
972+ bool outputsReady (const SortedVector<sp<OutputTrack> > &outputTracks);
973973 void updateWaitTime ();
974974
975975 SortedVector < sp<OutputTrack> > mOutputTracks ;
@@ -994,8 +994,9 @@ class AudioFlinger :
994994 PlaybackThread *srcThread,
995995 PlaybackThread *dstThread,
996996 bool reRegister);
997- PlaybackThread *primaryPlaybackThread_l ();
998- uint32_t primaryOutputDevice_l ();
997+ // return thread associated with primary hardware device, or NULL
998+ PlaybackThread *primaryPlaybackThread_l () const ;
999+ uint32_t primaryOutputDevice_l () const ;
9991000
10001001 friend class AudioBuffer ;
10011002
0 commit comments