mirror of
https://github.com/adulau/aha.git
synced 2025-01-05 15:43:22 +00:00
[ALSA] hdsp: always initialize card name
RME HDSP driver When using the kernel firmware loader, initialize the card shortname before registering the card with ALSA to prevent it from using a default card ID. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
This commit is contained in:
parent
84010e6f04
commit
b73c1c122a
1 changed files with 1 additions and 0 deletions
|
@ -4899,6 +4899,7 @@ static int snd_hdsp_create_alsa_devices(snd_card_t *card, hdsp_t *hdsp)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(hdsp->state & HDSP_InitializationComplete)) {
|
if (!(hdsp->state & HDSP_InitializationComplete)) {
|
||||||
|
strcpy(card->shortname, "Hammerfall DSP");
|
||||||
sprintf(card->longname, "%s at 0x%lx, irq %d", hdsp->card_name,
|
sprintf(card->longname, "%s at 0x%lx, irq %d", hdsp->card_name,
|
||||||
hdsp->port, hdsp->irq);
|
hdsp->port, hdsp->irq);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue