mbox series

[0/3] ALSA: firewire-lib: drop initial NODATA packets or empty packets

Message ID 20210523124114.272134-1-o-takashi@sakamocchi.jp (mailing list archive)
Headers show
Series ALSA: firewire-lib: drop initial NODATA packets or empty packets | expand

Message

Takashi Sakamoto May 23, 2021, 12:41 p.m. UTC
Hi,

This patchset is for convenience of ALSA bebob and firewire-tascam
drivers.

The devices based on BeBoB ASICs or the devices in Tascam FireWire
series transfer a batch of NODATA packet or empty packet in initial step
of 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.

In 1st patch, ALSA IEC 61883-1/6 packet streaming engine becomes to drop
the initial packets. As a result, The tx_init_skip_cycles argument of
amdtp_domain_start() function changes its meaning. In the following
patches, ALSA bebob driver is refactored.

Takashi Sakamoto (3):
  ALSA: firewire-lib: drop initial tx packets with NODATA or empty
  ALSA: bebob: cancel switching connection order
  ALSA: bebob: distinguish M-Audio ProFire Lightbridge quirk

 sound/firewire/amdtp-stream.c       | 130 +++++++++++++++++++++-------
 sound/firewire/amdtp-stream.h       |   3 +
 sound/firewire/bebob/bebob.c        |  10 ++-
 sound/firewire/bebob/bebob.h        |   1 +
 sound/firewire/bebob/bebob_stream.c |  25 ++----
 5 files changed, 119 insertions(+), 50 deletions(-)