summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-08-20 10:22:25 +0200
committerTakashi Iwai <tiwai@suse.de>2012-08-20 11:24:29 +0200
commitb244d335609f9bbf4c0204a365bf03b7ac53c3c8 (patch)
tree23a0a48e14788fae844c328ff64f97e0f084f9fb /sound/pci/hda/hda_codec.c
parent6f0fa66051e92f361bd293432466f5e62832adbf (diff)
downloadblackbird-op-linux-b244d335609f9bbf4c0204a365bf03b7ac53c3c8.tar.gz
blackbird-op-linux-b244d335609f9bbf4c0204a365bf03b7ac53c3c8.zip
ALSA: hda - Add tracepoints at snd_hda_power_up/down entrances.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 408babc10437..ad0101e2d4ff 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -4417,6 +4417,7 @@ static void __snd_hda_power_up(struct hda_codec *codec, bool wait_power_down)
spin_lock(&codec->power_lock);
codec->power_count++;
+ trace_hda_power_count(codec);
/* Return if power_on or transitioning to power_on, unless currently
* powering down. */
if ((codec->power_on || codec->power_transition > 0) &&
@@ -4496,6 +4497,7 @@ void snd_hda_power_down(struct hda_codec *codec)
{
spin_lock(&codec->power_lock);
--codec->power_count;
+ trace_hda_power_count(codec);
if (!codec->power_on || codec->power_count || codec->power_transition) {
spin_unlock(&codec->power_lock);
return;
OpenPOWER on IntegriCloud