~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to include/trace/events/asoc.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
struct snd_soc_jack;
11
11
struct snd_soc_codec;
 
12
struct snd_soc_platform;
12
13
struct snd_soc_card;
13
14
struct snd_soc_dapm_widget;
14
15
 
59
60
 
60
61
);
61
62
 
 
63
DECLARE_EVENT_CLASS(snd_soc_preg,
 
64
 
 
65
        TP_PROTO(struct snd_soc_platform *platform, unsigned int reg,
 
66
                 unsigned int val),
 
67
 
 
68
        TP_ARGS(platform, reg, val),
 
69
 
 
70
        TP_STRUCT__entry(
 
71
                __string(       name,           platform->name  )
 
72
                __field(        int,            id              )
 
73
                __field(        unsigned int,   reg             )
 
74
                __field(        unsigned int,   val             )
 
75
        ),
 
76
 
 
77
        TP_fast_assign(
 
78
                __assign_str(name, platform->name);
 
79
                __entry->id = platform->id;
 
80
                __entry->reg = reg;
 
81
                __entry->val = val;
 
82
        ),
 
83
 
 
84
        TP_printk("platform=%s.%d reg=%x val=%x", __get_str(name),
 
85
                  (int)__entry->id, (unsigned int)__entry->reg,
 
86
                  (unsigned int)__entry->val)
 
87
);
 
88
 
 
89
DEFINE_EVENT(snd_soc_preg, snd_soc_preg_write,
 
90
 
 
91
        TP_PROTO(struct snd_soc_platform *platform, unsigned int reg,
 
92
                 unsigned int val),
 
93
 
 
94
        TP_ARGS(platform, reg, val)
 
95
 
 
96
);
 
97
 
 
98
DEFINE_EVENT(snd_soc_preg, snd_soc_preg_read,
 
99
 
 
100
        TP_PROTO(struct snd_soc_platform *platform, unsigned int reg,
 
101
                 unsigned int val),
 
102
 
 
103
        TP_ARGS(platform, reg, val)
 
104
 
 
105
);
 
106
 
62
107
DECLARE_EVENT_CLASS(snd_soc_card,
63
108
 
64
109
        TP_PROTO(struct snd_soc_card *card, int val),
229
274
        TP_printk("jack=%s %x", __get_str(name), (int)__entry->val)
230
275
);
231
276
 
 
277
TRACE_EVENT(snd_soc_cache_sync,
 
278
 
 
279
        TP_PROTO(struct snd_soc_codec *codec, const char *type,
 
280
                 const char *status),
 
281
 
 
282
        TP_ARGS(codec, type, status),
 
283
 
 
284
        TP_STRUCT__entry(
 
285
                __string(       name,           codec->name     )
 
286
                __string(       status,         status          )
 
287
                __string(       type,           type            )
 
288
                __field(        int,            id              )
 
289
        ),
 
290
 
 
291
        TP_fast_assign(
 
292
                __assign_str(name, codec->name);
 
293
                __assign_str(status, status);
 
294
                __assign_str(type, type);
 
295
                __entry->id = codec->id;
 
296
        ),
 
297
 
 
298
        TP_printk("codec=%s.%d type=%s status=%s", __get_str(name),
 
299
                  (int)__entry->id, __get_str(type), __get_str(status))
 
300
);
 
301
 
232
302
#endif /* _TRACE_ASOC_H */
233
303
 
234
304
/* This part must be outside protection */