]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
ALSA: ctxfi: Bump playback substreams to 256
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>
Tue, 23 Aug 2011 22:48:59 +0000 (00:48 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 24 Aug 2011 08:39:44 +0000 (10:39 +0200)
There are references in the code to 256 sources, so I tested it with 256 aplays,
of which the first and last with real data and the rest playing /dev/zero .

Also increase amount of page tables, so the default aplay size works.

Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ctxfi/ctpcm.c
sound/pci/ctxfi/ctsrc.c
sound/pci/ctxfi/ctvmem.h

index 457d21189b0db1fc5b2fcd2af22e30d20089dcb1..2c8622617c8c4cac7df6f01535cc97adc165c206 100644 (file)
@@ -404,7 +404,7 @@ int ct_alsa_pcm_create(struct ct_atc *atc,
        int err;
        int playback_count, capture_count;
 
-       playback_count = (IEC958 == device) ? 1 : 8;
+       playback_count = (IEC958 == device) ? 1 : 256;
        capture_count = (FRONT == device) ? 1 : 0;
        err = snd_pcm_new(atc->card, "ctxfi", device,
                          playback_count, capture_count, &pcm);
index c749fa72088996c75843927f7470997288a6e669..e134b3a5780da709d9ccbf3fce4c9f99f7f82fc5 100644 (file)
@@ -20,7 +20,7 @@
 #include "cthardware.h"
 #include <linux/slab.h>
 
-#define SRC_RESOURCE_NUM       64
+#define SRC_RESOURCE_NUM       256
 #define SRCIMP_RESOURCE_NUM    256
 
 static unsigned int conj_mask;
index b23adfca4de6eb90f0dbbf08fda38696df5cac61..e6da60eb19ceb76d64ce92fbcbd62f2bb144b6c3 100644 (file)
@@ -18,7 +18,7 @@
 #ifndef CTVMEM_H
 #define CTVMEM_H
 
-#define CT_PTP_NUM     1       /* num of device page table pages */
+#define CT_PTP_NUM     4       /* num of device page table pages */
 
 #include <linux/mutex.h>
 #include <linux/list.h>