diff mbox series

[v7,4/4] ASoC: Intel: sof_sdw: use playback/capture_only flags

Message ID 877cd3lmid.wl-kuninori.morimoto.gx@renesas.com
State New
Headers show
Series ASoC: grace time for DPCM cleanup | expand

Commit Message

Kuninori Morimoto July 30, 2024, 1:03 a.m. UTC
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

Prepare for removal of dpcm_playback and dpcm_capture flags in
dailinks.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/intel/boards/sof_sdw.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Mark Brown Aug. 14, 2024, 5:17 p.m. UTC | #1
On Tue, Jul 30, 2024 at 01:03:07AM +0000, Kuninori Morimoto wrote:
> From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> 
> Prepare for removal of dpcm_playback and dpcm_capture flags in
> dailinks.

This seems like it needs a rebase against my current tree.
Kuninori Morimoto Aug. 21, 2024, 2:07 a.m. UTC | #2
Hi Mark, Pierre-Louis

> > From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> > 
> > Prepare for removal of dpcm_playback and dpcm_capture flags in
> > dailinks.
> 
> This seems like it needs a rebase against my current tree.

It seems Intel has big change to shares the code.
I will post v8 patch, but I think Intel want to test it before
Mark apply it.

Thank you for your help !!

Best regards
---
Kuninori Morimoto
diff mbox series

Patch

diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c
index e5feaef669d14..17581473343f3 100644
--- a/sound/soc/intel/boards/sof_sdw.c
+++ b/sound/soc/intel/boards/sof_sdw.c
@@ -1289,8 +1289,8 @@  static void init_dai_link(struct device *dev, struct snd_soc_dai_link *dai_links
 	dai_links->num_cpus = cpus_num;
 	dai_links->codecs = codecs;
 	dai_links->num_codecs = codecs_num;
-	dai_links->dpcm_playback = playback;
-	dai_links->dpcm_capture = capture;
+	dai_links->playback_only = playback && !capture;
+	dai_links->capture_only = !playback && capture;
 	dai_links->init = init;
 	dai_links->ops = ops;
 }