linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] soundwire: qcom: drop unneeded DAI .set_stream callback
@ 2023-10-25 14:45 Krzysztof Kozlowski
  2023-10-25 14:46 ` [PATCH 2/3] soundwire: qcom: set owner device of runtime stream Krzysztof Kozlowski
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2023-10-25 14:45 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Vinod Koul, Bard Liao,
	Pierre-Louis Bossart, Sanyog Kale, Srinivas Kandagatla,
	Banajit Goswami, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, linux-arm-msm, alsa-devel, linux-kernel
  Cc: Krzysztof Kozlowski

Qualcomm Soundwire controller drivers do not support multi-link setups,
so DAI .set_stream() callback will not be used.  What's more, if called
it will overwrite the sdw_stream_runtime runtime set in DAI .startup
(qcom_swrm_startup()) causing issues (unsupported multi-link error) when
two Soundwire controllers are passed as codec DAIs.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/soundwire/qcom.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c
index f1b8d6ac5140..fe65c26c5281 100644
--- a/drivers/soundwire/qcom.c
+++ b/drivers/soundwire/qcom.c
@@ -1267,16 +1267,6 @@ static int qcom_swrm_hw_free(struct snd_pcm_substream *substream,
 	return 0;
 }
 
-static int qcom_swrm_set_sdw_stream(struct snd_soc_dai *dai,
-				    void *stream, int direction)
-{
-	struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
-
-	ctrl->sruntime[dai->id] = stream;
-
-	return 0;
-}
-
 static void *qcom_swrm_get_sdw_stream(struct snd_soc_dai *dai, int direction)
 {
 	struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dai->dev);
@@ -1349,7 +1339,6 @@ static const struct snd_soc_dai_ops qcom_swrm_pdm_dai_ops = {
 	.hw_free = qcom_swrm_hw_free,
 	.startup = qcom_swrm_startup,
 	.shutdown = qcom_swrm_shutdown,
-	.set_stream = qcom_swrm_set_sdw_stream,
 	.get_stream = qcom_swrm_get_sdw_stream,
 };
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-11-06 14:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-25 14:45 [PATCH 1/3] soundwire: qcom: drop unneeded DAI .set_stream callback Krzysztof Kozlowski
2023-10-25 14:46 ` [PATCH 2/3] soundwire: qcom: set owner device of runtime stream Krzysztof Kozlowski
2023-10-25 15:08   ` Pierre-Louis Bossart
2023-10-25 14:46 ` [PATCH 3/3] ASoC: codecs: wsa884x: check if set_stream is called for proper bus Krzysztof Kozlowski
2023-10-25 14:53   ` Krzysztof Kozlowski
2023-10-25 15:03   ` Pierre-Louis Bossart
2023-11-03 14:16     ` Krzysztof Kozlowski
2023-11-03 15:39       ` Pierre-Louis Bossart
2023-10-25 15:12 ` [PATCH 1/3] soundwire: qcom: drop unneeded DAI .set_stream callback Pierre-Louis Bossart
2023-11-03 13:43   ` Krzysztof Kozlowski
2023-11-03 15:29     ` Pierre-Louis Bossart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).