Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59df95d2 authored by Shiv Maliyappanahalli's avatar Shiv Maliyappanahalli
Browse files

ASoC: msm: qdsp6v2: fix slow_talk not disabled issue



If slow talk is disabled from the settings menu after voice
call is ended, the command is not sent to dsp since the voc state
is not in VOC_RUN and on next call CVS still has slow talk property
enabled. Fix by disabling slow talk when voice call is ended.

CRs-Fixed: 607911
Change-Id: I2c312e41b14fca021f8d41380c3b5c8493710255
Signed-off-by: default avatarShiv Maliyappanahalli <smaliyap@codeaurora.org>
parent 94c52e4c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3396,6 +3396,10 @@ static int voice_destroy_vocproc(struct voice_data *v)
	mvm_handle = voice_get_mvm_handle(v);
	cvp_handle = voice_get_cvp_handle(v);

	/* disable slowtalk if st_enable is set */
	if (v->st_enable)
		voice_send_set_pp_enable_cmd(v, MODULE_ID_VOICE_MODULE_ST, 0);

	/* stop playback or recording */
	v->music_info.force = 1;
	voice_cvs_stop_playback(v);