ALSA: firewire-motu: cache event ticks in source packet header per data block
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 2 Jun 2021 01:34:05 +0000 (10:34 +0900)
committerTakashi Iwai <tiwai@suse.de>
Wed, 2 Jun 2021 06:59:38 +0000 (08:59 +0200)
commite50dfac81f733ec379f3b0c6025b5720cf6880df
tree9583f59a15145099c0135c82336db27a87d3764d
parent138d1bceee6a3baaf2555725bf5b3e44b02a65e4
ALSA: firewire-motu: cache event ticks in source packet header per data block

The devices in MOTU FireWire series put source packet header (SPH) into
each data block of tx packet for presentation time of event. The format
of timestamp is compliant to IEC 61883-1, with cycle and offset fields
without sec field of 32 bit cycle time.

This commit takes ALSA firewire-motu driver to cache the presentation
time as offset from cycle in which the packet is transferred.

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