summary refs log tree commit diff
path: root/sound/soc/qcom/qdsp6/q6afe.c
diff options
context:
space:
mode:
authorStephan Gerhold <stephan@gerhold.net>2020-07-23 20:39:00 +0200
committerMark Brown <broonie@kernel.org>2020-07-24 15:01:17 +0100
commit0a8c336a1e020be3832b02e1ddbb92d61da87512 (patch)
tree0a49a0c2b82402874133b8dd74344dd0c80bf290 /sound/soc/qcom/qdsp6/q6afe.c
parent627ab55d745b2a413e0a2856f2ad2e422a697971 (diff)
downloadlinux-0a8c336a1e020be3832b02e1ddbb92d61da87512.tar.gz
ASoC: q6afe: Remove unused q6afe_is_rx_port() function
This reverts commit 4a95737440d ("ASoc: q6afe: add support to get
port direction"), since the function is not needed anymore.

q6afe-dai already exposes the possible directions for a DAI through
the DAI capabilities (playback/capture-only DAI). Now we use
snd_soc_dai_link_set_capabilities() to infer the information
directly from the DAI capabilities.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Tested-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200723183904.321040-4-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom/qdsp6/q6afe.c')
-rw-r--r--sound/soc/qcom/qdsp6/q6afe.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/soc/qcom/qdsp6/q6afe.c b/sound/soc/qcom/qdsp6/q6afe.c
index 0ce4eb60f984..e0945f7a58c8 100644
--- a/sound/soc/qcom/qdsp6/q6afe.c
+++ b/sound/soc/qcom/qdsp6/q6afe.c
@@ -800,14 +800,6 @@ int q6afe_get_port_id(int index)
 }
 EXPORT_SYMBOL_GPL(q6afe_get_port_id);
 
-int q6afe_is_rx_port(int index)
-{
-	if (index < 0 || index >= AFE_PORT_MAX)
-		return -EINVAL;
-
-	return port_maps[index].is_rx;
-}
-EXPORT_SYMBOL_GPL(q6afe_is_rx_port);
 static int afe_apr_send_pkt(struct q6afe *afe, struct apr_pkt *pkt,
 			    struct q6afe_port *port)
 {