]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: wm_adsp: Take prefix into account in control name length
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 19 Jul 2018 10:50:36 +0000 (11:50 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 19 Jul 2018 14:11:54 +0000 (15:11 +0100)
commitb7ede5af62ab6bfad0980fad58e82d3fb56866df
treebc4f80816f28050efb20f2c896644417aead26ac
parent517ee74e1b3124b696f293aa4e220418f8125b4c
ASoC: wm_adsp: Take prefix into account in control name length

Currently when creating ALSA control names for the DSP the length of any
prefix applied to the CODEC is not taken into account. Whilst this is
mostly harmless it does result in ALSA doing the truncation of the
control names and printing a warning. It is better to have the driver do
the truncation so it can truncate from the start of parameter name
itself to give a greater chance of the result maintain a unique name.

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