diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2015-03-10 22:13:31 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-03-10 15:29:59 +0100 |
commit | 2225e79b9b0370bc179f44756bee809b5e7b4d06 (patch) | |
tree | b3557bdba22cc546c70a7f8df2f20b19b18f3912 /drivers/dma/mmp_pdma.c | |
parent | 4ed56666b7fc98c750a23b5263350b75e742b534 (diff) | |
download | linux-stable-2225e79b9b0370bc179f44756bee809b5e7b4d06.tar.gz linux-stable-2225e79b9b0370bc179f44756bee809b5e7b4d06.tar.bz2 linux-stable-2225e79b9b0370bc179f44756bee809b5e7b4d06.zip |
ALSA: core: reduce stack usage related to snd_ctl_new()
The callers of snd_ctl_new() need to have 'struct snd_kcontrol' data,
and pass the data as template. Then, the function allocates the structure
data again and copy from the template. This is a waste of resources.
Especially, the callers use large stack for the template.
This commit removes a need of template for the function, thus, changes
the prototype of snd_ctl_new(). Furthermore, this commit changes
the code of callers, snd_ctl_new1() and snd_ctl_elem_add() for better
shape.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'drivers/dma/mmp_pdma.c')
0 files changed, 0 insertions, 0 deletions