instead of checking DSP memory address for DSP core status,
check the flag from wm_adsp to determine algorithm status.
Change-Id: I846afc671e708dedd9af52000a7eb76cc39adc3b
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/
1346616
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhengming Yao <yaozm1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
struct soc_mixer_control *mc = (struct soc_mixer_control *)
kcontrol->private_value;
struct wm_adsp *dsp = &dsps[mc->shift];
- unsigned int val;
- regmap_read(dsp->regmap, dsp->base + ADSP2_CONTROL, &val);
- if (val & ADSP2_CORE_ENA)
+ if (dsp != NULL && dsp->running)
ucontrol->value.integer.value[0] = 1;
else
ucontrol->value.integer.value[0] = 0;