ALSA: firewire-lib: extend tracepoints event including CYCLE_TIME of 1394 OHCI
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 9 Jan 2023 21:32:31 +0000 (06:32 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 10 Jan 2023 08:34:47 +0000 (09:34 +0100)
commitfef4e61b0b765b6d22badcd5b6575b159e7d510a
tree69f705ed09726ce2d0630184b949dd75d30fa3e8
parentf0117128879be643947411e4794550ce015d7c94
ALSA: firewire-lib: extend tracepoints event including CYCLE_TIME of 1394 OHCI

A commit baa914cd81f5 ("firewire: add kernel API to access CYCLE_TIME
register") allow unit drivers to read CYCLE_TIME of 1394 OHCI controller.
The value expresses monotonic time with 42.195 Mhz resolution and wrapping
around every 128 seconds. The controller uses the time to govern
isochronous cycle.

This commit extends tracepoints event including the value so that event
parser can compute gap between current isochronous cycle and the latest
isochronous cycle in which packet is processed (in IR context) or scheduled
(in IT context). It loses backward compatibility to former format of the
tracepoints event.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20230109213231.138223-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/amdtp-stream-trace.h
sound/firewire/amdtp-stream.c