summaryrefslogtreecommitdiffstats
path: root/sound/pci/rme9652
diff options
context:
space:
mode:
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>2011-08-15 00:22:52 +0200
committerTakashi Iwai <tiwai@suse.de>2011-08-15 10:25:23 +0200
commit1ad5972f71f94d8a8b5b683dd5f81a52a4ddf54c (patch)
tree145f220cada8e3b87005366c7c26fcde61518c2c /sound/pci/rme9652
parentALSA: hdspm - Set period_bytes_min to 32 * 4 for new RME cards (diff)
downloadlinux-1ad5972f71f94d8a8b5b683dd5f81a52a4ddf54c.tar.xz
linux-1ad5972f71f94d8a8b5b683dd5f81a52a4ddf54c.zip
ALSA: hdspm - Reorder period sizes according to their bit representation
On newer RME cards like RayDAT and AIO, the 8192 samples per period size are no longer supported. Instead, setting all three bits of HDSP_LatencyMask to one ({1,1,1}) now corresponds to 32 samples per period. To make this more obvious to future developers, let's reorder the array according to their bit representation, starting at 64 ({0,0,0}) up to 4096 ({1,1,0}) and finally 32 ({1,1,1}). Note that this patch doesn't change semantics. Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/rme9652')
-rw-r--r--sound/pci/rme9652/hdspm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c
index 8dc2a894f6f7..159133a14464 100644
--- a/sound/pci/rme9652/hdspm.c
+++ b/sound/pci/rme9652/hdspm.c
@@ -5677,7 +5677,7 @@ static unsigned int period_sizes_old[] = {
};
static unsigned int period_sizes_new[] = {
- 32, 64, 128, 256, 512, 1024, 2048, 4096
+ 64, 128, 256, 512, 1024, 2048, 4096, 32
};
/* RayDAT and AIO always have a buffer of 16384 samples per channel */