wmix: do not count space padding in channel short name when comparing names for exclusion
commitd37962fd4662c759cd89dc93d25f7520c3c5a587
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 7 Jun 2014 19:21:58 +0000 (7 21:21 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 7 Jun 2014 20:27:27 +0000 (7 21:27 +0100)
tree6be8830fe3080a58ba3da8fb4bbef6ae89b423bb
parentccff1cf409d642e17d5d96d0b53a1b13d3ce0f69
wmix: do not count space padding in channel short name when comparing names for exclusion

The names for channels provided by <sys/soundcard.h> have a padding with
space when their name is shorter than 6 characters, and this cause
excluding them difficult.
The new comparison code makes sure this padding is properly handled during
the match search.

Took the opportunity to bring light changes to try to improve the
readability of the channel listing code.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
wmix/mixer-oss.c