]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ALSA: emu10k1: fix capture buffer size confusion
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Tue, 23 May 2023 20:07:06 +0000 (22:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 24 May 2023 10:12:59 +0000 (12:12 +0200)
commitd2baa153c328efbbc3c4b939662e058b2cb544fd
tree89dabd7b7fc90f6bdd774a83b3852d5ab4fe1435
parentf4ab59503989cce2c12a3c6337779218a5538ddd
ALSA: emu10k1: fix capture buffer size confusion

The buffer size register sets the size of the whole buffer, not just one
period. We actually handled it like that, except that the constraint was
set on the wrong parameter. The period size is implicitly constrained by
the buffer size and the fixed period count of 2.

Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Link: https://lore.kernel.org/r/20230523200709.236059-2-oswald.buddenhagen@gmx.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/emu10k1/emupcm.c