Skip to content

Commit

Permalink
ALSA: jack - Use card->shortname for input name
Browse files Browse the repository at this point in the history
Currently the jack layer refers to card->longname as a part of
its input device name string.  However, longname is often really long
and way too ugly as an identifier, such as,
"HDA Intel at 0xf8400000 irq 21".

This patch changes the code to use card->shortname instead.
The shortname string contains usually the h/w vendor and product
names but without messy I/O port or IRQ numbers.

Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Feb 18, 2009
1 parent d2f8d7e commit 2678f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/core/jack.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static int snd_jack_dev_register(struct snd_device *device)
int err;

snprintf(jack->name, sizeof(jack->name), "%s %s",
card->longname, jack->id);
card->shortname, jack->id);
jack->input_dev->name = jack->name;

/* Default to the sound card device. */
Expand Down

0 comments on commit 2678f60

Please sign in to comment.