summaryrefslogtreecommitdiff
path: root/sound/hda/hdac_stream.c
diff options
context:
space:
mode:
authorLibin Yang <libin.yang@intel.com>2015-05-12 09:43:20 +0800
committerTakashi Iwai <tiwai@suse.de>2015-05-18 10:06:20 +0200
commit598dfb56b016615f5f49848b58a1ce151acd3bd3 (patch)
tree4c272033e253aa5c71a5732e74e82d248828dccf /sound/hda/hdac_stream.c
parent5c03be00cd9eb164be7c7e3bd9065c7ac2df4a29 (diff)
downloadlwn-598dfb56b016615f5f49848b58a1ce151acd3bd3.tar.gz
lwn-598dfb56b016615f5f49848b58a1ce151acd3bd3.zip
ALSA: hda - add hdac stream trace
Add the trace of snd_hdac_stream_start and snd_hdac_stream_stop. Signed-off-by: Libin Yang <libin.yang@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/hda/hdac_stream.c')
-rw-r--r--sound/hda/hdac_stream.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/hda/hdac_stream.c b/sound/hda/hdac_stream.c
index 1ba0462ef7ca..52a894fe478f 100644
--- a/sound/hda/hdac_stream.c
+++ b/sound/hda/hdac_stream.c
@@ -10,6 +10,7 @@
#include <sound/pcm.h>
#include <sound/hdaudio.h>
#include <sound/hda_register.h>
+#include "trace.h"
/**
* snd_hdac_stream_init - initialize each stream (aka device)
@@ -48,6 +49,8 @@ void snd_hdac_stream_start(struct hdac_stream *azx_dev, bool fresh_start)
{
struct hdac_bus *bus = azx_dev->bus;
+ trace_snd_hdac_stream_start(bus, azx_dev);
+
azx_dev->start_wallclk = snd_hdac_chip_readl(bus, WALLCLK);
if (!fresh_start)
azx_dev->start_wallclk -= azx_dev->period_wallclk;
@@ -82,6 +85,8 @@ EXPORT_SYMBOL_GPL(snd_hdac_stream_clear);
*/
void snd_hdac_stream_stop(struct hdac_stream *azx_dev)
{
+ trace_snd_hdac_stream_stop(azx_dev->bus, azx_dev);
+
snd_hdac_stream_clear(azx_dev);
/* disable SIE */
snd_hdac_chip_updatel(azx_dev->bus, INTCTL, 1 << azx_dev->index, 0);