1. 14 Sep, 2011 2 commits
    • Daniel Mack's avatar
      USB: Add endpoint usage definitions to ch9.h · 00137425
      Daniel Mack authored
      The endpoint usage field is described in the USB 2.0 specification,
      chapter 9.6.6.
      
      Also, move the sync type fields block down by some lines to reflect the
      fact that these are also stuffed in bmAttributes.
      Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
      Acked-by: default avatarClemens Ladisch <clemens@ladisch.de>
      Acked-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      00137425
    • Clemens Ladisch's avatar
      ALSA: mpu401: clean up interrupt specification · dba8b469
      Clemens Ladisch authored
      The semantics of snd_mpu401_uart_new()'s interrupt parameters are
      somewhat counterintuitive:  To prevent the function from allocating its
      own interrupt, either the irq number must be invalid, or the irq_flags
      parameter must be zero.  At the same time, the irq parameter being
      invalid specifies that the mpu401 code has to work without an interrupt
      allocated by the caller.  This implies that, if there is an interrupt
      and it is allocated by the caller, the irq parameter must be set to
      a valid-looking number which then isn't actually used.
      
      With the removal of IRQF_DISABLED, zero becomes a valid irq_flags value,
      which forces us to handle the parameters differently.
      
      This patch introduces a new flag MPU401_INFO_IRQ_HOOK for when the
      device interrupt is handled by the caller, and makes the allocation of
      the interrupt to depend only on the irq parameter.  As suggested by
      Takashi, the irq_flags parameter was dropped because, when used, it had
      the constant value IRQF_DISABLED.
      Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      dba8b469
  2. 12 Sep, 2011 4 commits
  3. 26 Aug, 2011 1 commit
  4. 24 Aug, 2011 3 commits
  5. 19 Aug, 2011 3 commits
  6. 18 Aug, 2011 1 commit
  7. 16 Aug, 2011 1 commit
  8. 15 Aug, 2011 11 commits
  9. 14 Aug, 2011 1 commit
    • Daniel Mack's avatar
      ALSA: snd_usb_caiaq: track submitted output urbs · da6094ea
      Daniel Mack authored
      The snd_usb_caiaq driver currently assumes that output urbs are serviced
      in time and doesn't track when and whether they are given back by the
      USB core. That usually works fine, but due to temporary limitations of
      the XHCI stack, we faced that urbs were submitted more than once with
      this approach.
      
      As it's no good practice to fire and forget urbs anyway, this patch
      introduces a proper bit mask to track which requests have been submitted
      and given back.
      
      That alone however doesn't make the driver work in case the host
      controller is broken and doesn't give back urbs at all, and the output
      stream will stop once all pre-allocated output urbs are consumed. But
      it does prevent crashes of the controller stack in such cases.
      
      See http://bugzilla.kernel.org/show_bug.cgi?id=40702 for more details.
      Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
      Reported-and-tested-by: default avatarMatej Laitl <matej@laitl.cz>
      Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
      Cc: stable@kernel.org
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      da6094ea
  10. 12 Aug, 2011 4 commits
  11. 11 Aug, 2011 2 commits
  12. 10 Aug, 2011 5 commits
  13. 09 Aug, 2011 2 commits