commit | 07495f3e5af3a472f0f49957692cac15168fa528 | [log] [tgz] |
---|---|---|
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | Thu Mar 05 17:06:23 2009 +0000 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Fri Mar 06 13:37:14 2009 +0000 |
tree | 42667955b46fdad9bb9fef3f564b347f391540fe | |
parent | b0c5033f02182d1e9634edc737df88b82264e820 [diff] |
ASoC: Fix memory allocation for snd_soc_dapm_switch names snd_soc_dapm_switch ends up ends up in dapm_new_mixer() (since a switch is a special case of a mixer with only one input) but this wasn't correctly handled in the code. Also fix the coding style for the switch below while we're here. Reported-by: Joonyoung Shim <dofmind@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>