aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-08-18 11:11:09 -0400
committerJaroslav Kysela <perex@perex.cz>2008-08-25 03:57:07 -0400
commita62741cf77f41338033553d7cc3fd3145a64ae53 (patch)
tree566c5cd2b49a9226e2c76770ce1bc52f94bce3b1
parentace457c77ba8c0705e14d95c65e73d7e569bd7b9 (diff)
ALSA: hda - disable delayed period-ack with bdl_pos_adj=0
When bdl_pos_adj=0 is given, disable the position-check and the delayed period update mechanism. Usually bdl_pos_adj=0 is set only for the debugging purpose on really broken hardwares. It's better to disable the extra complexity in such a case. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r--sound/pci/hda/hda_intel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index b2bcd94cf7a2..39f22318803d 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -1559,6 +1559,8 @@ static int azx_position_ok(struct azx *chip, struct azx_dev *azx_dev)
1559 chip->position_fix = POS_FIX_POSBUF; 1559 chip->position_fix = POS_FIX_POSBUF;
1560 } 1560 }
1561 1561
1562 if (!bdl_pos_adj[chip->dev_index])
1563 return 1; /* no delayed ack */
1562 if (pos % azx_dev->period_bytes > azx_dev->period_bytes / 2) 1564 if (pos % azx_dev->period_bytes > azx_dev->period_bytes / 2)
1563 return 0; /* NG - it's below the period boundary */ 1565 return 0; /* NG - it's below the period boundary */
1564 return 1; /* OK, it's fine */ 1566 return 1; /* OK, it's fine */