rename start_audio_amp to audio_amp

Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
This commit is contained in:
Vincent-FK 2021-05-09 22:42:58 +02:00
parent 7fc674e466
commit 77ccbc26de
3 changed files with 6 additions and 6 deletions

View File

@ -132,7 +132,7 @@ bool Launcher::run(std::string collection, Item *collectionItem)
system(cmd.c_str());
/* Restart audio amp */
system(SHELL_CMD_TURN_AMPLI_ON);
system(SHELL_CMD_AUDIO_AMP_ON);
/* Execute game */
if(!execute(executablePath, args, currentDirectory))
@ -142,7 +142,7 @@ bool Launcher::run(std::string collection, Item *collectionItem)
}
/* Stop audio amp */
system(SHELL_CMD_TURN_AMPLI_OFF);
system(SHELL_CMD_AUDIO_AMP_OFF);
/* Log shell cmd */
Logger::write(Logger::ZONE_INFO, "Launcher", "Applying keymap default");

View File

@ -53,7 +53,7 @@ void Sound::play()
//printf("%s\n", __func__);
SDL_RemoveTimer(idTimer);
if(!ampliStarted){
fp = popen(SHELL_CMD_TURN_AMPLI_ON, "r");
fp = popen(SHELL_CMD_AUDIO_AMP_ON, "r");
if (fp != NULL) {
ampliStarted = 1;
//pclose(fp); // --> regression, to investigate
@ -72,7 +72,7 @@ uint32_t Sound::turnOffAmpli(uint32_t interval, void *param)
FILE *fp;
//printf("%s\n", __func__);
fp = popen(SHELL_CMD_TURN_AMPLI_OFF, "r");
fp = popen(SHELL_CMD_AUDIO_AMP_OFF, "r");
if (fp != NULL) {
ampliStarted = 0;
//pclose(fp); // --> regression, to investigate

View File

@ -23,8 +23,8 @@
#define SHELL_CMD_ROOTFS_RW "rw"
#define SHELL_CMD_ROOTFS_RO "ro"
#define SHELL_CMD_RECORD_PID "record_pid"
#define SHELL_CMD_TURN_AMPLI_ON "audio_amp on"
#define SHELL_CMD_TURN_AMPLI_OFF "audio_amp off"
#define SHELL_CMD_AUDIO_AMP_ON "audio_amp on"
#define SHELL_CMD_AUDIO_AMP_OFF "audio_amp off"
#define SHELL_CMD_MAPPING_ROM "keymap rom"
#define SHELL_CMD_MAPPING_DEFAULT "keymap default"