]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm/oss: refer to parameters instead of copying to reduce usage of kernel stack
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 16 May 2017 23:48:19 +0000 (08:48 +0900)
committerTakashi Iwai <tiwai@suse.de>
Wed, 17 May 2017 05:25:01 +0000 (07:25 +0200)
commit6edb462d1e7656cc267f0c42262f76b18fc56d04
tree6d9252579928b84f65556478fe7701ed6cfa707e
parent7348f53b1fd527b592ae3b5df64ca2a436171aed
ALSA: pcm/oss: refer to parameters instead of copying to reduce usage of kernel stack

Some functions in compatibility layer for Open Sound System interface has
local variable to copy some parameters in runtime of PCM substream, while
this can be replaced with reference of pointers to parameter itself. This
brings an advantage to reduce usage of kernel stack.

This commit applies this idea.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/oss/pcm_oss.c
sound/core/oss/pcm_plugin.c
sound/core/oss/pcm_plugin.h