diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-05-30 16:37:52 +0000 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2005-05-30 16:37:52 +0000 |
commit | ff1354844a46d63420a080b860cad8ced2aa4485 (patch) | |
tree | 1d39bf36f03dc8b15276231acc98f765fa06f711 /alsamixer | |
parent | ae524665a949bdceb2165467dea642658fc636ee (diff) |
Fix crash with enum controls
Fix crash in display enum controls.
Diffstat (limited to 'alsamixer')
-rw-r--r-- | alsamixer/alsamixer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/alsamixer/alsamixer.c b/alsamixer/alsamixer.c index 84286da..694e3e9 100644 --- a/alsamixer/alsamixer.c +++ b/alsamixer/alsamixer.c @@ -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); } |