Commit 8015e3de authored by Bo Shen's avatar Bo Shen Committed by Takashi Iwai

ALSA: atmel/ac97c: using software reset instead hardware reset if not available

Signed-off-by: default avatarBo Shen <voice.shen@atmel.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 844ec314
...@@ -899,6 +899,10 @@ static void atmel_ac97c_reset(struct atmel_ac97c *chip) ...@@ -899,6 +899,10 @@ static void atmel_ac97c_reset(struct atmel_ac97c *chip)
/* AC97 v2.2 specifications says minimum 1 us. */ /* AC97 v2.2 specifications says minimum 1 us. */
udelay(2); udelay(2);
gpio_set_value(chip->reset_pin, 1); 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);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment