aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>2011-08-23 18:48:59 -0400
committerTakashi Iwai <tiwai@suse.de>2011-08-24 04:39:44 -0400
commit391e69143d0a05f960e3ab39a8c26b7b230bb8a9 (patch)
tree9576019c6bbcbad7485fec00615f96005ee73f82 /sound/pci
parent08ede038a738f22c1b3425051175e1d627d8dd43 (diff)
ALSA: ctxfi: Bump playback substreams to 256
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>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/ctxfi/ctpcm.c2
-rw-r--r--sound/pci/ctxfi/ctsrc.c2
-rw-r--r--sound/pci/ctxfi/ctvmem.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/ctxfi/ctpcm.c b/sound/pci/ctxfi/ctpcm.c
index 457d21189b0..2c8622617c8 100644
--- a/sound/pci/ctxfi/ctpcm.c
+++ b/sound/pci/ctxfi/ctpcm.c
@@ -404,7 +404,7 @@ int ct_alsa_pcm_create(struct ct_atc *atc,
404 int err; 404 int err;
405 int playback_count, capture_count; 405 int playback_count, capture_count;
406 406
407 playback_count = (IEC958 == device) ? 1 : 8; 407 playback_count = (IEC958 == device) ? 1 : 256;
408 capture_count = (FRONT == device) ? 1 : 0; 408 capture_count = (FRONT == device) ? 1 : 0;
409 err = snd_pcm_new(atc->card, "ctxfi", device, 409 err = snd_pcm_new(atc->card, "ctxfi", device,
410 playback_count, capture_count, &pcm); 410 playback_count, capture_count, &pcm);
diff --git a/sound/pci/ctxfi/ctsrc.c b/sound/pci/ctxfi/ctsrc.c
index c749fa72088..e134b3a5780 100644
--- a/sound/pci/ctxfi/ctsrc.c
+++ b/sound/pci/ctxfi/ctsrc.c
@@ -20,7 +20,7 @@
20#include "cthardware.h" 20#include "cthardware.h"
21#include <linux/slab.h> 21#include <linux/slab.h>
22 22
23#define SRC_RESOURCE_NUM 64 23#define SRC_RESOURCE_NUM 256
24#define SRCIMP_RESOURCE_NUM 256 24#define SRCIMP_RESOURCE_NUM 256
25 25
26static unsigned int conj_mask; 26static unsigned int conj_mask;
diff --git a/sound/pci/ctxfi/ctvmem.h b/sound/pci/ctxfi/ctvmem.h
index b23adfca4de..e6da60eb19c 100644
--- a/sound/pci/ctxfi/ctvmem.h
+++ b/sound/pci/ctxfi/ctvmem.h
@@ -18,7 +18,7 @@
18#ifndef CTVMEM_H 18#ifndef CTVMEM_H
19#define CTVMEM_H 19#define CTVMEM_H
20 20
21#define CT_PTP_NUM 1 /* num of device page table pages */ 21#define CT_PTP_NUM 4 /* num of device page table pages */
22 22
23#include <linux/mutex.h> 23#include <linux/mutex.h>
24#include <linux/list.h> 24#include <linux/list.h>