Merge "audio: property to disable USB sidetone"
This commit is contained in:
commit
6eef25d4ab
|
@ -5631,10 +5631,14 @@ int platform_set_sidetone(struct audio_device *adev,
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
if (out_snd_device == SND_DEVICE_OUT_USB_HEADSET) {
|
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);
|
ret = audio_extn_usb_enable_sidetone(out_snd_device, enable);
|
||||||
if (ret)
|
if (ret)
|
||||||
ALOGI("%s: usb device %d does not support device sidetone\n",
|
ALOGI("%s: usb device %d does not support device sidetone\n",
|
||||||
__func__, out_snd_device);
|
__func__, out_snd_device);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ALOGV("%s: sidetone out device(%d) mixer cmd = %s\n",
|
ALOGV("%s: sidetone out device(%d) mixer cmd = %s\n",
|
||||||
__func__, out_snd_device, str);
|
__func__, out_snd_device, str);
|
||||||
|
|
Loading…
Reference in New Issue