Merge "audio: property to disable USB sidetone"

This commit is contained in:
Linux Build Service Account 2016-11-07 22:35:23 -08:00 committed by Gerrit - the friendly Code Review server
commit 6eef25d4ab
1 changed files with 4 additions and 0 deletions

View File

@ -5631,10 +5631,14 @@ int platform_set_sidetone(struct audio_device *adev,
{
int ret;
if (out_snd_device == SND_DEVICE_OUT_USB_HEADSET) {
if (property_get_bool("audio.debug.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);