ALSA: firewire-lib: fix amdtp_packet tracepoints event for packet_index field
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 13 May 2021 12:56:52 +0000 (21:56 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 May 2021 10:06:50 +0000 (12:06 +0200)
commit214a9836697c3c75e03b21f2ba4a3818efad1d74
tree82169f1db1330b4c58422cbc2960d817f52a72d8
parent1e94ffd074dddc288b1f33933e95cf4fc7dfc263
ALSA: firewire-lib: fix amdtp_packet tracepoints event for packet_index field

commit 814b43127f4ac69332e809152e30773941438aff upstream.

The snd_firewire_lib:amdtp_packet tracepoints event includes index of
packet processed in a context handling. However in IR context, it is not
calculated as expected.

Cc: <stable@vger.kernel.org>
Fixes: 753e717986c2 ("ALSA: firewire-lib: use packet descriptor for IR context")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210513125652.110249-6-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/firewire/amdtp-stream-trace.h
sound/firewire/amdtp-stream.c