diff options
author | Sasha Khapyorsky <sashak@smlink.com> | 2005-04-07 14:23:58 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-05-29 03:58:37 -0400 |
commit | 23fea4dad67a665e8d359dbb39180422385f1dcc (patch) | |
tree | 86ce3e1f6c53897888332da646e0a6ae9d59f010 /sound/pci/ac97/ac97_codec.c | |
parent | 8e8311b0ac4dc8a2cf317e122a6f7dc4467e3254 (diff) |
[ALSA] MC97 registers reset
AC97 Codec
Separated ac97 registers reset for audio and modem (or both) as recommended
in AC97 spec.
Signed-off-by: Sasha Khapyorsky <sashak@smlink.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ac97/ac97_codec.c')
-rw-r--r-- | sound/pci/ac97/ac97_codec.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c index ab7114c51dcb..1ad7f83a65e1 100644 --- a/sound/pci/ac97/ac97_codec.c +++ b/sound/pci/ac97/ac97_codec.c | |||
@@ -1872,7 +1872,11 @@ int snd_ac97_mixer(ac97_bus_t *bus, ac97_template_t *template, ac97_t **rac97) | |||
1872 | goto __access_ok; | 1872 | goto __access_ok; |
1873 | } | 1873 | } |
1874 | 1874 | ||
1875 | snd_ac97_write(ac97, AC97_RESET, 0); /* reset to defaults */ | 1875 | /* reset to defaults */ |
1876 | if (!(ac97->scaps & AC97_SCAP_SKIP_AUDIO)) | ||
1877 | snd_ac97_write(ac97, AC97_RESET, 0); | ||
1878 | if (!(ac97->scaps & AC97_SCAP_SKIP_MODEM)) | ||
1879 | snd_ac97_write(ac97, AC97_EXTENDED_MID, 0); | ||
1876 | if (bus->ops->wait) | 1880 | if (bus->ops->wait) |
1877 | bus->ops->wait(ac97); | 1881 | bus->ops->wait(ac97); |
1878 | else { | 1882 | else { |