]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: SOF: Add cont_update_posn to platform parameters
authorYC Hung <yc.hung@mediatek.com>
Mon, 25 Jul 2022 19:53:42 +0000 (14:53 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 25 Jul 2022 21:37:01 +0000 (22:37 +0100)
Add cont_update_posn to platform parameters to support
continue update position for platform.

Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Chao Song <chao.song@intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: YC Hung <yc.hung@mediatek.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220725195343.145603-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc3-pcm.c
sound/soc/sof/sof-priv.h

index b97e63d3724aab9b73aeff71244c4fcd91eab28c..9c6a84bdeca75301aa6ee56a55d4b35672a57971 100644 (file)
@@ -115,6 +115,9 @@ static int sof_ipc3_pcm_hw_params(struct snd_soc_component *component,
                        pcm.params.no_stream_position = 1;
        }
 
+       if (platform_params->cont_update_posn)
+               pcm.params.cont_update_posn = 1;
+
        dev_dbg(component->dev, "stream_tag %d", pcm.params.stream_tag);
 
        /* send hw_params IPC to the DSP */
index 8bbc94907c624b7ca61527f7a7bb13986a02979a..823583086279b3bd092bd392d79c946d4d99f76a 100644 (file)
@@ -126,6 +126,7 @@ struct snd_sof_platform_stream_params {
        bool use_phy_address;
        u32 phy_addr;
        bool no_ipc_position;
+       bool cont_update_posn;
 };
 
 /*