Skip to contentSkip to conversation

ALSA: snd_usb_caiaq: set mixername

PATCH In review Daniel Mack 2 participants 2 messages Jun 10, 2009 – Jun 11, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: snd_usb_caiaq: set mixername

alsamixer and friends want the mixername to be set. Even though the driver does not exports a real mixer device, export the name doesn't harm.

---
 sound/usb/caiaq/device.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
sound/usb/caiaq/device.c +2 -1
index b9a2b31..2240624 100644
@@ -35,7 +35,7 @@
 #include "input.h"
 
 MODULE_AUTHOR("Daniel Mack <[email protected]>");
-MODULE_DESCRIPTION("caiaq USB audio, version 1.3.15");
+MODULE_DESCRIPTION("caiaq USB audio, version 1.3.16");
 MODULE_LICENSE("GPL");
 MODULE_SUPPORTED_DEVICE("{{Native Instruments, RigKontrol2},"
 			 "{Native Instruments, RigKontrol3},"
@@ -426,6 +426,7 @@ static int __devinit init_card(struct snd_usb_caiaqdev *dev)
 
 	strlcpy(card->driver, MODNAME, sizeof(card->driver));
 	strlcpy(card->shortname, dev->product_name, sizeof(card->shortname));
+	strlcpy(card->mixername, dev->product_name, sizeof(card->mixername));
 
 	/* if the id was not passed as module option, fill it with a shortened
 	 * version of the product string which does not contain any
Signature · 1 line
1.6.3.1
#1 lore raw

At Wed, 10 Jun 2009 21:32:01 +0200,

Quoted 6 lines · Daniel Mack

alsamixer and friends want the mixername to be set. Even though the driver does not exports a real mixer device, export the name doesn't harm.

Applied now. Thanks.

Takashi

Quoted 33 lines
---
 sound/usb/caiaq/device.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
sound/usb/caiaq/device.c +2 -1
index b9a2b31..2240624 100644
@@ -35,7 +35,7 @@
 #include "input.h"
 
 MODULE_AUTHOR("Daniel Mack <[email protected]>");
-MODULE_DESCRIPTION("caiaq USB audio, version 1.3.15");
+MODULE_DESCRIPTION("caiaq USB audio, version 1.3.16");
 MODULE_LICENSE("GPL");
 MODULE_SUPPORTED_DEVICE("{{Native Instruments, RigKontrol2},"
 			 "{Native Instruments, RigKontrol3},"
@@ -426,6 +426,7 @@ static int __devinit init_card(struct snd_usb_caiaqdev *dev)
 
 	strlcpy(card->driver, MODNAME, sizeof(card->driver));
 	strlcpy(card->shortname, dev->product_name, sizeof(card->shortname));
+	strlcpy(card->mixername, dev->product_name, sizeof(card->mixername));
 
 	/* if the id was not passed as module option, fill it with a shortened
 	 * version of the product string which does not contain any
Signature · 6 lines
1.6.3.1

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel