1. 02 1月, 2015 1 次提交
    • L
      ALSA: wss: Remove (almost) always NULL parameters · fa60c065
      Lars-Peter Clausen 提交于
      Most callers of snd_wss_pcm(), snd_wss_timer() and snd_cs4236_pcm() pass
      NULL as the last parameter, some callers pass a pointer but never use it
      after the function has been called and only a few callers pass a pointer and
      actually use it. The later is only the case for snd_wss_pcm() for
      snd_cs4236_pcm() and it is possible to get the same PCM object by accessing
      the pcm field of the snd_wss struct that was passed as the first parameter.
      
      This function removes the last parameters from the functions mentioned above
      and updates the callers which used it to use chip->pcm instead. This allows
      us to slightly simplify the functions since they don't have to check and set
      the last parameter anymore which makes the code slightly shorter and
      cleaner.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      fa60c065
  2. 12 2月, 2014 1 次提交
  3. 29 5月, 2013 1 次提交
  4. 07 12月, 2012 1 次提交
  5. 19 12月, 2011 1 次提交
  6. 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
  7. 04 5月, 2009 1 次提交
  8. 24 4月, 2009 1 次提交
  9. 14 4月, 2009 1 次提交
  10. 21 1月, 2009 1 次提交
  11. 12 1月, 2009 1 次提交
  12. 06 8月, 2008 5 次提交
  13. 01 2月, 2008 2 次提交
  14. 16 10月, 2007 3 次提交