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: Haynes Mathew George <hgeorge@codeaurora.org>
diff --git a/asoc/msm-pcm-routing-v2.c b/asoc/msm-pcm-routing-v2.c
index 5543cab..96171aa 100644
--- a/asoc/msm-pcm-routing-v2.c
+++ b/asoc/msm-pcm-routing-v2.c
@@ -1622,7 +1622,7 @@
 			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;