From: Jaroslav Kysela Date: Fri, 10 Apr 2009 10:20:45 +0000 (+0200) Subject: [ALSA] hda_intel: fix unexpected ring buffer positions X-Git-Tag: v2.6.30-rc3~86^2~5^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa00e046b41663cbda9b1affc0594669e5f14219;p=pandora-kernel.git [ALSA] hda_intel: fix unexpected ring buffer positions 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: Jaroslav Kysela --- Reading git-diff-tree failed