You are not logged in.
Hi all,
I'm looking at the Linux kernel source, and in sound/pci/hda/hda_codec.c around line 4119 there is a call to a function called "trace_hda_power_down". I can't find where this function is defined though. Does anyone know? I've tried grepping the entire source tree but this function isn't mentioned anywhere else. I am able to compile the code without errors, so it must be defined somewhere, but I can't see where!
Last edited by Malvineous (2012-05-07 03:48:02)
Offline
Wow, I agree, that's a tricky one!
I noticed it's surrounded by a "CONFIG_SND_HDA_POWER_SAVE" conditional. Do you have "CONFIG_SND_HDA_POWER_SAVE" set to "Y" in your kernel configuration?
Offline
Yes, it's definitely defined. (The problem I am investigating is related to power saving happening when it shouldn't.) There are a bunch of other trace_* functions too which also don't seem to be defined, but I can't find any documentation about what they're for or why they seem to compile when they apparently haven't been declared! They must be declared within a macro somewhere...
Offline
Offline
Ah right, it looks like they're defined in hda_trace.h. Now to hunt for docs on the trace subsystem... Thanks both for your help!
Offline