*/
        for (i = 0; i < spec->autocfg.speaker_outs && lfe_pin == 0x0; i++) {
                hda_nid_t pin = spec->autocfg.speaker_pins[i];
-               unsigned long wcaps = get_wcaps(codec, pin);
+               unsigned int wcaps = get_wcaps(codec, pin);
                wcaps &= (AC_WCAP_STEREO | AC_WCAP_OUT_AMP);
                if (wcaps == AC_WCAP_OUT_AMP)
                        /* found a mono speaker with an amp, must be lfe */
        if (lfe_pin == 0 && spec->autocfg.speaker_outs == 0) {
                for (i = 0; i < spec->autocfg.line_outs && lfe_pin == 0x0; i++) {
                        hda_nid_t pin = spec->autocfg.line_out_pins[i];
-                       unsigned long defcfg;
+                       unsigned int defcfg;
                        defcfg = snd_hda_codec_read(codec, pin, 0,
                                                 AC_VERB_GET_CONFIG_DEFAULT,
                                                 0x00);
                        if (get_defcfg_device(defcfg) == AC_JACK_SPEAKER) {
-                               unsigned long wcaps = get_wcaps(codec, pin);
+                               unsigned int wcaps = get_wcaps(codec, pin);
                                wcaps &= (AC_WCAP_STEREO | AC_WCAP_OUT_AMP);
                                if (wcaps == AC_WCAP_OUT_AMP)
                                        /* found a mono speaker with an amp,