mbox series

[00/10] ALSA: firewire-lib: pool sequence of syt offset and data blocks in AMDTP domain structure

Message ID 20200508043635.349339-1-o-takashi@sakamocchi.jp (mailing list archive)
Headers show
Series ALSA: firewire-lib: pool sequence of syt offset and data blocks in AMDTP domain structure | expand

Message

Takashi Sakamoto May 8, 2020, 4:36 a.m. UTC
Hi,

In current implementation, the packets for outgoing AMDTP streams are
processed by per-stream calculation of syt offset and the number of data
blocks per packet.

This patchset is a preparation for future extension that the packets for
outgoing AMDTP streams are processed according to the result of 'sampling
clock recovery' in IEC 61883-6:2005 from selected incoming AMDTP stream.
The preparation is to process packets for outgoing AMDTP streams by pool
in AMDTP domain structure for the sequence of syt offset and the number
of data blocks. The way to generate sequence is still the same as the
current implementation, which generates by ideal sampling transmission
frequency against IEEE 1394 bus clock.

Takashi Sakamoto (10):
  ALSA: firewire-lib: fix invalid assignment to union data for
    directional parameter
  ALSA: firewire-lib: use macro for maximum value of second in 1394 OHCI
    isoc descriptor
  ALSA: firewire-lib: add reference to domain structure from stream
    structure
  ALSA: firewire-lib: code refactoring for parameters of packet queue
    and IRQ timing
  ALSA: firewire-lib: code refactoring for syt computation
  ALSA: firewire-lib: code refactoring for syt offset calculation
  ALSA: firewire-lib: code refactoring for data block calculation
  ALSA: firewire-lib: add cache for packet sequence to AMDTP domain
    structure
  ALSA: firewire-lib: pool ideal sequence of syt offset and data block
  ALSA: firewire-lib: use sequence of syt offset and data block on pool
    in AMDTP domain

 sound/firewire/amdtp-am824.c  |   3 +-
 sound/firewire/amdtp-stream.c | 326 ++++++++++++++++++++--------------
 sound/firewire/amdtp-stream.h |  20 ++-
 3 files changed, 209 insertions(+), 140 deletions(-)

Comments

Takashi Iwai May 8, 2020, 7:48 a.m. UTC | #1
On Fri, 08 May 2020 06:36:25 +0200,
Takashi Sakamoto wrote:
> 
> Hi,
> 
> In current implementation, the packets for outgoing AMDTP streams are
> processed by per-stream calculation of syt offset and the number of data
> blocks per packet.
> 
> This patchset is a preparation for future extension that the packets for
> outgoing AMDTP streams are processed according to the result of 'sampling
> clock recovery' in IEC 61883-6:2005 from selected incoming AMDTP stream.
> The preparation is to process packets for outgoing AMDTP streams by pool
> in AMDTP domain structure for the sequence of syt offset and the number
> of data blocks. The way to generate sequence is still the same as the
> current implementation, which generates by ideal sampling transmission
> frequency against IEEE 1394 bus clock.
> 
> Takashi Sakamoto (10):
>   ALSA: firewire-lib: fix invalid assignment to union data for
>     directional parameter
>   ALSA: firewire-lib: use macro for maximum value of second in 1394 OHCI
>     isoc descriptor
>   ALSA: firewire-lib: add reference to domain structure from stream
>     structure
>   ALSA: firewire-lib: code refactoring for parameters of packet queue
>     and IRQ timing
>   ALSA: firewire-lib: code refactoring for syt computation
>   ALSA: firewire-lib: code refactoring for syt offset calculation
>   ALSA: firewire-lib: code refactoring for data block calculation
>   ALSA: firewire-lib: add cache for packet sequence to AMDTP domain
>     structure
>   ALSA: firewire-lib: pool ideal sequence of syt offset and data block
>   ALSA: firewire-lib: use sequence of syt offset and data block on pool
>     in AMDTP domain

Applied all ten patches to for-next branch now.


thanks,

Takashi