Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22732
b: refs/heads/master
c: 253b999
h: refs/heads/master
v: v3
  • Loading branch information
Jaroslav Kysela committed Mar 22, 2006
1 parent ef52661 commit e69e92b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f7004f3975591f3d4cdf457f879e9ede57394500
refs/heads/master: 253b999f5a620be81db4cfa31f76873b639ec9a2
11 changes: 10 additions & 1 deletion trunk/sound/pci/intel8x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -2351,7 +2351,7 @@ static int snd_intel8x0_ali_chip_init(struct intel8x0 *chip, int probing)

static int snd_intel8x0_chip_init(struct intel8x0 *chip, int probing)
{
unsigned int i;
unsigned int i, timeout;
int err;

if (chip->device_type != DEVICE_ALI) {
Expand All @@ -2369,6 +2369,15 @@ static int snd_intel8x0_chip_init(struct intel8x0 *chip, int probing)
/* reset channels */
for (i = 0; i < chip->bdbars_count; i++)
iputbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset, ICH_RESETREGS);
for (i = 0; i < chip->bdbars_count; i++) {
timeout = 100000;
while (--timeout != 0) {
if ((igetbyte(chip, ICH_REG_OFF_CR + chip->ichd[i].reg_offset) & ICH_RESETREGS) == 0)
break;
}
if (timeout == 0)
printk(KERN_ERR "intel8x0: reset of registers failed?\n");
}
/* initialize Buffer Descriptor Lists */
for (i = 0; i < chip->bdbars_count; i++)
iputdword(chip, ICH_REG_OFF_BDBAR + chip->ichd[i].reg_offset,
Expand Down

0 comments on commit e69e92b

Please sign in to comment.