]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: hdspm - Constrain periods to 2 on older cards
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>
Tue, 10 Feb 2015 10:33:50 +0000 (11:33 +0100)
committerZefan Li <lizefan@huawei.com>
Fri, 19 Jun 2015 03:40:16 +0000 (11:40 +0800)
commit0f86e13f61bd10a726b43120e6b0f52ca5791c22
tree1cc51137da6ac6c19f2105e7cddff7d210defe3c
parent1bf24045307f7accabac0684eb7b695d3e1aa6be
ALSA: hdspm - Constrain periods to 2 on older cards

commit f0153c3d948c1764f6c920a0675d86fc1d75813e upstream.

RME RayDAT and AIO use a fixed buffer size of 16384 samples. With period
sizes of 32-4096, this translates to 4-512 periods.

The older RME cards have a variable buffer size but require exactly two
periods.

This patch enforces nperiods=2 on those cards.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Zefan Li <lizefan@huawei.com>
sound/pci/rme9652/hdspm.c