1. 14 9月, 2011 1 次提交
    • C
      ALSA: mpu401: clean up interrupt specification · dba8b469
      Clemens Ladisch 提交于
      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: NClemens Ladisch <clemens@ladisch.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      dba8b469
  2. 12 9月, 2011 4 次提交
  3. 26 8月, 2011 1 次提交
  4. 24 8月, 2011 3 次提交
  5. 19 8月, 2011 3 次提交
  6. 18 8月, 2011 1 次提交
  7. 16 8月, 2011 1 次提交
  8. 15 8月, 2011 12 次提交
  9. 13 8月, 2011 2 次提交
  10. 12 8月, 2011 2 次提交
  11. 11 8月, 2011 3 次提交
  12. 10 8月, 2011 4 次提交
  13. 09 8月, 2011 3 次提交