diff options
author | Bo Shen <voice.shen@atmel.com> | 2011-12-19 17:57:52 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-12-19 11:27:41 +0100 |
commit | 8015e3defe491d305b20c2e64b154b999e6da065 (patch) | |
tree | e391d859bc1d7e383419c787302efdd44ef406dd /sound/atmel | |
parent | 844ec3142af3b8fd7b9aa95886015eabed80983e (diff) | |
download | linux-3.10-8015e3defe491d305b20c2e64b154b999e6da065.tar.gz linux-3.10-8015e3defe491d305b20c2e64b154b999e6da065.tar.bz2 linux-3.10-8015e3defe491d305b20c2e64b154b999e6da065.zip |
ALSA: atmel/ac97c: using software reset instead hardware reset if not 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>
Diffstat (limited to 'sound/atmel')
-rw-r--r-- | sound/atmel/ac97c.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c index 6e5addeb236..73516f69ac7 100644 --- a/sound/atmel/ac97c.c +++ b/sound/atmel/ac97c.c @@ -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); } } |