Skip to content

Commit

Permalink
ASoC: wm_adsp: Factor out DSP specific operations
Browse files Browse the repository at this point in the history
In preparation for the addition of more types of DSP core refactor the
handling of DSP specific operations such as starting the memory or
enabling the core into a set of callbacks. This should make it easier to
add new core types and allow for more code reuse between them.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Charles Keepax authored and Mark Brown committed Mar 19, 2019
1 parent a5dcb24 commit 4e08d50
Show file tree
Hide file tree
Showing 5 changed files with 271 additions and 153 deletions.
2 changes: 1 addition & 1 deletion sound/soc/codecs/cs47l24.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static int cs47l24_adsp_power_ev(struct snd_soc_dapm_widget *w,

wm_adsp2_set_dspclk(w, v);

return wm_adsp2_early_event(w, kcontrol, event);
return wm_adsp_early_event(w, kcontrol, event);
}

static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm5102.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ static int wm5102_adsp_power_ev(struct snd_soc_dapm_widget *w,
break;
}

return wm_adsp2_early_event(w, kcontrol, event);
return wm_adsp_early_event(w, kcontrol, event);
}

static int wm5102_out_comp_coeff_get(struct snd_kcontrol *kcontrol,
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm5110.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static int wm5110_adsp_power_ev(struct snd_soc_dapm_widget *w,

wm_adsp2_set_dspclk(w, v);

return wm_adsp2_early_event(w, kcontrol, event);
return wm_adsp_early_event(w, kcontrol, event);
}

static const struct reg_sequence wm5110_no_dre_left_enable[] = {
Expand Down
Loading

0 comments on commit 4e08d50

Please sign in to comment.