Skip to content
  1. Jul 23, 2009
    • Takashi Iwai's avatar
      ALSA: pcm - Add logging of hwptr updates and interrupt updates · cedb8118
      Takashi Iwai authored
      
      
      Added the logging functionality to xrun_debug to record the hwptr
      updates via snd_pcm_update_hw_ptr() and snd_pcm_update_hwptr_interrupt(),
      corresponding to 16 and 8, respectively.
      
      For example,
      	# echo 9 > /proc/asound/card0/pcm0p/xrun_debug
      will record the position and other parameters at each period interrupt
      together with the normal XRUN debugging.
      
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      cedb8118
  2. Jul 22, 2009
    • Takashi Iwai's avatar
      ALSA: pcm - Fix regressions with VMware · 79452f0a
      Takashi Iwai authored
      
      
      VMware tends to report PCM positions and period updates at utterly
      wrong timing.  This screws up the recent PCM core code that tries
      to correct the position based on the irq timing.
      
      Now, when a backward irq position is detected, skip the update
      instead of rebasing.  (This is almost the old behavior before
      2.6.30.)
      
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      79452f0a
  3. Jun 08, 2009
  4. Jun 07, 2009
  5. Jun 06, 2009
  6. Jun 05, 2009
  7. May 29, 2009
  8. May 27, 2009
    • Takashi Iwai's avatar
      ALSA: Enable PCM hw_ptr_jiffies check only in xrun_debug mode · c87d9732
      Takashi Iwai authored
      
      
      The PCM hw_ptr jiffies check results sometimes in problems when a
      hardware doesn't give smooth hw_ptr updates.  So far, au88x0 and some
      other drivers appear not working due to this strict check.
      However, this check is a nice debug tool, and the capability should be
      still kept.
      
      Hence, we disable this check now as default unless the user enables it
      by setting the xrun_debug mode to the specific stream via a proc file.
      
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      c87d9732
    • Takashi Iwai's avatar
      ALSA: Fix invalid jiffies check after pause · 6af3fb72
      Takashi Iwai authored
      
      
      The hw_ptr_jiffies has to be reset properly to avoid the invalid
      check of jiffies delta in snd_pcm_update_hw_ptr*() functions.
      Especailly this patch fixes the bogus jiffies check after the puase
      and resume.
      
      This patch is a modified version of the original patch by Jaroslav.
      
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      6af3fb72
  9. Apr 28, 2009
    • Takashi Iwai's avatar
      ALSA: pcm core - Avoid jiffies check for devices with BATCH flag · 3e5b5016
      Takashi Iwai authored
      
      
      The hardware devices with SNDRV_PCM_INFO_BATCH flag can't give the
      precise current position.  And such hardwares have often big FIFO
      in addition to the ring buffer, and it screws up the jiffies check
      in pcm_lib.c.
      
      This patch adds a simple check of info flag so that the driver skips
      the jiffies check in snd_pcm_period_elapsed() when BATCH flag is set.
      
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      3e5b5016
  10. Apr 10, 2009
  11. Mar 20, 2009
  12. Mar 19, 2009
  13. Mar 09, 2009
    • Takashi Iwai's avatar
      ALSA: Rewrite hw_ptr updaters · ed3da3d9
      Takashi Iwai authored
      
      
      Clean up and improve snd_pcm_update_hw_ptr*() functions.
      
      snd_pcm_update_hw_ptr() tries to detect the unexpected hwptr jumps
      more strictly to avoid the position mess-up, which often results in
      the bad quality I/O with pulseaudio.
      
      The hw-ptr skip error messages are printed when xrun proc is set to
      non-zero.
      
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      ed3da3d9
  14. Oct 16, 2008
  15. Aug 13, 2008
  16. Jan 31, 2008
  17. Oct 16, 2007
  18. Feb 09, 2007
  19. Dec 20, 2006
  20. Jun 22, 2006
  21. Apr 27, 2006
  22. Mar 31, 2006
    • Takashi Iwai's avatar
      [ALSA] Clean up PCM codes (take 2) · 3bf75f9b
      Takashi Iwai authored
      
      
      - Clean up initialization and destruction of substream instance
        Now snd_pcm_open_substream() alone does most initialization jobs.
        Add pcm_release callback for cleaning up at snd_pcm_release_substream()
      - Tidy up PCM oss code
      
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      3bf75f9b
Loading