ASoC: wm_adsp: Limit firmware control name to ALSA control name size
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mon, 13 Apr 2015 12:27:56 +0000 (13:27 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Apr 2015 14:38:24 +0000 (15:38 +0100)
commit0f4e918cdf81344b63571dfac4088efab34ec3ae
tree6ba9d154fb570e3125255400b3fc0beebafa4ac1
parent6958eb2ab206127ca92c00047a86816e125fc06b
ASoC: wm_adsp: Limit firmware control name to ALSA control name size

ALSA only supports control names up to 44 bytes, so there is no point
allocating a whole page of memory to hold the control name, just limit
the control name to 44 bytes.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c