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

Commit f5ccc869 authored by Derek Chen's avatar Derek Chen Committed by Banajit Goswami
Browse files

ASoC: msm: qdsp6v2: set voc type according to stream type



Set voc path type according to stream type during routing
preparation for voice session to fix uninitialized voc
path type causing voc device port configuration failure.

CRs-fixed: 2045461
Change-Id: I4983ba55b1854879680b6d13c33904a522092eb0
Signed-off-by: default avatarDerek Chen <chenche@codeaurora.org>
parent 6c33362e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -14408,10 +14408,10 @@ static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
			pr_debug("%s voice session_id: 0x%x\n", __func__,
				 session_id);
			if (session_type == SESSION_TYPE_TX)
				voc_path_type = TX_PATH;
			else
			if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
				voc_path_type = RX_PATH;
			else
				voc_path_type = TX_PATH;
			voc_set_route_flag(session_id, voc_path_type, 1);