ASoC: SOF: replace dev_vdbg with tracepoints
[linux-2.6-microblaze.git] / sound / soc / sof / pcm.c
index 49f7cb0..14571b8 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/pm_runtime.h>
 #include <sound/pcm_params.h>
 #include <sound/sof.h>
+#include <trace/events/sof.h>
 #include "sof-of-dev.h"
 #include "sof-priv.h"
 #include "sof-audio.h"
@@ -384,9 +385,7 @@ static snd_pcm_uframes_t sof_pcm_pointer(struct snd_soc_component *component,
        dai = bytes_to_frames(substream->runtime,
                              spcm->stream[substream->stream].posn.dai_posn);
 
-       dev_vdbg(component->dev,
-                "PCM: stream %d dir %d DMA position %lu DAI position %lu\n",
-                spcm->pcm.pcm_id, substream->stream, host, dai);
+       trace_sof_pcm_pointer_position(sdev, spcm, substream, host, dai);
 
        return host;
 }