Loading services/audioflinger/Threads.cpp +5 −5 Original line number Original line Diff line number Diff line Loading @@ -2041,7 +2041,7 @@ sp<AudioFlinger::PlaybackThread::Track> AudioFlinger::PlaybackThread::createTrac pid_t callingPid = IPCThreadState::self()->getCallingPid(); pid_t callingPid = IPCThreadState::self()->getCallingPid(); // we don't have CAP_SYS_NICE, nor do we want to have it as it's too powerful, // we don't have CAP_SYS_NICE, nor do we want to have it as it's too powerful, // so ask activity manager to do this on our behalf // so ask activity manager to do this on our behalf sendPrioConfigEvent_l(callingPid, tid, kPriorityAudioApp, true /*isForApp*/); sendPrioConfigEvent_l(callingPid, tid, kPriorityAudioApp, true /*forApp*/); } } } } Loading Loading @@ -3737,7 +3737,7 @@ AudioFlinger::MixerThread::MixerThread(const sp<AudioFlinger>& audioFlinger, Aud // start the fast mixer // start the fast mixer mFastMixer->run("FastMixer", PRIORITY_URGENT_AUDIO); mFastMixer->run("FastMixer", PRIORITY_URGENT_AUDIO); pid_t tid = mFastMixer->getTid(); pid_t tid = mFastMixer->getTid(); sendPrioConfigEvent(getpid_cached, tid, kPriorityFastMixer, false); sendPrioConfigEvent(getpid_cached, tid, kPriorityFastMixer, false /*forApp*/); stream()->setHalThreadPriority(kPriorityFastMixer); stream()->setHalThreadPriority(kPriorityFastMixer); #ifdef AUDIO_WATCHDOG #ifdef AUDIO_WATCHDOG Loading @@ -3746,7 +3746,7 @@ AudioFlinger::MixerThread::MixerThread(const sp<AudioFlinger>& audioFlinger, Aud mAudioWatchdog->setDump(&mAudioWatchdogDump); mAudioWatchdog->setDump(&mAudioWatchdogDump); mAudioWatchdog->run("AudioWatchdog", PRIORITY_URGENT_AUDIO); mAudioWatchdog->run("AudioWatchdog", PRIORITY_URGENT_AUDIO); tid = mAudioWatchdog->getTid(); tid = mAudioWatchdog->getTid(); sendPrioConfigEvent(getpid_cached, tid, kPriorityFastMixer); sendPrioConfigEvent(getpid_cached, tid, kPriorityFastMixer, false /*forApp*/); #endif #endif } } Loading Loading @@ -6041,7 +6041,7 @@ AudioFlinger::RecordThread::RecordThread(const sp<AudioFlinger>& audioFlinger, // start the fast capture // start the fast capture mFastCapture->run("FastCapture", ANDROID_PRIORITY_URGENT_AUDIO); mFastCapture->run("FastCapture", ANDROID_PRIORITY_URGENT_AUDIO); pid_t tid = mFastCapture->getTid(); pid_t tid = mFastCapture->getTid(); sendPrioConfigEvent(getpid_cached, tid, kPriorityFastCapture, false); sendPrioConfigEvent(getpid_cached, tid, kPriorityFastCapture, false /*forApp*/); stream()->setHalThreadPriority(kPriorityFastCapture); stream()->setHalThreadPriority(kPriorityFastCapture); #ifdef AUDIO_WATCHDOG #ifdef AUDIO_WATCHDOG // FIXME // FIXME Loading Loading @@ -6713,7 +6713,7 @@ sp<AudioFlinger::RecordThread::RecordTrack> AudioFlinger::RecordThread::createRe pid_t callingPid = IPCThreadState::self()->getCallingPid(); pid_t callingPid = IPCThreadState::self()->getCallingPid(); // we don't have CAP_SYS_NICE, nor do we want to have it as it's too powerful, // we don't have CAP_SYS_NICE, nor do we want to have it as it's too powerful, // so ask activity manager to do this on our behalf // so ask activity manager to do this on our behalf sendPrioConfigEvent_l(callingPid, tid, kPriorityAudioApp, true); sendPrioConfigEvent_l(callingPid, tid, kPriorityAudioApp, true /*forApp*/); } } } } Loading Loading
services/audioflinger/Threads.cpp +5 −5 Original line number Original line Diff line number Diff line Loading @@ -2041,7 +2041,7 @@ sp<AudioFlinger::PlaybackThread::Track> AudioFlinger::PlaybackThread::createTrac pid_t callingPid = IPCThreadState::self()->getCallingPid(); pid_t callingPid = IPCThreadState::self()->getCallingPid(); // we don't have CAP_SYS_NICE, nor do we want to have it as it's too powerful, // we don't have CAP_SYS_NICE, nor do we want to have it as it's too powerful, // so ask activity manager to do this on our behalf // so ask activity manager to do this on our behalf sendPrioConfigEvent_l(callingPid, tid, kPriorityAudioApp, true /*isForApp*/); sendPrioConfigEvent_l(callingPid, tid, kPriorityAudioApp, true /*forApp*/); } } } } Loading Loading @@ -3737,7 +3737,7 @@ AudioFlinger::MixerThread::MixerThread(const sp<AudioFlinger>& audioFlinger, Aud // start the fast mixer // start the fast mixer mFastMixer->run("FastMixer", PRIORITY_URGENT_AUDIO); mFastMixer->run("FastMixer", PRIORITY_URGENT_AUDIO); pid_t tid = mFastMixer->getTid(); pid_t tid = mFastMixer->getTid(); sendPrioConfigEvent(getpid_cached, tid, kPriorityFastMixer, false); sendPrioConfigEvent(getpid_cached, tid, kPriorityFastMixer, false /*forApp*/); stream()->setHalThreadPriority(kPriorityFastMixer); stream()->setHalThreadPriority(kPriorityFastMixer); #ifdef AUDIO_WATCHDOG #ifdef AUDIO_WATCHDOG Loading @@ -3746,7 +3746,7 @@ AudioFlinger::MixerThread::MixerThread(const sp<AudioFlinger>& audioFlinger, Aud mAudioWatchdog->setDump(&mAudioWatchdogDump); mAudioWatchdog->setDump(&mAudioWatchdogDump); mAudioWatchdog->run("AudioWatchdog", PRIORITY_URGENT_AUDIO); mAudioWatchdog->run("AudioWatchdog", PRIORITY_URGENT_AUDIO); tid = mAudioWatchdog->getTid(); tid = mAudioWatchdog->getTid(); sendPrioConfigEvent(getpid_cached, tid, kPriorityFastMixer); sendPrioConfigEvent(getpid_cached, tid, kPriorityFastMixer, false /*forApp*/); #endif #endif } } Loading Loading @@ -6041,7 +6041,7 @@ AudioFlinger::RecordThread::RecordThread(const sp<AudioFlinger>& audioFlinger, // start the fast capture // start the fast capture mFastCapture->run("FastCapture", ANDROID_PRIORITY_URGENT_AUDIO); mFastCapture->run("FastCapture", ANDROID_PRIORITY_URGENT_AUDIO); pid_t tid = mFastCapture->getTid(); pid_t tid = mFastCapture->getTid(); sendPrioConfigEvent(getpid_cached, tid, kPriorityFastCapture, false); sendPrioConfigEvent(getpid_cached, tid, kPriorityFastCapture, false /*forApp*/); stream()->setHalThreadPriority(kPriorityFastCapture); stream()->setHalThreadPriority(kPriorityFastCapture); #ifdef AUDIO_WATCHDOG #ifdef AUDIO_WATCHDOG // FIXME // FIXME Loading Loading @@ -6713,7 +6713,7 @@ sp<AudioFlinger::RecordThread::RecordTrack> AudioFlinger::RecordThread::createRe pid_t callingPid = IPCThreadState::self()->getCallingPid(); pid_t callingPid = IPCThreadState::self()->getCallingPid(); // we don't have CAP_SYS_NICE, nor do we want to have it as it's too powerful, // we don't have CAP_SYS_NICE, nor do we want to have it as it's too powerful, // so ask activity manager to do this on our behalf // so ask activity manager to do this on our behalf sendPrioConfigEvent_l(callingPid, tid, kPriorityAudioApp, true); sendPrioConfigEvent_l(callingPid, tid, kPriorityAudioApp, true /*forApp*/); } } } } Loading