summaryrefslogtreecommitdiffstats
path: root/sound/soc/Kconfig
diff options
context:
space:
mode:
authoranish kumar <yesanishhere@gmail.com>2017-09-29 06:52:39 +0200
committerMark Brown <broonie@kernel.org>2017-10-05 21:43:05 +0200
commit19ad683abc8534cd755403381c73c0ddce7b9f6d (patch)
tree9da13062c93bf962ed7293a7dd1b91416b3c8309 /sound/soc/Kconfig
parentASoC: dapm: Make snd_soc_dapm_add/del_routes use runtime mutex subclass (diff)
downloadlinux-19ad683abc8534cd755403381c73c0ddce7b9f6d.tar.xz
linux-19ad683abc8534cd755403381c73c0ddce7b9f6d.zip
ASoC: dapm: Avoid creating kcontrol for params
Currently in codec to codec dai link if there are multiple params defined then dapm can use created kcontrol to decide which param to apply at runtime. However, in case there is only single param configuration then there is no point in creating the kcontrol and also there is no point in allocating memory for kcontrol. In the snd_soc_dapm_new_pcm function, there is memory allocation happening for kcontrol which is later used or not used based on num_param. It is better to not allocate memory when there is only a single configuration. This change is to remedy that anomaly. Signed-off-by: anish kumar <yesanishhere@gmail.com> Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com> Tested-by: Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/Kconfig')
0 files changed, 0 insertions, 0 deletions