]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: SOF: Intel: Set the dai/host get frame/byte counter callbacks
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 21 Mar 2024 13:08:04 +0000 (15:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:38:17 +0000 (16:38 +0200)
commita361622fd9f39925421964ff8aae405e57821ab2
tree88c9602881886352647783aa71d5db0788fd8234
parent217a7c1c8a8026abbdf59df4af5809c4210ca84a
ASoC: SOF: Intel: Set the dai/host get frame/byte counter callbacks

commit fd6f6a0632bc891673490bf4a92304172251825c upstream.

Add implementation for reading the LDP (Linear DMA Position) to be used as
get_host_byte_counter().
The LDP is counting the number of bytes moved between the DSP and host
memory.

Set the get_dai_frame_counter to hda_dsp_get_stream_llp, which is counting
the frames on the link side of the DSP.

Cc: stable@vger.kernel.org # 6.8
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://msgid.link/r/20240321130814.4412-8-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/sof/intel/hda-common-ops.c
sound/soc/sof/intel/hda-stream.c
sound/soc/sof/intel/hda.h