Skip to content

Commit

Permalink
sis7019: increase reset delays
Browse files Browse the repository at this point in the history
A few boards using this controller are reported to need a little extra
time during their reset cycle.

Reported-by: Michael Goeke <michael.goeke@icachip.de>
Signed-off-by: Dave Dillow <dave@thedillows.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
David Dillow authored and Jaroslav Kysela committed Jun 28, 2010
1 parent 3a3d5fd commit 08b4509
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/pci/sis7019.c
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ static int sis_chip_free(struct sis7019 *sis)
/* Reset the chip, and disable all interrputs.
*/
outl(SIS_GCR_SOFTWARE_RESET, sis->ioport + SIS_GCR);
udelay(10);
udelay(25);
outl(0, sis->ioport + SIS_GCR);
outl(0, sis->ioport + SIS_GIER);

Expand Down Expand Up @@ -1085,7 +1085,7 @@ static int sis_chip_init(struct sis7019 *sis)
/* Reset the audio controller
*/
outl(SIS_GCR_SOFTWARE_RESET, io + SIS_GCR);
udelay(10);
udelay(25);
outl(0, io + SIS_GCR);

/* Get the AC-link semaphore, and reset the codecs
Expand All @@ -1098,7 +1098,7 @@ static int sis_chip_init(struct sis7019 *sis)
return -EIO;

outl(SIS_AC97_CMD_CODEC_COLD_RESET, io + SIS_AC97_CMD);
udelay(10);
udelay(250);

count = 0xffff;
while ((inw(io + SIS_AC97_STATUS) & SIS_AC97_STATUS_BUSY) && --count)
Expand Down

0 comments on commit 08b4509

Please sign in to comment.