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
urubino-microg
Simon1511 11 months ago committed by Ruchit
parent 0e43e19ecb
commit 03adbae93f
  1. 5
      audio/service/audio_parameter_service.cpp
  2. 5
      audio/service/audio_parameter_service.rc

@ -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";
}

@ -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

Loading…
Cancel
Save