Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182758
b: refs/heads/master
c: b2d6efe
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Feb 9, 2010
1 parent 53a9e4e commit a0e6bfb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dce17d4ff366230aeeaaf42512bba3711243cf1c
refs/heads/master: b2d6efe7fa18ad14ee6e9964c90643095b6ac7e2
6 changes: 6 additions & 0 deletions trunk/sound/pci/hda/hda_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1892,6 +1892,12 @@ static int azx_position_ok(struct azx *chip, struct azx_dev *azx_dev)

if (!bdl_pos_adj[chip->dev_index])
return 1; /* no delayed ack */
if (azx_dev->period_bytes == 0) {
printk(KERN_WARNING
"hda-intel: Divide by zero was avoided "
"in azx_dev->period_bytes.\n");
return 0;
}
if (pos % azx_dev->period_bytes > azx_dev->period_bytes / 2)
return 0; /* NG - it's below the period boundary */
return 1; /* OK, it's fine */
Expand Down

0 comments on commit a0e6bfb

Please sign in to comment.