ASoC: SOF: Intel: cnl: add pointer ops to use DPIB position
authorKeyon Jie <yang.jie@linux.intel.com>
Tue, 30 Apr 2019 23:09:19 +0000 (18:09 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 3 May 2019 05:56:54 +0000 (14:56 +0900)
Add .pcm_pointer ops for cannonlake to read DPIB/posbuf and get pointer
for ALSA, to align with apollolake.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/cnl.c

index 3e95c1e5e49120b73eb45d02408beb53aa5b4525..36ae9b88d0dc3d163136256db92060dc17394455 100644 (file)
@@ -199,6 +199,7 @@ const struct snd_sof_dsp_ops sof_cnl_ops = {
        .pcm_close      = hda_dsp_pcm_close,
        .pcm_hw_params  = hda_dsp_pcm_hw_params,
        .pcm_trigger    = hda_dsp_pcm_trigger,
+       .pcm_pointer    = hda_dsp_pcm_pointer,
 
        /* firmware loading */
        .load_firmware = snd_sof_load_firmware_raw,