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)
commitfb25dcc885fa377d07586dd1f8f0bec32b4b547c
treeae883bd8dbb957c9cb71dbae15eaf8dd50144b6b
parentf20fdd4362e31a02c24048af2eca735b59dacf78
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