]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hdspm - Reorder period sizes according to their bit representation
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>
Sun, 14 Aug 2011 22:22:52 +0000 (00:22 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 Aug 2011 08:25:23 +0000 (10:25 +0200)
commitcf28c5d81be27cd5acf541115ceaa18a1c4d34a5
tree145f220cada8e3b87005366c7c26fcde61518c2c
parentaf476df7f3b0aae2cdd952eebe317b44d2901f69
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>
sound/pci/rme9652/hdspm.c