From 89b1b9cc7ce5608605d03bd94e78643e148eb7cb Mon Sep 17 00:00:00 2001 From: Dhanalakshmi Siddani Date: Sun, 10 Feb 2019 22:32:49 +0530 Subject: [PATCH] hal: Do not delete DEVICE_CONNECT and DISCONNECT params BT audio playback is not working as AUDIO_PARAMETER_DEVICE_CONNECT param string is deleted by FFV module. Do not delete AUDIO_PARAMETER_DEVICE_CONNECT and AUDIO_PARAMETER_DEVICE_DISCONNECT strings as they are used by other modules also. Change-Id: Ice61399814f5f238afdb76b32bacfc316d839f3f --- hal/audio_extn/ffv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hal/audio_extn/ffv.c b/hal/audio_extn/ffv.c index 145a0171..a57f68c7 100755 --- a/hal/audio_extn/ffv.c +++ b/hal/audio_extn/ffv.c @@ -899,7 +899,6 @@ void audio_extn_ffv_set_parameters(struct audio_device *adev __unused, str_parms_del(parms, AUDIO_PARAMETER_FFV_EC_REF_DEVICE); } else if (str_parms_get_int(parms, AUDIO_PARAMETER_DEVICE_CONNECT, &val) >= 0) { ret = 1; - str_parms_del(parms, AUDIO_PARAMETER_DEVICE_CONNECT); } if (ret == 1) { if (val & AUDIO_DEVICE_OUT_SPEAKER) { @@ -913,7 +912,6 @@ void audio_extn_ffv_set_parameters(struct audio_device *adev __unused, ret = str_parms_get_int(parms, AUDIO_PARAMETER_DEVICE_DISCONNECT, &val); if (ret >= 0) { - str_parms_del(parms, AUDIO_PARAMETER_DEVICE_DISCONNECT); if (val & AUDIO_DEVICE_OUT_LINE) { ALOGD("%s: capture ec ref from speaker", __func__); ffvmod.ec_ref_dev = AUDIO_DEVICE_OUT_SPEAKER;