Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e361d3c authored by Takashi Sakamoto's avatar Takashi Sakamoto Committed by Takashi Iwai
Browse files

ALSA: control: remove entry limitation for list operation



In current implementation of ALSA control core, list operation has
a limitation to handle 16384 entries at once. This seems due to
allocation in kernel space to copy data from user space.

With a commit 53e7bf45 ("ALSA: control: Simplify snd_ctl_elem_list()
implementation"), for the operation, ALSA control core copies data
into user space directly. No need to care of kernel spaces anymore.

This commit purges the limitation.

Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent ffb73b08
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -757,9 +757,7 @@ static int snd_ctl_elem_list(struct snd_card *card,
		return -EFAULT;
	offset = list.offset;
	space = list.space;
	/* try limit maximum space */
	if (space > 16384)
		return -ENOMEM;

	down_read(&card->controls_rwsem);
	list.count = card->controls_count;
	list.used = 0;