#undef TRACE_SYSTEM #define TRACE_SYSTEM hda_controller #define TRACE_INCLUDE_FILE hda_controller_trace #if !defined(_TRACE_HDA_CONTROLLER_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_HDA_CONTROLLER_H #include struct azx; struct azx_dev; TRACE_EVENT(azx_pcm_trigger, TP_PROTO(struct azx *chip, struct azx_dev *dev, int cmd), TP_ARGS(chip, dev, cmd), TP_STRUCT__entry( __field( int, card ) __field( int, idx ) __field( int, cmd ) ), TP_fast_assign( __entry->card = (chip)->card->number; __entry->idx = (dev)->core.index; __entry->cmd = cmd; ), TP_printk("[%d:%d] cmd=%d", __entry->card, __entry->idx, __entry->cmd) ); TRACE_EVENT(azx_get_position, TP_PROTO(struct azx *chip, struct azx_dev *dev, unsigned int pos, unsigned int delay), TP_ARGS(chip, dev, pos, delay), TP_STRUCT__entry( __field( int, card ) __field( int, idx ) __field( unsigned int, pos ) __field( unsigned int, delay ) ), TP_fast_assign( __entry->card = (chip)->card->number; __entry->idx = (dev)->core.index; __entry->pos = pos; __entry->delay = delay; ), TP_printk("[%d:%d] pos=%u, delay=%u", __entry->card, __entry->idx, __entry->pos, __entry->delay) ); DECLARE_EVENT_CLASS(azx_pcm, TP_PROTO(struct azx *chip, struct azx_dev *azx_dev), TP_ARGS(chip, azx_dev), TP_STRUCT__entry( __field( unsigned char, stream_tag ) ), TP_fast_assign( __entry->stream_tag = (azx_dev)->core.stream_tag; ), TP_printk("stream_tag: %d", __entry->stream_tag) ); DEFINE_EVENT(azx_pcm, azx_pcm_open, TP_PROTO(struct azx *chip, struct azx_dev *azx_dev), TP_ARGS(chip, azx_dev) ); DEFINE_EVENT(azx_pcm, azx_pcm_close, TP_PROTO(struct azx *chip, struct azx_dev *azx_dev), TP_ARGS(chip, azx_dev) ); DEFINE_EVENT(azx_pcm, azx_pcm_hw_params, TP_PROTO(struct azx *chip, struct azx_dev *azx_dev), TP_ARGS(chip, azx_dev) ); DEFINE_EVENT(azx_pcm, azx_pcm_prepare, TP_PROTO(struct azx *chip, struct azx_dev *azx_dev), TP_ARGS(chip, azx_dev) ); #endif /* _TRACE_HDA_CONTROLLER_H */ /* This part must be outside protection */ #undef TRACE_INCLUDE_PATH #define TRACE_INCLUDE_PATH . #include >diff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-01-30 15:55:48 -0500
committerDavid S. Miller <davem@davemloft.net>2017-01-30 15:56:40 -0500
commit1930b60352e7e195f55b27cde15d2a8f43342a8b (patch)
treeec3f66cd8d8110bf7b4f61e0446bdea505915db9 /sound/soc/codecs/sirf-audio-codec.c
parent4be9993493bc7ee3fdf950a83bc050a3e6cf2a45 (diff)
parentec960de61503ef349588dccfa3ae02efabcc2762 (diff)
Merge branch 'dsa-port-mirroring'
Florian Fainelli says: ==================== net: dsa: Port mirroring support This patch series adds support for port mirroring in the two Broadcom switch drivers. The major part of the functional are actually with the plumbing between tc and the drivers. Changes in v5: - Added Jiri's Reviewed-by tag to first patch - rebase against latest net-next/master after bcm_sf2 CFP series Changes in v4: - rebased against latest net-next/master after Vivien's changes Changes in v3: - removed multiline comments from added structures - simplify error handling in dsa_slave_add_cls_matchall Changes in v2: - fixed filter removal logic to disable the ingress or egress mirroring when there are no longer ports being monitored in ingress or egress - removed a stray list_head in dsa_port structure that is not used Tested using the two iproute2 examples: tc qdisc add dev eth1 handle ffff: ingress tc filter add dev eth1 parent ffff: \ matchall skip_sw \ action mirred egress mirror \ dev eth2 tc qdisc add dev eth1 handle 1: root prio tc filter add dev eth1 parent 1: \ matchall skip_sw \ action mirred egress mirror \ dev eth2 ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound/soc/codecs/sirf-audio-codec.c')