audio: Fix usb disable sidetone property name
Limit length of the property name to adhere to property max length
CRs-Fixed: 1770914
Change-Id: Iba244dd21fc6ba00fd0f7935c59ff258795316b8
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c
index 5a7b9d4..ea6b743 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -5780,10 +5780,14 @@
int ret;
if ((out_snd_device == SND_DEVICE_OUT_USB_HEADSET) ||
(out_snd_device == SND_DEVICE_OUT_USB_HEADPHONES)) {
+ if (property_get_bool("audio.usb.disable.sidetone", 0)) {
+ ALOGI("Debug: Disable sidetone");
+ } else {
ret = audio_extn_usb_enable_sidetone(out_snd_device, enable);
if (ret)
ALOGI("%s: usb device %d does not support device sidetone\n",
__func__, out_snd_device);
+ }
} else {
ALOGV("%s: sidetone out device(%d) mixer cmd = %s\n",
__func__, out_snd_device, str);
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index efca62d..5e77632 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -5684,7 +5684,7 @@
int ret;
if ((out_snd_device == SND_DEVICE_OUT_USB_HEADSET) ||
(out_snd_device == SND_DEVICE_OUT_USB_HEADPHONES)) {
- if (property_get_bool("audio.debug.usb.disable_sidetone", 0)) {
+ if (property_get_bool("audio.usb.disable.sidetone", 0)) {
ALOGI("Debug: Disable sidetone");
} else {
ret = audio_extn_usb_enable_sidetone(out_snd_device, enable);