diff options
Diffstat (limited to 'sound/pci/au88x0/au88x0_pcm.c')
-rw-r--r-- | sound/pci/au88x0/au88x0_pcm.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sound/pci/au88x0/au88x0_pcm.c b/sound/pci/au88x0/au88x0_pcm.c index 62e959120c44..c5f7ae46afef 100644 --- a/sound/pci/au88x0/au88x0_pcm.c +++ b/sound/pci/au88x0/au88x0_pcm.c | |||
@@ -426,11 +426,11 @@ static struct snd_pcm_ops snd_vortex_playback_ops = { | |||
426 | */ | 426 | */ |
427 | 427 | ||
428 | static char *vortex_pcm_prettyname[VORTEX_PCM_LAST] = { | 428 | static char *vortex_pcm_prettyname[VORTEX_PCM_LAST] = { |
429 | "AU88x0 ADB", | 429 | CARD_NAME " ADB", |
430 | "AU88x0 SPDIF", | 430 | CARD_NAME " SPDIF", |
431 | "AU88x0 A3D", | 431 | CARD_NAME " A3D", |
432 | "AU88x0 WT", | 432 | CARD_NAME " WT", |
433 | "AU88x0 I2S", | 433 | CARD_NAME " I2S", |
434 | }; | 434 | }; |
435 | static char *vortex_pcm_name[VORTEX_PCM_LAST] = { | 435 | static char *vortex_pcm_name[VORTEX_PCM_LAST] = { |
436 | "adb", | 436 | "adb", |
@@ -527,7 +527,8 @@ static int __devinit snd_vortex_new_pcm(vortex_t *chip, int idx, int nr) | |||
527 | nr_capt, &pcm); | 527 | nr_capt, &pcm); |
528 | if (err < 0) | 528 | if (err < 0) |
529 | return err; | 529 | return err; |
530 | strcpy(pcm->name, vortex_pcm_name[idx]); | 530 | snprintf(pcm->name, sizeof(pcm->name), |
531 | "%s %s", CARD_NAME_SHORT, vortex_pcm_name[idx]); | ||
531 | chip->pcm[idx] = pcm; | 532 | chip->pcm[idx] = pcm; |
532 | // This is an evil hack, but it saves a lot of duplicated code. | 533 | // This is an evil hack, but it saves a lot of duplicated code. |
533 | VORTEX_PCM_TYPE(pcm) = idx; | 534 | VORTEX_PCM_TYPE(pcm) = idx; |