From: "Amadeusz Sławiński" <amadeuszx.slawinski@linux.intel.com>
To: "Kuninori Morimoto" <kuninori.morimoto.gx@renesas.com>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Jaroslav Kysela" <perex@perex.cz>,
"Liam Girdwood" <lgirdwood@gmail.com>,
"Mark Brown" <broonie@kernel.org>,
"Takashi Iwai" <tiwai@suse.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH 18/20] ASoC: soc-topology.c: replace dpcm_playback/capture to playback/capture_only
Date: Thu, 18 May 2023 12:40:15 +0200 [thread overview]
Message-ID: <7a025c80-9f81-25e1-035b-ffb32a48c9c7@linux.intel.com> (raw)
In-Reply-To: <87cz2yp4st.wl-kuninori.morimoto.gx@renesas.com>
On 5/18/2023 7:49 AM, Kuninori Morimoto wrote:
> soc_get_playback_capture() is now handling DPCM and normal comprehensively
> for playback/capture stream. We can use playback/capture_only flag
> instead of using dpcm_playback/capture. This patch replace these.
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
> sound/soc/soc-topology-test.c | 2 --
> sound/soc/soc-topology.c | 4 ++--
> 2 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/soc-topology-test.c b/sound/soc/soc-topology-test.c
> index 2cd3540cec04..703a366e0abe 100644
> --- a/sound/soc/soc-topology-test.c
> +++ b/sound/soc/soc-topology-test.c
> @@ -94,8 +94,6 @@ static struct snd_soc_dai_link kunit_dai_links[] = {
> .nonatomic = 1,
> .dynamic = 1,
> .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
> - .dpcm_playback = 1,
> - .dpcm_capture = 1,
> SND_SOC_DAILINK_REG(dummy, dummy, platform),
> },
> };
> diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c
> index 47ab5cf99497..16a3d570463a 100644
> --- a/sound/soc/soc-topology.c
> +++ b/sound/soc/soc-topology.c
> @@ -1735,8 +1735,8 @@ static int soc_tplg_fe_link_create(struct soc_tplg *tplg,
> /* enable DPCM */
> link->dynamic = 1;
> link->ignore_pmdown_time = 1;
> - link->dpcm_playback = le32_to_cpu(pcm->playback);
> - link->dpcm_capture = le32_to_cpu(pcm->capture);
> + link->playback_only = !le32_to_cpu(pcm->capture);
> + link->capture_only = !le32_to_cpu(pcm->playback);
This seems to be similar case to patch 16, should it be:
link->playback_only = le32_to_cpu(pcm->playback) &&
!le32_to_cpu(pcm->capture);
link->capture_only = le32_to_cpu(pcm->capture) &&
!le32_to_cpu(pcm->playback);
?
> if (pcm->flag_mask)
> set_link_flags(link,
> le32_to_cpu(pcm->flag_mask),
next prev parent reply other threads:[~2023-05-18 10:42 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-18 5:46 [PATCH 00/20] ASoC: replace dpcm_playback/capture to playback/capture_only Kuninori Morimoto
2023-05-18 5:46 ` [PATCH 01/20] ASoC: soc-pcm.c: indicate error if stream has no playback no capture Kuninori Morimoto
2023-05-18 10:37 ` Amadeusz Sławiński
2023-05-18 5:46 ` [PATCH 02/20] ASoC: soc-pcm.c: use dai_link on soc_get_playback_capture() Kuninori Morimoto
2023-05-18 10:37 ` Amadeusz Sławiński
2023-05-18 5:46 ` [PATCH 03/20] ASoC: soc-pcm.c: cleanup soc_get_playback_capture() error Kuninori Morimoto
2023-05-18 10:38 ` Amadeusz Sławiński
2023-05-18 5:47 ` [PATCH 04/20] ASoC: soc-pcm.c: use temporary variable at soc_get_playback_capture() Kuninori Morimoto
2023-05-18 10:38 ` Amadeusz Sławiński
2023-05-18 23:12 ` Kuninori Morimoto
2023-05-18 5:47 ` [PATCH 05/20] ASoC: soc-pcm.c: tidyup playback/capture_only " Kuninori Morimoto
2023-05-18 10:38 ` Amadeusz Sławiński
2023-05-18 5:47 ` [PATCH 06/20] ASoC: soc-pcm.c: cleanup normal connection loop at soc_get_playback_capture() part1 Kuninori Morimoto
2023-05-18 10:38 ` Amadeusz Sławiński
2023-05-18 5:47 ` [PATCH 07/20] ASoC: soc-pcm.c: cleanup normal connection loop at soc_get_playback_capture() part2 Kuninori Morimoto
2023-05-18 10:38 ` Amadeusz Sławiński
2023-05-18 5:47 ` [PATCH 08/20] ASoC: soc-pcm.c: cleanup soc_get_playback_capture() Kuninori Morimoto
2023-05-18 10:38 ` Amadeusz Sławiński
2023-05-19 9:57 ` Amadeusz Sławiński
2023-05-22 4:35 ` Kuninori Morimoto
2023-05-22 9:14 ` Amadeusz Sławiński
2023-05-22 23:49 ` Kuninori Morimoto
2023-05-24 11:21 ` Amadeusz Sławiński
2023-05-24 23:48 ` Kuninori Morimoto
2023-05-18 5:47 ` [PATCH 09/20] ASoC: amd: replace dpcm_playback/capture to playback/capture_only Kuninori Morimoto
2023-05-18 5:48 ` [PATCH 10/20] ASoC: fsl: " Kuninori Morimoto
2023-05-18 5:48 ` [PATCH 11/20] ASoC: sof: " Kuninori Morimoto
2023-05-18 5:48 ` [PATCH 12/20] ASoC: meson: " Kuninori Morimoto
2023-05-18 5:48 ` [PATCH 13/20] ASoC: Intel: " Kuninori Morimoto
2023-05-18 10:39 ` Amadeusz Sławiński
2023-05-18 23:15 ` Kuninori Morimoto
2023-05-18 5:49 ` [PATCH 14/20] ASoC: samsung: " Kuninori Morimoto
2023-05-18 5:49 ` [PATCH 15/20] ASoC: mediatek: " Kuninori Morimoto
2023-05-18 5:49 ` [PATCH 16/20] ASoC: soc-dai.c: " Kuninori Morimoto
2023-05-18 10:39 ` Amadeusz Sławiński
2023-05-18 23:18 ` Kuninori Morimoto
2023-05-18 5:49 ` [PATCH 17/20] ASoC: soc-core.c: " Kuninori Morimoto
2023-05-18 10:39 ` Amadeusz Sławiński
2023-05-18 5:49 ` [PATCH 18/20] ASoC: soc-topology.c: " Kuninori Morimoto
2023-05-18 10:40 ` Amadeusz Sławiński [this message]
2023-05-18 5:49 ` [PATCH 19/20] ASoC: soc-compress.c: " Kuninori Morimoto
2023-05-18 10:40 ` Amadeusz Sławiński
2023-05-18 5:49 ` [PATCH 20/20] ASoC: soc-pcm.c: remove dpcm_playback/capture Kuninori Morimoto
2023-05-18 10:40 ` Amadeusz Sławiński
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=7a025c80-9f81-25e1-035b-ffb32a48c9c7@linux.intel.com \
--to=amadeuszx.slawinski@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
--cc=u.kleine-koenig@pengutronix.de \
/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