Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: soc-topology: 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/878qui9vhe.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kuninori Morimoto and committed by
Mark Brown
44b6f240 0f77c88f

+2 -4
-2
sound/soc/soc-topology-test.c
··· 88 88 .nonatomic = 1, 89 89 .dynamic = 1, 90 90 .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, 91 - .dpcm_playback = 1, 92 - .dpcm_capture = 1, 93 91 SND_SOC_DAILINK_REG(dummy, dummy, platform), 94 92 }, 95 93 };
+2 -2
sound/soc/soc-topology.c
··· 1544 1544 /* enable DPCM */ 1545 1545 link->dynamic = 1; 1546 1546 link->ignore_pmdown_time = 1; 1547 - link->dpcm_playback = le32_to_cpu(pcm->playback); 1548 - link->dpcm_capture = le32_to_cpu(pcm->capture); 1547 + link->playback_only = le32_to_cpu(pcm->playback) && !le32_to_cpu(pcm->capture); 1548 + link->capture_only = !le32_to_cpu(pcm->playback) && le32_to_cpu(pcm->capture); 1549 1549 if (pcm->flag_mask) 1550 1550 set_link_flags(link, 1551 1551 le32_to_cpu(pcm->flag_mask),