]> 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)
commit5b088a0cfc1c44b022463ebe764fb26c02ba84ac
tree6d9252579928b84f65556478fe7701ed6cfa707e
parentae7ca5b6f034b06a61dcc4638c63d89cb35493fb
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