ASoC: SOF: Intel: hda-stream: export stream_get_position() helper
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 3 May 2024 13:52:15 +0000 (08:52 -0500)
committerMark Brown <broonie@kernel.org>
Sun, 5 May 2024 14:45:43 +0000 (23:45 +0900)
commit9e7fd21ab03e6fadc4856f4c06e642daa9ccf7c6
tree70e10fe4ea93d709a4a9761892f9135f5caafc33
parent9723cab054d59d770cd1927f92fe315c26cc6a78
ASoC: SOF: Intel: hda-stream: export stream_get_position() helper

Export this helper so that we can report the DPIB position if the BPT
DMA do not complete - this is very useful to see if the DMA started or
gets stuck somehow with invalid bandwidth configurations.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Link: https://lore.kernel.org/r/20240503135221.229202-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-stream.c