Skip to content

Commit

Permalink
ALSA: atmel/ac97c: using software reset instead hardware reset if not…
Browse files Browse the repository at this point in the history
… available

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Bo Shen authored and Takashi Iwai committed Dec 19, 2011
1 parent 844ec31 commit 8015e3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sound/atmel/ac97c.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,10 @@ static void atmel_ac97c_reset(struct atmel_ac97c *chip)
/* AC97 v2.2 specifications says minimum 1 us. */
udelay(2);
gpio_set_value(chip->reset_pin, 1);
} else {
ac97c_writel(chip, MR, AC97C_MR_WRST | AC97C_MR_ENA);
udelay(2);
ac97c_writel(chip, MR, AC97C_MR_ENA);
}
}

Expand Down

0 comments on commit 8015e3d

Please sign in to comment.