On Sun, 30 May 2010, VDR User wrote:
On Sun, May 30, 2010 at 8:37 AM, Jaroslav Kysela perex@perex.cz wrote:
Thanks. The wallclock register seems working OK. Please, use value 29 for the xrun_debug file to do more accurate inspection what's going wrong (as I suggested in my first reply):
Attached is my full syslog with xrun_debug 29.
Thanks. Could you try this patch?
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 170610e..ac3dbab 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -1910,7 +1910,7 @@ static int azx_position_ok(struct azx *chip, struct azx_dev *azx_dev) if (WARN_ONCE(!azx_dev->period_bytes, "hda-intel: zero azx_dev->period_bytes")) return -1; /* this shouldn't happen! */ - if (wallclk <= azx_dev->period_wallclk && + if (wallclk < (azx_dev->period_wallclk * 3) / 2 && pos % azx_dev->period_bytes > azx_dev->period_bytes / 2) /* NG - it's below the first next period boundary */ return bdl_pos_adj[chip->dev_index] ? 0 : -1;
----- Jaroslav Kysela perex@perex.cz Linux Kernel Sound Maintainer ALSA Project, Red Hat, Inc.