]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ALSA: firewire-lib: fix inverted node IDs for amdtp_packet events
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 24 May 2019 09:03:40 +0000 (18:03 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 24 May 2019 09:18:01 +0000 (11:18 +0200)
The amdtp_packet events have inverted node IDs for src/dst. This commit
fixes the bug.

Fixes: 8d3f1fdf5211 ("ALSA: firewire-lib: unify tracing events to 'amdtp_packet' event")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/amdtp-stream-trace.h

index ab708857979fc7a618f81fc20c45bb6d2ff41ee1..5fe0920f04e5a03c55b761df867f4b66fc63db15 100644 (file)
@@ -35,11 +35,11 @@ TRACE_EVENT(amdtp_packet,
                __entry->cycle = cycles % CYCLES_PER_SECOND;
                __entry->channel = s->context->channel;
                if (s->direction == AMDTP_IN_STREAM) {
-                       __entry->src = fw_parent_device(s->unit)->node_id;
-                       __entry->dest = fw_parent_device(s->unit)->card->node_id;
-               } else {
                        __entry->src = fw_parent_device(s->unit)->card->node_id;
                        __entry->dest = fw_parent_device(s->unit)->node_id;
+               } else {
+                       __entry->src = fw_parent_device(s->unit)->node_id;
+                       __entry->dest = fw_parent_device(s->unit)->card->node_id;
                }
                if (cip_header) {
                        memcpy(__get_dynamic_array(cip_header), cip_header,