aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorRaymond Yau <superquad.vortex2@gmail.com>2011-04-26 00:15:23 -0400
committerTakashi Iwai <tiwai@suse.de>2011-04-26 06:27:21 -0400
commit13eb4ab8ca719c852ae5fbd6e803afa333ad569a (patch)
treeaf8d11abee35d4db3df80290327ad1bf03293489 /sound
parent8ae9572b5b08f1d2a2ea6613f59d00f741b38b2d (diff)
ALSA: au88x0 - Use a better name for pcm devices of au88x0
Signed-off-by: Raymond Yau <superquad.vortex2@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/au88x0/au8810.h2
-rw-r--r--sound/pci/au88x0/au8820.h2
-rw-r--r--sound/pci/au88x0/au8830.h2
-rw-r--r--sound/pci/au88x0/au88x0_pcm.c13
4 files changed, 10 insertions, 9 deletions
diff --git a/sound/pci/au88x0/au8810.h b/sound/pci/au88x0/au8810.h
index 5d69c31fe3f4..79fbee3845eb 100644
--- a/sound/pci/au88x0/au8810.h
+++ b/sound/pci/au88x0/au8810.h
@@ -4,7 +4,7 @@
4 4
5#define CHIP_AU8810 5#define CHIP_AU8810
6 6
7#define CARD_NAME "Aureal Advantage 3D Sound Processor" 7#define CARD_NAME "Aureal Advantage"
8#define CARD_NAME_SHORT "au8810" 8#define CARD_NAME_SHORT "au8810"
9 9
10#define NR_ADB 0x10 10#define NR_ADB 0x10
diff --git a/sound/pci/au88x0/au8820.h b/sound/pci/au88x0/au8820.h
index abbe85e4f7a9..cafdb9668a34 100644
--- a/sound/pci/au88x0/au8820.h
+++ b/sound/pci/au88x0/au8820.h
@@ -11,7 +11,7 @@
11 11
12#define CHIP_AU8820 12#define CHIP_AU8820
13 13
14#define CARD_NAME "Aureal Vortex 3D Sound Processor" 14#define CARD_NAME "Aureal Vortex"
15#define CARD_NAME_SHORT "au8820" 15#define CARD_NAME_SHORT "au8820"
16 16
17/* Number of ADB and WT channels */ 17/* Number of ADB and WT channels */
diff --git a/sound/pci/au88x0/au8830.h b/sound/pci/au88x0/au8830.h
index 04ece1b1c218..999b29ab34ad 100644
--- a/sound/pci/au88x0/au8830.h
+++ b/sound/pci/au88x0/au8830.h
@@ -11,7 +11,7 @@
11 11
12#define CHIP_AU8830 12#define CHIP_AU8830
13 13
14#define CARD_NAME "Aureal Vortex 2 3D Sound Processor" 14#define CARD_NAME "Aureal Vortex 2"
15#define CARD_NAME_SHORT "au8830" 15#define CARD_NAME_SHORT "au8830"
16 16
17#define NR_ADB 0x20 17#define NR_ADB 0x20
diff --git a/sound/pci/au88x0/au88x0_pcm.c b/sound/pci/au88x0/au88x0_pcm.c
index 5439d662d104..04b10fdb0d71 100644
--- a/sound/pci/au88x0/au88x0_pcm.c
+++ b/sound/pci/au88x0/au88x0_pcm.c
@@ -423,11 +423,11 @@ static struct snd_pcm_ops snd_vortex_playback_ops = {
423*/ 423*/
424 424
425static char *vortex_pcm_prettyname[VORTEX_PCM_LAST] = { 425static char *vortex_pcm_prettyname[VORTEX_PCM_LAST] = {
426 "AU88x0 ADB", 426 CARD_NAME " ADB",
427 "AU88x0 SPDIF", 427 CARD_NAME " SPDIF",
428 "AU88x0 A3D", 428 CARD_NAME " A3D",
429 "AU88x0 WT", 429 CARD_NAME " WT",
430 "AU88x0 I2S", 430 CARD_NAME " I2S",
431}; 431};
432static char *vortex_pcm_name[VORTEX_PCM_LAST] = { 432static char *vortex_pcm_name[VORTEX_PCM_LAST] = {
433 "adb", 433 "adb",
@@ -524,7 +524,8 @@ static int __devinit snd_vortex_new_pcm(vortex_t *chip, int idx, int nr)
524 nr_capt, &pcm); 524 nr_capt, &pcm);
525 if (err < 0) 525 if (err < 0)
526 return err; 526 return err;
527 strcpy(pcm->name, vortex_pcm_name[idx]); 527 snprintf(pcm->name, sizeof(pcm->name),
528 "%s %s", CARD_NAME_SHORT, vortex_pcm_name[idx]);
528 chip->pcm[idx] = pcm; 529 chip->pcm[idx] = pcm;
529 // This is an evil hack, but it saves a lot of duplicated code. 530 // This is an evil hack, but it saves a lot of duplicated code.
530 VORTEX_PCM_TYPE(pcm) = idx; 531 VORTEX_PCM_TYPE(pcm) = idx;