aboutsummaryrefslogtreecommitdiffstats
path: root/sound/firewire/amdtp-stream.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2021-05-18 22:00:46 +0900
committerTakashi Iwai <tiwai@suse.de>2021-05-18 18:12:42 +0200
commit705794c53b0080d7d1c98a7425067f5752ea786b (patch)
tree8391f6207cd42e7294d0b6be7d4521d54a0a3422 /sound/firewire/amdtp-stream.h
parentALSA: firewire-lib: code refactoring for check of CIP header about payload size (diff)
downloadlinux-dev-705794c53b0080d7d1c98a7425067f5752ea786b.tar.xz
linux-dev-705794c53b0080d7d1c98a7425067f5752ea786b.zip
ALSA: firewire-lib: check cycle continuity
Within devices supported by drivers in ALSA firewire stack, OXFW-based devices and Fireface devices are known to skip isochronous cycle for packet transmission. The former is due to the jumbo payload quirk. The latter is due to vendor protocol in which empty packet is not transferred in blocking mode. Although nothing to do just for handling events of the packet, packet continuity is necessarily for media clock recovery. This commit checks whether any cycle is continue or not. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Link: https://lore.kernel.org/r/20210518130048.146596-8-o-takashi@sakamocchi.jp Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/amdtp-stream.h')
-rw-r--r--sound/firewire/amdtp-stream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/firewire/amdtp-stream.h b/sound/firewire/amdtp-stream.h
index 5f5e4d938a0d..58769ca184a2 100644
--- a/sound/firewire/amdtp-stream.h
+++ b/sound/firewire/amdtp-stream.h
@@ -171,6 +171,7 @@ struct amdtp_stream {
bool callbacked;
wait_queue_head_t callback_wait;
u32 start_cycle;
+ unsigned int next_cycle;
/* For backends to process data blocks. */
void *protocol;