mutex_init(&spec->chipio_mutex);
 
+       /*
+        * The Windows driver always does this upon startup, which seems to
+        * clear out any previous configuration. This should help issues where
+        * a boot into Windows prior to a boot into Linux breaks things. Also,
+        * Windows always sends the reset twice.
+        */
+       if (ca0132_use_alt_functions(spec)) {
+               chipio_set_control_flag(codec, CONTROL_FLAG_IDLE_ENABLE, 0);
+               chipio_write_no_mutex(codec, 0x18b0a4, 0x000000c2);
+
+               snd_hda_codec_write(codec, codec->core.afg, 0,
+                           AC_VERB_SET_CODEC_RESET, 0);
+               snd_hda_codec_write(codec, codec->core.afg, 0,
+                           AC_VERB_SET_CODEC_RESET, 0);
+       }
+
        spec->cur_out_type = SPEAKER_OUT;
        if (!ca0132_use_alt_functions(spec))
                spec->cur_mic_type = DIGITAL_MIC;
 
        if (ca0132_quirk(spec) == QUIRK_AE5)
                ca0113_mmio_command_set(codec, 0x48, 0x07, 0x83);
-
-       chipio_write(codec, 0x18b0a4, 0x000000c2);
-
-       snd_hda_codec_write(codec, 0x01, 0, 0x7ff, 0x00);
-       snd_hda_codec_write(codec, 0x01, 0, 0x7ff, 0x00);
 }
 
 /*