]> 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)
committerJiri Slaby <jslaby@suse.cz>
Sun, 1 Mar 2015 22:34:16 +0000 (23:34 +0100)
commita80c93292402eaa3c19bbbff9afca82c8df54e13
tree1d98e9ef46be16af1b23307f2f3a57b7696cdf7c
parent60a5053935e8ec6f707b876406b0c5f94998bbd0
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: Jiri Slaby <jslaby@suse.cz>
sound/pci/rme9652/hdspm.c