ALSA: hdsp/hdspm: remove card->id from rawmidi device name
The card->id (card text identification) can be changed at runtime. It might be confusing to have old text identification in device name. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
c2eb9c4ea3
commit
972d4c50fb
|
@ -1452,7 +1452,7 @@ static int snd_hdsp_create_midi (struct snd_card *card, struct hdsp *hdsp, int i
|
||||||
if (snd_rawmidi_new (card, buf, id, 1, 1, &hdsp->midi[id].rmidi) < 0)
|
if (snd_rawmidi_new (card, buf, id, 1, 1, &hdsp->midi[id].rmidi) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
sprintf (hdsp->midi[id].rmidi->name, "%s MIDI %d", card->id, id+1);
|
sprintf(hdsp->midi[id].rmidi->name, "HDSP MIDI %d", id+1);
|
||||||
hdsp->midi[id].rmidi->private_data = &hdsp->midi[id];
|
hdsp->midi[id].rmidi->private_data = &hdsp->midi[id];
|
||||||
|
|
||||||
snd_rawmidi_set_ops (hdsp->midi[id].rmidi, SNDRV_RAWMIDI_STREAM_OUTPUT, &snd_hdsp_midi_output);
|
snd_rawmidi_set_ops (hdsp->midi[id].rmidi, SNDRV_RAWMIDI_STREAM_OUTPUT, &snd_hdsp_midi_output);
|
||||||
|
|
|
@ -1293,7 +1293,7 @@ static int __devinit snd_hdspm_create_midi (struct snd_card *card,
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
sprintf (hdspm->midi[id].rmidi->name, "%s MIDI %d", card->id, id+1);
|
sprintf(hdspm->midi[id].rmidi->name, "HDSPM MIDI %d", id+1);
|
||||||
hdspm->midi[id].rmidi->private_data = &hdspm->midi[id];
|
hdspm->midi[id].rmidi->private_data = &hdspm->midi[id];
|
||||||
|
|
||||||
snd_rawmidi_set_ops(hdspm->midi[id].rmidi, SNDRV_RAWMIDI_STREAM_OUTPUT,
|
snd_rawmidi_set_ops(hdspm->midi[id].rmidi, SNDRV_RAWMIDI_STREAM_OUTPUT,
|
||||||
|
|
Loading…
Reference in New Issue