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
This commit is contained in:
parent
130f18847a
commit
89b1b9cc7c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue