Skip to content

Commit

Permalink
ALSA: ctxfi: Bump playback substreams to 256
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Maarten Lankhorst authored and Takashi Iwai committed Aug 24, 2011
1 parent 08ede03 commit 391e691
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sound/pci/ctxfi/ctpcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion sound/pci/ctxfi/ctsrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion sound/pci/ctxfi/ctvmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 391e691

Please sign in to comment.