From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
Bard Liao <yung-chuan.liao@linux.intel.com>,
bard.liao@intel.com
Cc: Mark Brown <broonie@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Jerome Brunet <jbrunet@baylibre.com>,
alsa-devel@alsa-project.org, devicetree@vger.kernel.org
Subject: Re: [PATCH][TEST-REQUEST] ASoC: makes CPU/Codec channel connection map more generic
Date: Thu, 19 Oct 2023 10:32:12 -0500 [thread overview]
Message-ID: <246c670b-1d98-454e-b0d3-0fa40f7c5e03@linux.intel.com> (raw)
In-Reply-To: <87wmvjpdut.wl-kuninori.morimoto.gx@renesas.com>
On 10/18/23 21:04, Kuninori Morimoto wrote:
> Current ASoC CPU:Codec = N:M connection is using connection mapping idea,
> but it is used for CPU < Codec case only. We want to use it for any case.
>
> By this patch, not only N:M connection, but all existing connection
> (1:1, 1:N, N:N) will use same connection mapping.
> Because it will use default mapping, no conversion patch is needed
> to exising CPU/Codec drivers.
>
> More over, CPU:Codec = M:N (M > N) also supported in the same time.
>
> Link: https://lore.kernel.org/r/87fs6wuszr.wl-kuninori.morimoto.gx@renesas.com
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
No issues detected with this patch by the Intel CI (other than the usual
suspend-resume timeouts that have nothing to do with this patch), see
https://github.com/thesofproject/linux/pull/4632
Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thanks Morimoto-san!
> + if (snd_soc_dai_stream_valid(codec_dai, SNDRV_PCM_STREAM_PLAYBACK) &&
> + snd_soc_dai_stream_valid(cpu_dai, cpu_playback))
> + has_playback = 1;
> + if (snd_soc_dai_stream_valid(codec_dai, SNDRV_PCM_STREAM_CAPTURE) &&
> + snd_soc_dai_stream_valid(cpu_dai, cpu_capture))
> + has_capture = 1;
> }
> + }
> + /* .ch_map is from Codec */
> + else {
> + for_each_rtd_codec_dais(rtd, i, codec_dai) {
> + cpu_dai = snd_soc_rtd_to_cpu(rtd, dai_link->ch_maps[i].connected_node);
> +
> + if (snd_soc_dai_stream_valid(codec_dai, SNDRV_PCM_STREAM_PLAYBACK) &&
> + snd_soc_dai_stream_valid(cpu_dai, cpu_playback))
> + has_playback = 1;
> + if (snd_soc_dai_stream_valid(codec_dai, SNDRV_PCM_STREAM_CAPTURE) &&
> + snd_soc_dai_stream_valid(cpu_dai, cpu_capture))
while we're at it, can we also clean-up the weird extra spaces - unless
they were intentional?
> + has_capture = 1;
>
> - if (snd_soc_dai_stream_valid(codec_dai, SNDRV_PCM_STREAM_PLAYBACK) &&
> - snd_soc_dai_stream_valid(cpu_dai, cpu_playback))
> - has_playback = 1;
> - if (snd_soc_dai_stream_valid(codec_dai, SNDRV_PCM_STREAM_CAPTURE) &&
> - snd_soc_dai_stream_valid(cpu_dai, cpu_capture))
> - has_capture = 1;
> + }
> }
> }
>
next prev parent reply other threads:[~2023-10-19 15:32 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-16 1:37 [PATCH v4 0/4] ASoC: makes CPU/Codec channel connection map more generic Kuninori Morimoto
2023-10-16 1:37 ` [PATCH v4 1/4] " Kuninori Morimoto
2023-10-17 14:45 ` Pierre-Louis Bossart
2023-10-17 23:03 ` Kuninori Morimoto
2023-10-17 23:16 ` Pierre-Louis Bossart
2023-10-18 0:08 ` Kuninori Morimoto
2023-10-19 2:02 ` Kuninori Morimoto
2023-10-19 2:04 ` [PATCH][TEST-REQUEST] " Kuninori Morimoto
2023-10-19 15:32 ` Pierre-Louis Bossart [this message]
2023-10-19 23:55 ` Kuninori Morimoto
2023-10-16 1:37 ` [PATCH v4 2/4] ASoC: audio-graph-card2: add CPU:Codec = N:M support Kuninori Morimoto
2023-10-16 1:37 ` [PATCH v4 3/4] ASoC: audio-graph-card2-custom-sample: add CPU/Codec = N:M sample Kuninori Morimoto
2023-10-16 1:37 ` [PATCH v4 4/4] dt-bindings: audio-graph-port: add ch-maps property Kuninori Morimoto
2023-10-17 10:07 ` Conor Dooley
2023-10-16 8:25 ` [PATCH v4 0/4] ASoC: makes CPU/Codec channel connection map more generic Jerome Brunet
2023-10-16 22:59 ` Kuninori Morimoto
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=246c670b-1d98-454e-b0d3-0fa40f7c5e03@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=bard.liao@intel.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jbrunet@baylibre.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=robh+dt@kernel.org \
--cc=yung-chuan.liao@linux.intel.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