[alsa-devel] [PATCH 10/39] firewire-lib: Add transfer delay to synchronized duplex streams

Clemens Ladisch clemens at ladisch.de
Tue Mar 11 09:13:30 CET 2014


Takashi Sakamoto wrote:
> (mar 10 2014 06:13), Clemens Ladisch wrote:
>> The frame in which the out-packet will be sent is QUEUE_LENGTH
>> frames later than that of the in-packet, so we need to adjust the
>> SYT by that amount.  (However, 48 % 16 == 0.)
>
> So basically we need to add nothing to SYT for out-packet.

It would be possible to do the QUEUE_LENGTH adjustment in the code and
rely on the compiler to optimize it away, but that would be silly.
OTOH a comment might be useful.


Regards,
Clemens


More information about the Alsa-devel mailing list