ALSA: usb - Remove trailing spaces from USB card name strings
authorTakashi Iwai <tiwai@suse.de>
Mon, 21 Mar 2011 11:00:00 +0000 (12:00 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 21 Mar 2011 11:32:44 +0000 (12:32 +0100)
commit3ffc1222bd2c30b0ef2d3a797b0e0070c7c61a98
tree0e14e12239866c3269665febb2e46ce928c0cd95
parent977a6ef3c0cb622b572fb8e2e5088dbe09521375
ALSA: usb - Remove trailing spaces from USB card name strings

Some USB devices give trailing spaces in strings returned from
usb_string().  This confuses the automatic card-id creation, resulting
always in "default".
This patch fixes the behavior by removing trailing spaces.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.c