]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: firewire-lib: use IT context header to compute cycle count for scheduling packet
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 21 May 2019 14:57:37 +0000 (23:57 +0900)
committerTakashi Iwai <tiwai@suse.de>
Wed, 22 May 2019 10:28:33 +0000 (12:28 +0200)
commit26cd1e5850b70b4ee4a652e5246a356060ea852c
tree490df086dfaddb59386020aede1ebc32f979b1ff
parentdf9160b9149912a8b23b3a846313656d66cfacb8
ALSA: firewire-lib: use IT context header to compute cycle count for scheduling packet

In IT context, header includes information of cycle to have processed
queued packet.

This commit uses the per-packet information to compute the cycle for
packet to be queued, instead of callback argument. In current
implementaion of ALSA IEC 61883-1/6 packet streaming engine, 48 packets
are queued at first to skip recent cycle. When IT context calls handler,
cycle information in header plus 48 cycle means the cycle to be going
to queue packet.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/amdtp-stream.c