]> err.no Git - linux-2.6/commitdiff
[ALSA] hda-codec - Use int instead of long in patch_sigmatel.c
authorTakashi Iwai <tiwai@suse.de>
Fri, 29 Feb 2008 10:57:53 +0000 (11:57 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Apr 2008 10:00:19 +0000 (12:00 +0200)
The HD-audio parameters are at most 32bit int.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_sigmatel.c

index 3bf528d8fc22f0886fdd8dad90597e35f05d6fc0..e1d61a035bab6fdae5d2d7091144f9b506401f0e 100644 (file)
@@ -2838,7 +2838,7 @@ static int stac9200_auto_create_lfe_ctls(struct hda_codec *codec,
         */
        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 */
@@ -2849,12 +2849,12 @@ static int stac9200_auto_create_lfe_ctls(struct hda_codec *codec,
        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,