]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ASoC: soc-topology: remove dpcm_xxx flags
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Sun, 20 Oct 2024 23:59:25 +0000 (23:59 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 23 Oct 2024 12:02:02 +0000 (13:02 +0100)
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>
sound/soc/soc-topology-test.c
sound/soc/soc-topology.c

index a2b08568f4e89844b74effc43082efd08a7d4db1..c8f2ec29e97030f801c5ee7bcfce8807d35ca129 100644 (file)
@@ -88,8 +88,6 @@ static struct snd_soc_dai_link kunit_dai_links[] = {
                .nonatomic = 1,
                .dynamic = 1,
                .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
-               .dpcm_playback = 1,
-               .dpcm_capture = 1,
                SND_SOC_DAILINK_REG(dummy, dummy, platform),
        },
 };
index 97517423d1f0bbcc750bf07171a9796d32b9bacf..43003d2d3666733673b7a63565a25c0f1af44165 100644 (file)
@@ -1544,8 +1544,8 @@ static int soc_tplg_fe_link_create(struct soc_tplg *tplg,
        /* enable DPCM */
        link->dynamic = 1;
        link->ignore_pmdown_time = 1;
-       link->dpcm_playback = le32_to_cpu(pcm->playback);
-       link->dpcm_capture = le32_to_cpu(pcm->capture);
+       link->playback_only =  le32_to_cpu(pcm->playback) && !le32_to_cpu(pcm->capture);
+       link->capture_only  = !le32_to_cpu(pcm->playback) &&  le32_to_cpu(pcm->capture);
        if (pcm->flag_mask)
                set_link_flags(link,
                               le32_to_cpu(pcm->flag_mask),