staging: most: sound: remove channel number from ALSA card's long name

Adding the channel number to the name of the sound card is wrong,
as the card does not represent a single streaming channel of the
MOST device.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Christian Gromm 2018-12-17 15:10:16 +01:00 committed by Greg Kroah-Hartman
parent 6cebb20196
commit e6861b916e
1 changed files with 1 additions and 2 deletions

View File

@ -631,8 +631,7 @@ static int audio_probe_channel(struct most_interface *iface, int channel_id,
snprintf(adpt->card->shortname, sizeof(adpt->card->shortname),
"Microchip INIC");
snprintf(adpt->card->longname, sizeof(adpt->card->longname),
"%s at %s, ch %d", adpt->card->shortname, iface->description,
channel_id);
"%s at %s", adpt->card->shortname, iface->description);
skip_adpt_alloc:
if (get_channel(iface, channel_id)) {
pr_err("channel (%s:%d) is already linked\n",