1. 07 1月, 2010 1 次提交
    • J
      ALSA: pcm_lib - cleanup & merge hw_ptr update functions · f240406b
      Jaroslav Kysela 提交于
      Do general cleanup in snd_pcm_update_hw_ptr*() routines and merge them.
      The main change is hw_ptr_interrupt variable removal to simplify code
      logic. This variable can be computed directly from hw_ptr.
      
      Ensure that updated hw_ptr is not lower than previous one (it was possible
      with old code in some obscure situations when interrupt was delayed or
      the lowlevel driver returns wrong ring buffer position value).
      Signed-off-by: NJaroslav Kysela <perex@perex.cz>
      f240406b
  2. 08 9月, 2009 1 次提交
  3. 31 8月, 2009 1 次提交
  4. 05 6月, 2009 1 次提交
  5. 18 3月, 2009 1 次提交
  6. 16 3月, 2009 1 次提交
    • J
      Use f_lock to protect f_flags · db1dd4d3
      Jonathan Corbet 提交于
      Traditionally, changes to struct file->f_flags have been done under BKL
      protection, or with no protection at all.  This patch causes all f_flags
      changes after file open/creation time to be done under protection of
      f_lock.  This allows the removal of some BKL usage and fixes a number of
      longstanding (if microscopic) races.
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Cc: Al Viro <viro@ZenIV.linux.org.uk>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      db1dd4d3
  7. 05 2月, 2009 2 次提交
  8. 21 10月, 2008 1 次提交
  9. 13 8月, 2008 1 次提交
  10. 01 8月, 2008 1 次提交
  11. 30 7月, 2008 1 次提交
    • P
      ALSA: Fix limit of 8 PCM devices in SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE · 94239690
      Pawel MOLL 提交于
      When compiled with CONFIG_SND_DYNAMIC_MINORS the ALSA core is fine
      to have more than 8 PCM devices per card, except one place - the
      SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE ioctl, which will not enumerate
      devices > 7. This patch fixes the issue, changing the devices list
      organisation.
      
      Instead of adding new device to the tail, the list is now kept always
      ordered (by card number, then device number). Thus, during enumeration,
      it is easy to discover the fact that there is no more given card's
      devices. The same limit was present in OSS emulation code. It has
      been fixed as well.
      
      Additionally the device field of struct snd_pcm is now int, instead of
      unsigned int, as there is no obvious reason for keeping it unsigned.
      This caused a lot of problems with comparing this value with other
      (almost always signed) variables. There is just one more place where
      device number is unsigned - in struct snd_pcm_info, which should be
      also sorted out in future.
      Signed-off-by: NPawel MOLL <pawel.moll@st.com>
      Signed-off-by: NJaroslav Kysela <perex@perex.cz>
      94239690
  12. 01 2月, 2008 4 次提交
  13. 16 10月, 2007 2 次提交
  14. 09 5月, 2007 1 次提交
  15. 13 2月, 2007 1 次提交
  16. 20 12月, 2006 1 次提交
  17. 28 11月, 2006 1 次提交
  18. 23 9月, 2006 2 次提交
  19. 03 8月, 2006 1 次提交
  20. 23 6月, 2006 5 次提交
  21. 28 4月, 2006 2 次提交
  22. 12 4月, 2006 2 次提交
  23. 31 3月, 2006 3 次提交
  24. 22 3月, 2006 2 次提交
  25. 10 1月, 2006 1 次提交