From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Mohammad Rafi Shaik <quic_mohs@quicinc.com>,
srinivas.kandagatla@linaro.org, bgoswami@quicinc.com,
broonie@kernel.org, krzysztof.kozlowski+dt@linaro.org,
andersson@kernel.org, konrad.dybcio@linaro.org,
lgirdwood@gmail.com, tiwai@suse.com, quic_rohkumar@quicinc.com,
linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org,
linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH v1 2/2] ASoC: qcom: qcm6490: Add machine driver for qcm6490
Date: Wed, 27 Mar 2024 13:22:19 +0100 [thread overview]
Message-ID: <3dbb428f-0265-4741-a28e-5613799133e9@linaro.org> (raw)
In-Reply-To: <20240327113228.1706975-3-quic_mohs@quicinc.com>
On 27/03/2024 12:32, Mohammad Rafi Shaik wrote:
> +
> +static int qcm6490_snd_hw_free(struct snd_pcm_substream *substream)
> +{
> + struct snd_soc_pcm_runtime *rtd = substream->private_data;
> + struct qcm6490_snd_data *data = snd_soc_card_get_drvdata(rtd->card);
> + struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0);
> + struct sdw_stream_runtime *sruntime = data->sruntime[cpu_dai->id];
> +
> + return qcom_snd_sdw_hw_free(substream, sruntime,
> + &data->stream_prepared[cpu_dai->id]);
> +}
> +
> +static const struct snd_soc_ops qcm6490_be_ops = {
> + .hw_params = qcm6490_snd_hw_params,
> + .hw_free = qcm6490_snd_hw_free,
> + .prepare = qcm6490_snd_prepare,
> +};
I think you leak sdw_stream, because of missing shutdown.
Except that everything looks like sc8280xp, except the snd_init(), so I
wonder how important that difference is? Cannot be combined into sc8280xp?
Best regards,
Krzysztof
next prev parent reply other threads:[~2024-03-27 12:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-27 11:32 [PATCH v1 0/2] ASoC: qcom: add support for qcm6490 machine Mohammad Rafi Shaik
2024-03-27 11:32 ` [PATCH v1 1/2] ASoC: dt-bindings: qcom,qcm6490: Add qcm6490 snd qcs6490 sound card Mohammad Rafi Shaik
2024-03-27 12:16 ` Krzysztof Kozlowski
2024-03-27 18:37 ` Krzysztof Kozlowski
2024-03-27 11:32 ` [PATCH v1 2/2] ASoC: qcom: qcm6490: Add machine driver for qcm6490 Mohammad Rafi Shaik
2024-03-27 12:22 ` Krzysztof Kozlowski [this message]
2024-03-27 13:09 ` Dmitry Baryshkov
[not found] ` <92b449da-1569-40f9-d8c9-48949c986853@quicinc.com>
2024-03-29 15:58 ` Krzysztof Kozlowski
2024-03-29 18:39 ` Dmitry Baryshkov
2024-04-02 9:20 ` Mohammad Rafi Shaik
2024-04-23 13:05 ` Konrad Dybcio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3dbb428f-0265-4741-a28e-5613799133e9@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=alsa-devel@alsa-project.org \
--cc=andersson@kernel.org \
--cc=bgoswami@quicinc.com \
--cc=broonie@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=quic_mohs@quicinc.com \
--cc=quic_rohkumar@quicinc.com \
--cc=srinivas.kandagatla@linaro.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox