mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-23 17:33:55 +08:00
* test changing sound volume * create system/hardware/pc/hardware.h * soundd: use Hardware::set_volume * implement Hardware::set_volume using pactl * Revert "test changing sound volume" This reverts commit 4bbd870746ec86d1c9871a6175def96cf7f751a6. * don't run command in background * pactl: use default sink
28 lines
739 B
C++
28 lines
739 B
C++
#pragma once
|
|
|
|
#include "system/hardware/base.h"
|
|
#include "common/util.h"
|
|
|
|
#if QCOM2
|
|
#include "system/hardware/tici/hardware.h"
|
|
#define Hardware HardwareTici
|
|
#else
|
|
#include "system/hardware/pc/hardware.h"
|
|
#define Hardware HardwarePC
|
|
#endif
|
|
|
|
namespace Path {
|
|
inline std::string log_root() {
|
|
if (const char *env = getenv("LOG_ROOT")) {
|
|
return env;
|
|
}
|
|
return Hardware::PC() ? util::getenv("HOME") + "/.comma/media/0/realdata" : "/data/media/0/realdata";
|
|
}
|
|
inline std::string params() {
|
|
return Hardware::PC() ? util::getenv("HOME") + "/.comma/params" : "/data/params";
|
|
}
|
|
inline std::string rsa_file() {
|
|
return Hardware::PC() ? util::getenv("HOME") + "/.comma/persist/comma/id_rsa" : "/persist/comma/id_rsa";
|
|
}
|
|
} // namespace Path
|