1. 10 Apr, 2009 2 commits
    • Jaroslav Kysela's avatar
      [ALSA] pcm-midlevel: Add more strict buffer position checks based on jiffies · bbf6ad13
      Jaroslav Kysela authored
      Some drivers like Intel8x0 or Intel HDA are broken for some hardware variants.
      This patch adds more strict buffer position checks based on jiffies when
      internal hw_ptr is updated. Enable xrun_debug to see mangling of wrong
      positions.
      
      As a side effect, the hw_ptr interrupt update routine might do slightly better
      job when many interrupts are lost.
      Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
      bbf6ad13
    • Jaroslav Kysela's avatar
      [ALSA] hda_intel: fix unexpected ring buffer positions · fa00e046
      Jaroslav Kysela authored
      I found two issues with ICH7-M (it should be related to other HDA chipsets
      as well):
      
      - the ring buffer position is not reset when stream restarts (after xrun) -
        solved by moving azx_stream_reset() call from open() to prepare() callback
        and reset posbuf to zero (it might be filled with hw later than position()
        callback is called)
      - irq_ignore flag should be set also when ring buffer memory area is not
        changed in prepare() callback - this patch replaces irq_ignore with
        more universal check based on jiffies clock
      Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
      fa00e046
  2. 07 Apr, 2009 38 commits