Skip to contentSkip to conversation

hdspmixer: Fix detection for non-MADIface RME cards

PATCH Applied Adrian Knoth 2 participants 3 messages Feb 3, 2011 – Feb 7, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hdspmixer: Fix detection for non-MADIface RME cards

When adding RayDAT support, detection for cards like the 9652 was accidently lost. This patch re-adds the missing bits.

hdspmixer/src/hdspmixer.cxx +17 -1
index 7fd50e9..2a7c5c9 100644
@@ -51,7 +51,23 @@ int main(int argc, char **argv)
 	} else {
 	    snd_card_get_longname(card, &name);
 	    printf("Card %d : %s\n", card, name);
-	    if (!strncmp(name, "RME MADIface", 12)) {
+            if (!strncmp(name, "RME Hammerfall DSP + Multiface", 30)) {
+                printf("Multiface found !\n");
+                hdsp_cards[cards] = new HDSPMixerCard(Multiface, card);
+                cards++;
+            } else if (!strncmp(name, "RME Hammerfall DSP + Digiface", 29)) {
+                printf("Digiface found !\n");
+                hdsp_cards[cards] = new HDSPMixerCard(Digiface, card);
+                cards++;
+            } else if (!strncmp(name, "RME Hammerfall HDSP 9652", 24)) {
+                printf("HDSP 9652 found !\n");
+                hdsp_cards[cards] = new HDSPMixerCard(H9652, card);
+                cards++;
+            } else if (!strncmp(name, "RME Hammerfall HDSP 9632", 24)) {
+                printf("HDSP 9632 found !\n");
+                hdsp_cards[cards] = new HDSPMixerCard(H9632, card);
+                cards++;
+	    } else if (!strncmp(name, "RME MADIface", 12)) {
 		printf("RME MADIface found !\n");
 		hdsp_cards[cards] = new HDSPMixerCard(HDSPeMADI, card);
 		cards++;
Signature · 6 lines
1.7.2.3

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

hdspmixer/src/hdspmixer.cxx int main(int argc, char **argv) · line 54

Quoted 3 lines · Adrian Knoth
hdspmixer/src/hdspmixer.cxx +1 -1
 	    printf("Card %d : %s\n", card, name);
-	    if (!strncmp(name, "RME MADIface", 12)) {
+            if (!strncmp(name, "RME Hammerfall DSP + Multiface", 30)) {

JFTR: Reindentation patch coming up soon. Already committed to my git repo, but I want to add some more code beautification.

Cheers

Applied
#2 lore raw
In reply to Adrian Knoth

At Thu, 3 Feb 2011 22:08:04 +0100,

Quoted 6 lines · Adrian Knoth

When adding RayDAT support, detection for cards like the 9652 was accidently lost. This patch re-adds the missing bits.

Thanks, applied together with other beautifying patches.

Takashi

Quoted 32 lines
hdspmixer/src/hdspmixer.cxx +17 -1
index 7fd50e9..2a7c5c9 100644
@@ -51,7 +51,23 @@ int main(int argc, char **argv)
 	} else {
 	    snd_card_get_longname(card, &name);
 	    printf("Card %d : %s\n", card, name);
-	    if (!strncmp(name, "RME MADIface", 12)) {
+            if (!strncmp(name, "RME Hammerfall DSP + Multiface", 30)) {
+                printf("Multiface found !\n");
+                hdsp_cards[cards] = new HDSPMixerCard(Multiface, card);
+                cards++;
+            } else if (!strncmp(name, "RME Hammerfall DSP + Digiface", 29)) {
+                printf("Digiface found !\n");
+                hdsp_cards[cards] = new HDSPMixerCard(Digiface, card);
+                cards++;
+            } else if (!strncmp(name, "RME Hammerfall HDSP 9652", 24)) {
+                printf("HDSP 9652 found !\n");
+                hdsp_cards[cards] = new HDSPMixerCard(H9652, card);
+                cards++;
+            } else if (!strncmp(name, "RME Hammerfall HDSP 9632", 24)) {
+                printf("HDSP 9632 found !\n");
+                hdsp_cards[cards] = new HDSPMixerCard(H9632, card);
+                cards++;
+	    } else if (!strncmp(name, "RME MADIface", 12)) {
 		printf("RME MADIface found !\n");
 		hdsp_cards[cards] = new HDSPMixerCard(HDSPeMADI, card);
 		cards++;
Signature · 1 line
1.7.2.3

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