1. 28 Jun, 2019 3 commits
    • Takashi Sakamoto's avatar
      ALSA: firewire-lib: fix to process MIDI conformant data channel for AM824 format · 973b059c
      Takashi Sakamoto authored
      In IEC 61883-6, 8 MIDI data streams are multiplexed into single MIDI
      conformant data channel. The index of stream is calculated by modulo 8
      of the value of data block counter. Therefore data block processing
      layer requires valid value of data block counter.
      
      In recent changes of ALSA IEC 61883-1/6 engine, the value of data block
      counter is changed before calling data block processing layer. This
      brings miss detection of MIDI messages in non-blocking transmission
      method is used.
      
      This commit fixes the bug by changing chached data block counter after
      calling data block processing layer.
      
      Fixes: e335425b ("ALSA: firewire-lib: split helper function to check incoming CIP header")
      Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      973b059c
    • Takashi Sakamoto's avatar
      ALSA: firewire-lib: cache next data_block_counter after probing tracepoints event for IR context · 76864868
      Takashi Sakamoto authored
      For debugging purpose, ALSA IEC 61883-1/6 engine has tracepoints event.
      In current implementation, next data block counter is stored as current
      data block counter before probing the event for IR isoc context. It's not
      good to check current packet parameter.
      
      This commit changes to assign the next data block counter after probing
      the event.
      
      Besides, Fireworks devices has a quirk to transfer isoc packet with
      data block counter for the last data block. For this quirk, the
      assignment is done before calling data block processing layer.
      Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      76864868
    • Colin Ian King's avatar
      ALSA: xen-front: fix unintention integer overflow on left shifts · 3fc41476
      Colin Ian King authored
      Shifting the integer value 1 is evaluated using 32-bit
      arithmetic and then used in an expression that expects a 64-bit
      value, so there is potentially an integer overflow. Fix this
      by using the BIT_ULL macro to perform the shift.
      
      [ Note: as of the time being, no actual integer overflow hits because
        all values are less than 32bit, not including the extended 3-byte or
        DSD formats.  But this is the right fix for future usage, of
        course. -- tiwai ]
      
      Addresses-Coverity: ("Unintentional integer overflow")
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      3fc41476
  2. 24 Jun, 2019 3 commits
  3. 21 Jun, 2019 8 commits
  4. 18 Jun, 2019 10 commits
  5. 17 Jun, 2019 6 commits
  6. 13 Jun, 2019 5 commits
  7. 12 Jun, 2019 5 commits