未验证 提交 95a594d0 编写于 作者: C Charles Keepax 提交者: Mark Brown

ASoC: wm_adsp: Account for name prefixes when toggling preloader

Use the correct functions to allow a name prefix assigned through
codec_conf to be taken into consideration whilst enabling and disabling
the preloader widget.
Signed-off-by: NCharles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 3c1d663b
...@@ -2666,9 +2666,9 @@ int wm_adsp2_preloader_put(struct snd_kcontrol *kcontrol, ...@@ -2666,9 +2666,9 @@ int wm_adsp2_preloader_put(struct snd_kcontrol *kcontrol,
dsp->preloaded = ucontrol->value.integer.value[0]; dsp->preloaded = ucontrol->value.integer.value[0];
if (ucontrol->value.integer.value[0]) if (ucontrol->value.integer.value[0])
snd_soc_dapm_force_enable_pin(dapm, preload); snd_soc_component_force_enable_pin(component, preload);
else else
snd_soc_dapm_disable_pin(dapm, preload); snd_soc_component_disable_pin(component, preload);
snd_soc_dapm_sync(dapm); snd_soc_dapm_sync(dapm);
...@@ -2852,11 +2852,11 @@ EXPORT_SYMBOL_GPL(wm_adsp2_event); ...@@ -2852,11 +2852,11 @@ EXPORT_SYMBOL_GPL(wm_adsp2_event);
int wm_adsp2_component_probe(struct wm_adsp *dsp, struct snd_soc_component *component) int wm_adsp2_component_probe(struct wm_adsp *dsp, struct snd_soc_component *component)
{ {
struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component);
char preload[32]; char preload[32];
snprintf(preload, ARRAY_SIZE(preload), "DSP%d Preload", dsp->num); snprintf(preload, ARRAY_SIZE(preload), "DSP%d Preload", dsp->num);
snd_soc_dapm_disable_pin(dapm, preload);
snd_soc_component_disable_pin(component, preload);
wm_adsp2_init_debugfs(dsp, component); wm_adsp2_init_debugfs(dsp, component);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册