alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH - hdspmixer 1/1] hdspmixer: Fix detection for non-MADIface RME cards
@ 2011-02-03 21:08 Adrian Knoth
  2011-02-03 21:10 ` Adrian Knoth
  2011-02-07 13:56 ` Takashi Iwai
  0 siblings, 2 replies; 3+ messages in thread
From: Adrian Knoth @ 2011-02-03 21:08 UTC (permalink / raw)
  To: patch; +Cc: Adrian Knoth, alsa-devel, Jörn Nettingsmeier

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>

diff --git a/hdspmixer/src/hdspmixer.cxx b/hdspmixer/src/hdspmixer.cxx
index 7fd50e9..2a7c5c9 100644
--- a/hdspmixer/src/hdspmixer.cxx
+++ b/hdspmixer/src/hdspmixer.cxx
@@ -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++;
-- 
1.7.2.3

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH - hdspmixer 1/1] hdspmixer: Fix detection for non-MADIface RME cards
  2011-02-03 21:08 [PATCH - hdspmixer 1/1] hdspmixer: Fix detection for non-MADIface RME cards Adrian Knoth
@ 2011-02-03 21:10 ` Adrian Knoth
  2011-02-07 13:56 ` Takashi Iwai
  1 sibling, 0 replies; 3+ messages in thread
From: Adrian Knoth @ 2011-02-03 21:10 UTC (permalink / raw)
  To: alsa-devel

On 02/03/11 22:08, Adrian Knoth wrote:

>  	    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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH - hdspmixer 1/1] hdspmixer: Fix detection for non-MADIface RME cards
  2011-02-03 21:08 [PATCH - hdspmixer 1/1] hdspmixer: Fix detection for non-MADIface RME cards Adrian Knoth
  2011-02-03 21:10 ` Adrian Knoth
@ 2011-02-07 13:56 ` Takashi Iwai
  1 sibling, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2011-02-07 13:56 UTC (permalink / raw)
  To: Adrian Knoth; +Cc: alsa-devel, Jörn Nettingsmeier

At Thu,  3 Feb 2011 22:08:04 +0100,
Adrian Knoth wrote:
> 
> 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>

Thanks, applied together with other beautifying patches.


Takashi

> diff --git a/hdspmixer/src/hdspmixer.cxx b/hdspmixer/src/hdspmixer.cxx
> index 7fd50e9..2a7c5c9 100644
> --- a/hdspmixer/src/hdspmixer.cxx
> +++ b/hdspmixer/src/hdspmixer.cxx
> @@ -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++;
> -- 
> 1.7.2.3
> 
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-07 13:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-03 21:08 [PATCH - hdspmixer 1/1] hdspmixer: Fix detection for non-MADIface RME cards Adrian Knoth
2011-02-03 21:10 ` Adrian Knoth
2011-02-07 13:56 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).