summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@ti.com>2011-07-04 22:10:50 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-07-05 11:08:10 -0700
commita82ce2ae0d91cfa261cbe6f27f4031963ace097c (patch)
tree69cf6aa99c358dce1a1a2b6b9ced390068f59222 /sound/soc/soc-core.c
parentcb2cf612fbdf457291b6e47064fed24f0dfdd9a5 (diff)
downloadlinux-a82ce2ae0d91cfa261cbe6f27f4031963ace097c.tar.gz
linux-a82ce2ae0d91cfa261cbe6f27f4031963ace097c.tar.bz2
linux-a82ce2ae0d91cfa261cbe6f27f4031963ace097c.zip
ASoC: core - Add platform IO tracing
Trace platform IO just like CODEC IO. Signed-off-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 3049c37b14e0..70f477941892 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1665,6 +1665,7 @@ int snd_soc_platform_read(struct snd_soc_platform *platform,
ret = platform->driver->read(platform, reg);
dev_dbg(platform->dev, "read %x => %x\n", reg, ret);
+ trace_snd_soc_preg_read(platform, reg, ret);
return ret;
}
@@ -1679,6 +1680,7 @@ int snd_soc_platform_write(struct snd_soc_platform *platform,
}
dev_dbg(platform->dev, "write %x = %x\n", reg, val);
+ trace_snd_soc_preg_write(platform, reg, val);
return platform->driver->write(platform, reg, val);
}
EXPORT_SYMBOL_GPL(snd_soc_platform_write);