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 03/13] ASoC: sof: remove dpcm_xxx flags
Date: Tue, 1 Oct 2024 01:41:32 +0000	[thread overview]
Message-ID: <87ttdwvbub.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/sof/nocodec.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/sound/soc/sof/nocodec.c b/sound/soc/sof/nocodec.c
index b12b3d865ae3..c0c906a78eba 100644
--- a/sound/soc/sof/nocodec.c
+++ b/sound/soc/sof/nocodec.c
@@ -55,10 +55,9 @@ static int sof_nocodec_bes_setup(struct device *dev,
 		links[i].no_pcm = 1;
 		links[i].cpus->dai_name = drv[i].name;
 		links[i].platforms->name = dev_name(dev->parent);
-		if (drv[i].playback.channels_min)
-			links[i].dpcm_playback = 1;
-		if (drv[i].capture.channels_min)
-			links[i].dpcm_capture = 1;
+
+		links[i].playback_only =  drv[i].playback.channels_min && !drv[i].capture.channels_min;
+		links[i].capture_only  = !drv[i].playback.channels_min &&  drv[i].capture.channels_min;
 
 		links[i].be_hw_params_fixup = sof_pcm_dai_link_fixup;
 	}
-- 
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 ` Kuninori Morimoto [this message]
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 ` [PATCH v3 07/13] ASoC: soc-core: " Kuninori Morimoto
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=87ttdwvbub.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