1. 30 11月, 2010 1 次提交
  2. 13 4月, 2010 1 次提交
    • T
      ALSA: core - Define llseek fops · 02f4865f
      Takashi Iwai 提交于
      Set no_llseek to llseek file ops of each sound component (but for hwdep).
      This avoids the implicit BKL invocation via generic_file_llseek() used
      as default when fops.llseek is NULL.
      
      Also call nonseekable_open() at each open ops to ensure the file flags
      have no seek bit.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      02f4865f
  3. 27 1月, 2010 1 次提交
    • J
      ALSA: pcm_lib - return back hw_ptr_interrupt · e7636925
      Jaroslav Kysela 提交于
      Clemens Ladisch noted for hw_ptr_removal in "cleanup & merge hw_ptr
      update functions" commit:
      
      "It is possible for the status/delay ioctls to be called when the sound
      card's pointer register alreay shows a position at the beginning of the
      new period, but immediately before the interrupt is actually executed.
      (This happens regularly on a SMP machine with mplayer.)  When that
      happens, the code thinks that the position must be at least one period
      ahead of the current position and drops an entire buffer of data."
      
      Return back the hw_ptr_interrupt variable. The last interrupt pointer
      is always computed from the latest hw_ptr instead of tracking it
      separately (in this case all hw_ptr checks and modifications might
      influence also hw_ptr_interrupt and it is difficult to keep it
      consistent).
      Signed-off-by: NJaroslav Kysela <perex@perex.cz>
      e7636925
  4. 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
  5. 08 9月, 2009 1 次提交
  6. 31 8月, 2009 1 次提交
  7. 05 6月, 2009 1 次提交
  8. 18 3月, 2009 1 次提交
  9. 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
  10. 05 2月, 2009 2 次提交
  11. 21 10月, 2008 1 次提交
  12. 13 8月, 2008 1 次提交
  13. 01 8月, 2008 1 次提交
  14. 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
  15. 01 2月, 2008 4 次提交
  16. 16 10月, 2007 2 次提交
  17. 09 5月, 2007 1 次提交
  18. 13 2月, 2007 1 次提交
  19. 20 12月, 2006 1 次提交
  20. 28 11月, 2006 1 次提交
  21. 23 9月, 2006 2 次提交
  22. 03 8月, 2006 1 次提交
  23. 23 6月, 2006 5 次提交
  24. 28 4月, 2006 2 次提交
  25. 12 4月, 2006 2 次提交
  26. 31 3月, 2006 3 次提交