]> git.alsa-project.org Git - alsa-tools.git/commitdiff
hdspmixer: Fix detection for non-MADIface RME cards
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>
Thu, 3 Feb 2011 21:08:04 +0000 (22:08 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 7 Feb 2011 13:54:10 +0000 (14:54 +0100)
When adding RayDAT support, detection for cards like the 9652 was
accidently lost. This patch re-adds the missing bits.

Signed-off-by: Jörn Nettingsmeier <nettings@stackingdwarves.net>
Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
hdspmixer/src/hdspmixer.cxx

index 7fd50e940b47e5659cd7dddbdcb55ea1433a18cb..2a7c5c9d3e656e9bd1e72c48457325283c0e248d 100644 (file)
@@ -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++;