Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org
Subject: [PATCH v3 07/13] ASoC: soc-core: remove dpcm_xxx flags
Date: Tue, 1 Oct 2024 01:41:54 +0000	[thread overview]
Message-ID: <87o744vbtp.wl-kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <87y138vbv7.wl-kuninori.morimoto.gx@renesas.com>

dpcm_xxx flags are no longer needed. It converts dpcm_xxx flag to
xxx_only if needed.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/soc-core.c | 20 +-------------------
 1 file changed, 1 insertion(+), 19 deletions(-)

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 20248a29d167..f04b671ce33e 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1999,25 +1999,7 @@ static void soc_check_tplg_fes(struct snd_soc_card *card)
 				dai_link->platforms->name = component->name;
 
 			/* convert non BE into BE */
-			if (!dai_link->no_pcm) {
-				dai_link->no_pcm = 1;
-
-				if (dai_link->dpcm_playback)
-					dev_warn(card->dev,
-						 "invalid configuration, dailink %s has flags no_pcm=0 and dpcm_playback=1\n",
-						 dai_link->name);
-				if (dai_link->dpcm_capture)
-					dev_warn(card->dev,
-						 "invalid configuration, dailink %s has flags no_pcm=0 and dpcm_capture=1\n",
-						 dai_link->name);
-
-				/* convert normal link into DPCM one */
-				if (!(dai_link->dpcm_playback ||
-				      dai_link->dpcm_capture)) {
-					dai_link->dpcm_playback = !dai_link->capture_only;
-					dai_link->dpcm_capture = !dai_link->playback_only;
-				}
-			}
+			dai_link->no_pcm = 1;
 
 			/*
 			 * override any BE fixups
-- 
2.43.0


  parent reply	other threads:[~2024-10-01  1:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-01  1:41 [PATCH v3 00/13] ASoC: remove dpcm_xxx flags Kuninori Morimoto
2024-10-01  1:41 ` [PATCH v3 01/13] ASoC: amd: " Kuninori Morimoto
2024-10-01  1:41 ` [PATCH v3 02/13] ASoC: fsl: " Kuninori Morimoto
2024-10-01  1:41 ` [PATCH v3 03/13] ASoC: sof: " Kuninori Morimoto
2024-10-01  1:41 ` [PATCH v3 04/13] ASoC: intel: " Kuninori Morimoto
2024-10-01  1:41 ` [PATCH v3 05/13] ASoC: samsung: " Kuninori Morimoto
2024-10-01  1:41 ` [PATCH v3 06/13] ASoC: mediatek: " Kuninori Morimoto
2024-10-01  1:41 ` Kuninori Morimoto [this message]
2024-10-01  1:41 ` [PATCH v3 08/13] ASoC: soc-compress: " Kuninori Morimoto
2024-10-01  1:42 ` [PATCH v3 09/13] ASoC: soc-topology: " Kuninori Morimoto
2024-10-01  1:42 ` [PATCH v3 10/13] ASoC: intel: boards: " Kuninori Morimoto
2024-10-01  1:42 ` [PATCH v3 11/13] ASoC: soc-pcm: " Kuninori Morimoto
2024-10-01  1:42 ` [PATCH v3 12/13] ASoC: doc: " Kuninori Morimoto
2024-10-01  1:42 ` [PATCH v3 13/13] ASoC: soc-pcm: merge DPCM and non-DPCM validation check 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=87o744vbtp.wl-kuninori.morimoto.gx@renesas.com \
    --to=kuninori.morimoto.gx@renesas.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=linux-sound@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox