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)
commite76bf3c4b4e456fa8f2c729fa1e8c644857529a8
tree6d9252579928b84f65556478fe7701ed6cfa707e
parentb55f9fdcd3f0b3da7c9d4b6c67d75a1878653221
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