fix(camera,sms,dwm): fix CAMSS AXI frame-boundary stop, SMS draft button label, and post-reboot softkey responsiveness
This commit is contained in:
1 parent
55b20c5b85
commit
4bb95d42b0
26 files changed
+152
-33
No files matched your search
@@ -161,9 +161,7 @@ int runCameraApp(int argc, char** argv) {
|
||||
std::string daemonPidPath = getPluginDaemonPidPath("camera");
|
||||
std::string activePidPath = getRuntimeFile("xcamera.pid");
|
||||
|
||||
int existingDaemon = readIntFile(daemonPidPath, -1);
|
||||
if (existingDaemon > 0 && existingDaemon != static_cast<int>(::getpid()) &&
|
||||
::kill(existingDaemon, 0) == 0) {
|
||||
if (isPluginDaemonAlive("camera")) {
|
||||
if (!isPreload) {
|
||||
sendPluginCommand("camera",
|
||||
initArg.empty() ? "OPEN" : ("OPEN " + initArg));
|
||||
@@ -422,6 +420,7 @@ int runCameraApp(int argc, char** argv) {
|
||||
{
|
||||
std::lock_guard<std::mutex> lk(frameMutex);
|
||||
vfFront.swap(vfBack);
|
||||
xImgVf->data = reinterpret_cast<char*>(vfFront.data());
|
||||
cameraReady = true;
|
||||
cameraStatus.clear();
|
||||
if (!savedName.empty()) {
|
||||
@@ -434,8 +433,12 @@ int runCameraApp(int argc, char** argv) {
|
||||
char c = 'F';
|
||||
(void)::write(writePipe, &c, 1);
|
||||
}
|
||||
for (int s = 0; s < 5 && !vfShouldStop && gRunning && !snapRequested.load(); ++s) {
|
||||
struct timespec ts {0, 20 * 1000 * 1000};
|
||||
nanosleep(&ts, nullptr);
|
||||
}
|
||||
} else {
|
||||
struct timespec ts {0, 30 * 1000 * 1000};
|
||||
struct timespec ts {0, 50 * 1000 * 1000};
|
||||
nanosleep(&ts, nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user