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

Commit 9a27772f authored by Haynes Mathew George's avatar Haynes Mathew George Committed by Gerrit - the friendly Code Review server
Browse files

asoc: Fix check when opening ADM for listen



Routing driver decides path type for capture
sessions by checking the passthrough type field
of a backend. This check was missing a check
for passthrough type LISTEN. This leads to
a listen session being incorrectly opened with
path type COMPRESSED. Fix the check to consider
LISTEN passthrough type.

CRs-Fixed: 2196911
Change-Id: I3663b7ffbc0d9c649a060acfd9d65a3c22039dbc
Signed-off-by: default avatarHaynes Mathew George <hgeorge@codeaurora.org>
parent 543ff628
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1622,7 +1622,7 @@ static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
			path_type = ADM_PATH_PLAYBACK;
	} else {
		session_type = SESSION_TYPE_TX;
		if (passthr_mode != LEGACY_PCM)
		if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
			path_type = ADM_PATH_COMPRESSED_TX;
		else
			path_type = ADM_PATH_LIVE_REC;