]> git.alsa-project.org Git - alsa-utils.git/commit
amixer - Fix selection of enum items
authorTakashi Iwai <tiwai@suse.de>
Mon, 9 Jul 2007 14:37:35 +0000 (16:37 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 9 Jul 2007 14:37:35 +0000 (16:37 +0200)
commit50d240e688c7f2ee5cb8e010851b28c26473611a
treef725b7c0a6afa5b10408d0fd92540819cca10798
parentc7d2be17d7be318ace734121a4f6efe61c214ca9
amixer - Fix selection of enum items

The item names with channel specifier cannot be chosen correctly
via amixer sset.  For example, 'Front Mic' is handled as 'Mic' since
the channel specificier 'Front' is omitted.

The idea of channel specifier is basically non-sense for enum items,
and this also makes the code very messy.

The patch fixes the behavior of enum items and gives the code clean-up
for sset command.
amixer/amixer.c