From: Stephan Gerhold <stephan@gerhold.net>
To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: alsa-devel@alsa-project.org,
Banajit Goswami <bgoswami@codeaurora.org>,
Srinivasa Rao Mandadapu <srivasam@codeaurora.org>,
Patrick Lai <plai@codeaurora.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>
Subject: Re: [PATCH 1/2] ASoC: qcom: lpass: Fix hardcoded SC7810 DAI IDs
Date: Fri, 15 Jan 2021 19:41:25 +0100 [thread overview]
Message-ID: <YAHh1d1Xs7c+MwJM@gerhold.net> (raw)
In-Reply-To: <9349c21b-7cd3-3c7b-91a9-9bbf0d5c4f15@linaro.org>
On Fri, Jan 15, 2021 at 05:15:53PM +0000, Srinivas Kandagatla wrote:
> On 15/01/2021 16:49, Stephan Gerhold wrote:
> > Right now it declares just a single DAI, but multiple "ports":
> >
> > enum lpaif_i2s_ports {
> > IPQ806X_LPAIF_I2S_PORT_CODEC_SPK,
> > IPQ806X_LPAIF_I2S_PORT_CODEC_MIC,
> > IPQ806X_LPAIF_I2S_PORT_SEC_SPK,
> > IPQ806X_LPAIF_I2S_PORT_SEC_MIC,
> > IPQ806X_LPAIF_I2S_PORT_MI2S,
> > };
> >
> > static struct snd_soc_dai_driver ipq806x_lpass_cpu_dai_driver = {
> > .id = IPQ806X_LPAIF_I2S_PORT_MI2S,
> > /* ... */
> > };
> >
> > I suppose we could just declare this as MI2S_PRIMARY but not sure if
> > that is accurate. Do you have more information about this platform?
>
> Looking at the specs it does show that it has 0-4 total 5 I2S interfaces,
> however Am unable to find a proper name similar to other MI2S.
> This one is the last one (4)!
>
I'm still a bit unsure how this would fit into the shared lpass.h
dt-bindings, given that we need MI2S_PRIMARY, etc for MSM8916/SC7810
but some different ones for IPQ806X.
But I would also need to check how to implement .of_xlate_dai_name first
for example, so I think it's easier if you can prepare a patch to
implement your idea. I would be happy to test it. :)
Then we can just drop this patch set, I don't mind.
Thanks!
Stephan
prev parent reply other threads:[~2021-01-15 18:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-14 9:46 [PATCH 1/2] ASoC: qcom: lpass: Fix hardcoded SC7810 DAI IDs Stephan Gerhold
2021-01-14 9:46 ` [PATCH 2/2] ASoC: qcom: lpass: Avoid redundant DAI ID lookup Stephan Gerhold
2021-01-15 16:14 ` [PATCH 1/2] ASoC: qcom: lpass: Fix hardcoded SC7810 DAI IDs Srinivas Kandagatla
2021-01-15 16:49 ` Stephan Gerhold
2021-01-15 17:15 ` Srinivas Kandagatla
2021-01-15 18:41 ` Stephan Gerhold [this message]
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=YAHh1d1Xs7c+MwJM@gerhold.net \
--to=stephan@gerhold.net \
--cc=alsa-devel@alsa-project.org \
--cc=bgoswami@codeaurora.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=plai@codeaurora.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=srivasam@codeaurora.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.