From 03adbae93f309ba8fe4aa89e7258d76f9782c26b Mon Sep 17 00:00:00 2001 From: Simon1511 Date: Sun, 31 Dec 2023 12:14:26 +0100 Subject: [PATCH] sm7125-common: audio: remove SIM 1 handling * SIM 1 is used by default, which means that we only need to handle SIM 2 Change-Id: I7cd92d8633beb97ae04c07a3e499b4fdaf4dc9d5 --- audio/service/audio_parameter_service.cpp | 5 +---- audio/service/audio_parameter_service.rc | 5 ----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/audio/service/audio_parameter_service.cpp b/audio/service/audio_parameter_service.cpp index 03c7054..2e5069c 100644 --- a/audio/service/audio_parameter_service.cpp +++ b/audio/service/audio_parameter_service.cpp @@ -38,10 +38,7 @@ int main() { if (audioDevice != nullptr) { std::string value = ""; - if (strcmp(GetProperty("vendor.calls.slotid", "-1").c_str(), "0") == 0) { - // SIM 1 - value = "0x01"; - } else if (strcmp(GetProperty("vendor.calls.slotid", "-1").c_str(), "1") == 0) { + if (strcmp(GetProperty("vendor.calls.slotid", "-1").c_str(), "1") == 0) { // SIM 2 value = "0x02"; } diff --git a/audio/service/audio_parameter_service.rc b/audio/service/audio_parameter_service.rc index 35f8357..d3ee208 100644 --- a/audio/service/audio_parameter_service.rc +++ b/audio/service/audio_parameter_service.rc @@ -5,11 +5,6 @@ service audio_parameter_service /system_ext/bin/audio_parameter_service.samsung_ on boot setprop vendor.calls.parameter_state 0 -on property:vendor.calls.slotid=0 && property:vendor.calls.parameter_state=0 - stop audioserver - start audioserver - start audio_parameter_service - on property:vendor.calls.slotid=1 && property:vendor.calls.parameter_state=0 stop audioserver start audioserver