diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2017-05-17 02:48:19 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-05-17 08:25:01 +0300 |
commit | e76bf3c4b4e456fa8f2c729fa1e8c644857529a8 (patch) | |
tree | 6d9252579928b84f65556478fe7701ed6cfa707e /sound/core/oss/pcm_plugin.h | |
parent | b55f9fdcd3f0b3da7c9d4b6c67d75a1878653221 (diff) | |
download | linux-e76bf3c4b4e456fa8f2c729fa1e8c644857529a8.tar.xz |
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>
Diffstat (limited to 'sound/core/oss/pcm_plugin.h')
-rw-r--r-- | sound/core/oss/pcm_plugin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/oss/pcm_plugin.h b/sound/core/oss/pcm_plugin.h index a5035c2369a6..38e2c14cb893 100644 --- a/sound/core/oss/pcm_plugin.h +++ b/sound/core/oss/pcm_plugin.h @@ -126,7 +126,7 @@ int snd_pcm_plug_format_plugins(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *slave_params); snd_pcm_format_t snd_pcm_plug_slave_format(snd_pcm_format_t format, - struct snd_mask *format_mask); + const struct snd_mask *format_mask); int snd_pcm_plugin_append(struct snd_pcm_plugin *plugin); |