]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Fix crash with enum controls
authorTakashi Iwai <tiwai@suse.de>
Mon, 30 May 2005 16:37:52 +0000 (16:37 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 30 May 2005 16:37:52 +0000 (16:37 +0000)
Fix crash in display enum controls.

alsamixer/alsamixer.c

index 84286daa713f9c7b6fa8562e19cba19b68b57b8e..694e3e9cd2584ca41ffa7eff3b67b4faf6bdf8af 100644 (file)
@@ -962,8 +962,7 @@ mixer_update_cbar (int elem_index)
        snd_mixer_selem_get_playback_switch(elem, chn_right, &swr);
       extra_info = !swl && !swr ? " [Off]" : "";
     }
-#if 0
-    if (mixer_type[elem_index] & MIXER_ELEM_ENUM) {
+    if (mixer_type[elem_index] == MIXER_ELEM_ENUM) {
       while (1) {
        unsigned int eidx, err, length;
         char tmp[50];
@@ -982,7 +981,6 @@ mixer_update_cbar (int elem_index)
        break;
       }
     }
-#endif
     display_item_info(elem_index, sid, extra_info);
   }