Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142713
b: refs/heads/master
c: 81baf3a
h: refs/heads/master
i:
  142711: 3d3ff7c
v: v3
  • Loading branch information
Hans-Christian Egtvedt authored and Takashi Iwai committed Apr 6, 2009
1 parent 2700b58 commit 2d7e686
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: df163587eab15a24cc34cf8434a5657416f8a203
refs/heads/master: 81baf3a7f686c5d22359cb06fc11d20907ba12f8
14 changes: 7 additions & 7 deletions trunk/sound/atmel/ac97c.c
Original file line number Diff line number Diff line change
Expand Up @@ -730,17 +730,17 @@ static bool filter(struct dma_chan *chan, void *slave)

static void atmel_ac97c_reset(struct atmel_ac97c *chip)
{
ac97c_writel(chip, MR, AC97C_MR_WRST);
ac97c_writel(chip, MR, 0);
ac97c_writel(chip, MR, AC97C_MR_ENA);
ac97c_writel(chip, CAMR, 0);
ac97c_writel(chip, COMR, 0);

if (gpio_is_valid(chip->reset_pin)) {
gpio_set_value(chip->reset_pin, 0);
/* AC97 v2.2 specifications says minimum 1 us. */
udelay(10);
udelay(2);
gpio_set_value(chip->reset_pin, 1);
}

udelay(1);
ac97c_writel(chip, MR, AC97C_MR_ENA);
}

static int __devinit atmel_ac97c_probe(struct platform_device *pdev)
Expand Down Expand Up @@ -826,6 +826,8 @@ static int __devinit atmel_ac97c_probe(struct platform_device *pdev)

snd_card_set_dev(card, &pdev->dev);

atmel_ac97c_reset(chip);

/* Enable overrun interrupt from codec channel */
ac97c_writel(chip, COMR, AC97C_CSR_OVRUN);
ac97c_writel(chip, IER, ac97c_readl(chip, IMR) | AC97C_SR_COEVT);
Expand All @@ -836,8 +838,6 @@ static int __devinit atmel_ac97c_probe(struct platform_device *pdev)
goto err_ac97_bus;
}

atmel_ac97c_reset(chip);

retval = atmel_ac97c_mixer_new(chip);
if (retval) {
dev_dbg(&pdev->dev, "could not register ac97 mixer\n");
Expand Down

0 comments on commit 2d7e686

Please sign in to comment.