]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: firewire-lib: drop initial NODATA or empty packet
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 24 May 2021 03:13:43 +0000 (12:13 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 May 2021 06:53:43 +0000 (08:53 +0200)
commitf41cb3ce76c40a9fea43e5cbdcd8fcb6dba721b3
treeae883bd8dbb957c9cb71dbae15eaf8dd50144b6b
parentbd11d6a4e0377f68d02da675d33d0bcc4cde1b3d
ALSA: firewire-lib: drop initial NODATA or empty packet

The devices based on BeBoB ASICs or the devices in Tascam FireWire
series transfer a batch of NODATA packet or empty packet in the beginning
of packet streaming. To avoid processing them, current implementation uses
an option to skip processing content of tx packet during some initial
cycles. However, the hard-coded number is not enough useful.

This commit drops content of packets till the packet includes any event
firstly. The function of option is to skip processing content of tx packet
with any event after dropping.

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