ASoC: wm_adsp: Fix control name parsing for multi-fw
authorJames Schulman <james.schulman@cirrus.com>
Fri, 15 Jan 2021 20:11:05 +0000 (14:11 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Feb 2021 12:55:03 +0000 (13:55 +0100)
commit4b877845e388964afed4de987763e3149f8dc375
tree0be5f25db79a7d23d07ff91fe7135cde9a2e37fe
parent61e97f32fded4d6d76a4996486304c5af091a91f
ASoC: wm_adsp: Fix control name parsing for multi-fw

[ Upstream commit a8939f2e138e418c2b059056ff5b501eaf2eae54 ]

When switching between firmware types, the wrong control
can be selected when requesting control in kernel API.
Use the currently selected DSP firwmare type to select
the proper mixer control.

Signed-off-by: James Schulman <james.schulman@cirrus.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210115201105.14075-1-james.schulman@cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/wm_adsp.c