Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ecf726f5
Commit
ecf726f5
authored
Aug 09, 2011
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: hda - Add tracepoint for unsolicited events
Signed-off-by:
Takashi Iwai
<
tiwai@suse.de
>
parent
d11b7fa3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
Documentation/sound/alsa/HD-Audio.txt
Documentation/sound/alsa/HD-Audio.txt
+2
-1
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.c
+1
-0
sound/pci/hda/hda_trace.h
sound/pci/hda/hda_trace.h
+22
-0
No files found.
Documentation/sound/alsa/HD-Audio.txt
View file @
ecf726f5
...
...
@@ -529,7 +529,8 @@ Tracepoints
The hd-audio driver gives a few basic tracepoints.
`hda:hda_send_cmd` traces each CORB write while `hda:hda_get_response`
traces the response from RIRB (only when read from the codec driver).
`hda:hda_bus_reset` traces the bus-reset due to fatal error, etc, and
`hda:hda_bus_reset` traces the bus-reset due to fatal error, etc,
`hda:hda_unsol_event` traces the unsolicited events, and
`hda:hda_power_down` and `hda:hda_power_up` trace the power down/up
via power-saving behavior.
...
...
sound/pci/hda/hda_codec.c
View file @
ecf726f5
...
...
@@ -610,6 +610,7 @@ int snd_hda_queue_unsol_event(struct hda_bus *bus, u32 res, u32 res_ex)
struct
hda_bus_unsolicited
*
unsol
;
unsigned
int
wp
;
trace_hda_unsol_event
(
bus
,
res
,
res_ex
);
unsol
=
bus
->
unsol
;
if
(
!
unsol
)
return
0
;
...
...
sound/pci/hda/hda_trace.h
View file @
ecf726f5
...
...
@@ -87,6 +87,28 @@ DEFINE_EVENT(hda_power, hda_power_up,
TP_ARGS
(
codec
)
);
TRACE_EVENT
(
hda_unsol_event
,
TP_PROTO
(
struct
hda_bus
*
bus
,
u32
res
,
u32
res_ex
),
TP_ARGS
(
bus
,
res
,
res_ex
),
TP_STRUCT__entry
(
__field
(
unsigned
int
,
card
)
__field
(
u32
,
res
)
__field
(
u32
,
res_ex
)
),
TP_fast_assign
(
__entry
->
card
=
(
bus
)
->
card
->
number
;
__entry
->
res
=
res
;
__entry
->
res_ex
=
res_ex
;
),
TP_printk
(
"[%d] res=%x, res_ex=%x"
,
__entry
->
card
,
__entry
->
res
,
__entry
->
res_ex
)
);
#endif
/* _TRACE_HDA_H */
/* This part must be outside protection */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment