From df0562b0c368b751f051b9fbb64726f0517ba02d Mon Sep 17 00:00:00 2001 From: ivanmeler Date: Mon, 6 Jun 2022 14:27:25 +0200 Subject: [PATCH] audio: turn props into vendor props d88d29a4384a27366fe47e40c977a65e43566159 moved audio hal to vendor but props audio hal is reading can't be used as vendor props so turn them into vendor props in case some treble compatible device ends up using this hal and can't cross read props Change-Id: I439b07011b681af05cbfaa4b7d88ae337751a6ff --- audio/voice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/voice.c b/audio/voice.c index e239298e..79fd87dc 100644 --- a/audio/voice.c +++ b/audio/voice.c @@ -421,7 +421,7 @@ struct voice_session *voice_session_init(struct audio_device *adev) } /* Two mic control */ - ret = property_get_bool("audio_hal.disable_two_mic", false); + ret = property_get_bool("ro.vendor.audio_hal.disable_two_mic", false); if (ret > 0) { session->two_mic_disabled = true; } @@ -433,7 +433,7 @@ struct voice_session *voice_session_init(struct audio_device *adev) return NULL; } - ret = property_get("audio_hal.force_voice_config", voice_config, ""); + ret = property_get("ro.vendor.audio_hal.force_voice_config", voice_config, ""); if (ret > 0) { if ((strncmp(voice_config, "narrow", 6)) == 0) session->wb_amr_type = 0;