]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: SOF: Add support for pause supported tokens from topology
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Fri, 13 Dec 2024 10:11:22 +0000 (12:11 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 13 Dec 2024 13:10:29 +0000 (13:10 +0000)
commit70a667d70cce338ab8552dd762ae114a5ab96500
tree45d662345f96b53ff2cb26ec7b913c7af3066899
parent3ce8df13f65e3ed297def63bb1e3ee6f024cbdc5
ASoC: SOF: Add support for pause supported tokens from topology

New tokens are added to topology:
1202: SOF_TKN_STREAM_PLAYBACK_PAUSE_SUPPORTED
1203: SOF_TKN_STREAM_CAPTURE_PAUSE_SUPPORTED

The new tokens are used to advertise support for PAUSE/RESUME operation on
a PCM device depending on firmware product, use case, pipeline topology.

The snd_sof_pcm_stream.pause_supported is updated to reflect the advertised
value for the PCM device.

If the token does not exist then the pause_supported is set to false.

Note: it is up to the platform code to use this flag to decide to advertise
the PAUSE support for user space or not.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Link: https://patch.msgid.link/20241213101123.27318-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/uapi/sound/sof/tokens.h
sound/soc/sof/sof-audio.h
sound/soc/sof/topology.c