From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
To: Rohit kumar <rohitkr@codeaurora.org>,
plai@codeaurora.org, bgoswami@codeaurora.org,
lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz,
tiwai@suse.com, alsa-devel@alsa-project.org,
linux-kernel@vger.kernel.org, rohkumar@qti.qualcomm.com
Subject: Re: [PATCH] ASoC: qcom: Set dai_link id to each dai_link
Date: Thu, 8 Nov 2018 13:56:35 +0000 [thread overview]
Message-ID: <9eb276ed-5b4c-9926-a885-2cfd08d4d126@linaro.org> (raw)
In-Reply-To: <1541684500-32728-1-git-send-email-rohitkr@codeaurora.org>
Hi Rohit,
On 08/11/18 13:41, Rohit kumar wrote:
> Frontend dai_link id is used for closing ADM sessions.
> During concurrent usecase when one session is closed,
> it closes other ADM session associated with other usecase
> too. Dai_link->id should always point to Frontend dai id.
> Set cpu_dai id as dai_link id to fix the issue.
>
Nice catch! thanks for fixing this!
> Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> ---
> sound/soc/qcom/common.c | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/sound/soc/qcom/common.c b/sound/soc/qcom/common.c
> index eb1b9da..4715527 100644
> --- a/sound/soc/qcom/common.c
> +++ b/sound/soc/qcom/common.c
> @@ -13,6 +13,7 @@ int qcom_snd_parse_of(struct snd_soc_card *card)
> struct device_node *cpu = NULL;
> struct device *dev = card->dev;
> struct snd_soc_dai_link *link;
> + struct of_phandle_args args;
> int ret, num_links;
>
> ret = snd_soc_of_parse_card_name(card, "model");
> @@ -47,12 +48,14 @@ int qcom_snd_parse_of(struct snd_soc_card *card)
> goto err;
> }
>
> - link->cpu_of_node = of_parse_phandle(cpu, "sound-dai", 0);
> - if (!link->cpu_of_node) {
> + ret = of_parse_phandle_with_args(cpu, "sound-dai",
> + "#sound-dai-cells", 0, &args);
> + if (ret) {
> dev_err(card->dev, "error getting cpu phandle\n");
> - ret = -EINVAL;
> goto err;
> }
> + link->cpu_of_node = args.np;
> + link->id = args.args[0];
>
> ret = snd_soc_of_get_dai_name(cpu, &link->cpu_dai_name);
> if (ret) {
>
next prev parent reply other threads:[~2018-11-08 13:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-08 13:41 Rohit kumar
2018-11-08 13:56 ` Srinivas Kandagatla [this message]
2018-11-13 23:10 ` Applied "ASoC: qcom: Set dai_link id to each dai_link" to the asoc tree Mark Brown
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=9eb276ed-5b4c-9926-a885-2cfd08d4d126@linaro.org \
--to=srinivas.kandagatla@linaro.org \
--cc=alsa-devel@alsa-project.org \
--cc=bgoswami@codeaurora.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=plai@codeaurora.org \
--cc=rohitkr@codeaurora.org \
--cc=rohkumar@qti.qualcomm.com \
--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
all inboxes | Powered by JetHome®