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>
                        goto __access_ok;
        }
 
-       snd_ac97_write(ac97, AC97_RESET, 0);    /* reset to defaults */
+       /* reset to defaults */
+       if (!(ac97->scaps & AC97_SCAP_SKIP_AUDIO))
+               snd_ac97_write(ac97, AC97_RESET, 0);
+       if (!(ac97->scaps & AC97_SCAP_SKIP_MODEM))
+               snd_ac97_write(ac97, AC97_EXTENDED_MID, 0);
        if (bus->ops->wait)
                bus->ops->wait(ac97);
        else {