• Takashi Sakamoto's avatar
    ALSA: firewire-lib: fix initial value of data block count for IR context... · 4ece7f6f
    Takashi Sakamoto authored
    ALSA: firewire-lib: fix initial value of data block count for IR context without CIP_DBC_IS_END_EVENT
    
    For IR context, ALSA IEC 61883-1/6 engine uses initial value of data
    block counter as UINT_MAX, to detect first isochronous packet in the
    middle of packet streaming.
    
    At present, when CIP_DBC_IS_END_EVENT is not used (i.e. for drivers except
    for ALSA fireworks driver), the initial value is used as is for
    tracepoints event. However, the engine can detect the value of dbc field
    in the payload of first isochronous packet and the value should be assigned
    to the event.
    
    This commit fixes the bug.
    
    Fixes: 76864868 ("ALSA: firewire-lib: cache next data_block_counter after probing tracepoints event for IR context")
    Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    4ece7f6f
amdtp-stream.c 29.4 KB