]> git.baikalelectronics.ru Git - kernel.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)
commit666b11f8605bd19cedc3985088594894809a52e2
tree490df086dfaddb59386020aede1ebc32f979b1ff
parent26981b5f4a7dc6bd97cdb52152e2503e99ab8934
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