]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: ipc: introduce cont_update_posn in sof_ipc_stream_params struct
authorYC Hung <yc.hung@mediatek.com>
Mon, 9 May 2022 17:04:25 +0000 (12:04 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 10 May 2022 13:01:54 +0000 (14:01 +0100)
commit99055dd1d8c7255c958f53d3fa165f36640e9a5c
tree8966100f2fbc401d96828c05d090a3ae54ad748d
parent8efcf4c53aaf25d22deaca4ec062d718e5b966b9
ASoC: SOF: ipc: introduce cont_update_posn in sof_ipc_stream_params struct

The host stream position is updated when no_stream_position is set as 0.
However current implementation updates host stream position only when
report data is larger than or equal to host period size which is decided
by the period size of host side. It maybe cause host stream position
update not in time. Therefore this patch introduces another field
"cont_update_posn", a boolean value aimed to update host stream position
continuously and based on period size of pipeline. It can get better
precise when need to update host stream position from firmware.

Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.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/20220509170425.54640-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/sof/stream.h
include/uapi/sound/sof/abi.h