summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/nocodec.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2024-10-21 01:58:49 +0200
committerMark Brown <broonie@kernel.org>2024-10-23 14:01:56 +0200
commit90bbbf612f9e5e4548b27b213b1866b4feb670bd (patch)
treedd07e51e2325d51d8c27a870b2cff46197af1539 /sound/soc/sof/nocodec.c
parentASoC: fsl: remove dpcm_xxx flags (diff)
downloadlinux-90bbbf612f9e5e4548b27b213b1866b4feb670bd.tar.xz
linux-90bbbf612f9e5e4548b27b213b1866b4feb670bd.zip
ASoC: sof: remove dpcm_xxx flags
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> Link: https://patch.msgid.link/87h6969vie.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '')
-rw-r--r--sound/soc/sof/nocodec.c7
1 files 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;
}