]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbc6eea7f5bea105c7ae215eeb3629674e94e0624
tree9583f59a15145099c0135c82336db27a87d3764d
parente5c18d81dc8c431c64324c85e44e57c461d03f68
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