]> err.no Git - linux-2.6/commitdiff
[ALSA] ice1712 - fixed midi input for Hoontech C-Ports
authorJaroslav Kysela <perex@perex.cz>
Wed, 16 Jan 2008 19:12:34 +0000 (20:12 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 31 Jan 2008 16:30:03 +0000 (17:30 +0100)
See ALSA bug#1846 for more details.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/pci/ice1712/hoontech.c

index b2cfba16ebdfb18eb0443cba020771db3075ebbe..b042e5cfc3cd4bec4203affcb331597e3f0ca511 100644 (file)
@@ -205,13 +205,13 @@ static int __devinit snd_ice1712_hoontech_init(struct snd_ice1712 *ice)
        snd_ice1712_stdsp24_darear(ice, (ice->spec.hoontech.config & ICE1712_STDSP24_DAREAR) ? 1 : 0);
        snd_ice1712_stdsp24_mute(ice, (ice->spec.hoontech.config & ICE1712_STDSP24_MUTE) ? 1 : 0);
        snd_ice1712_stdsp24_insel(ice, (ice->spec.hoontech.config & ICE1712_STDSP24_INSEL) ? 1 : 0);
-       for (box = 0; box < 4; box++) {
+       for (box = 0; box < 1; box++) {
+               if (ice->spec.hoontech.boxconfig[box] & ICE1712_STDSP24_BOX_MIDI2)
+                        snd_ice1712_stdsp24_midi2(ice, 1);
                for (chn = 0; chn < 4; chn++)
                        snd_ice1712_stdsp24_box_channel(ice, box, chn, (ice->spec.hoontech.boxconfig[box] & (1 << chn)) ? 1 : 0);
                snd_ice1712_stdsp24_box_midi(ice, box,
                                (ice->spec.hoontech.boxconfig[box] & ICE1712_STDSP24_BOX_MIDI1) ? 1 : 0);
-               if (ice->spec.hoontech.boxconfig[box] & ICE1712_STDSP24_BOX_MIDI2)
-                       snd_ice1712_stdsp24_midi2(ice, 1);
        }
 
        return 0;