diff options
author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2019-03-19 12:52:09 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-03-19 13:39:57 +0100 |
commit | b9070df451668e0c317d420d8331568b4d7ba6df (patch) | |
tree | 820708fc0c3ac4f6251f020a021e80e84d9bcd95 /sound/soc/codecs/cs47l24.c | |
parent | ASoC: wm_adsp: Don't export wm_adsp2_lock (diff) | |
download | linux-b9070df451668e0c317d420d8331568b4d7ba6df.tar.xz linux-b9070df451668e0c317d420d8331568b4d7ba6df.zip |
ASoC: wm_adsp: Move wm_adsp2_set_dspclk to CODEC drivers
The original wm_adsp2_early_event took an additional frequency
argument for clocking control so could not be used directly as a
DAPM callback. But this setup could equally be done by the codec
driver function wrapping wm_adsp2_early event. In preparation
for adding support for new core types wm_adsp2_set_dspclk has
been exported, and the freq argument removed so that it can
be used directly as a DAPM callback.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs47l24.c')
-rw-r--r-- | sound/soc/codecs/cs47l24.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs47l24.c b/sound/soc/codecs/cs47l24.c index b16832a6a9af..e056d871fafb 100644 --- a/sound/soc/codecs/cs47l24.c +++ b/sound/soc/codecs/cs47l24.c @@ -75,7 +75,9 @@ static int cs47l24_adsp_power_ev(struct snd_soc_dapm_widget *w, v = (v & ARIZONA_SYSCLK_FREQ_MASK) >> ARIZONA_SYSCLK_FREQ_SHIFT; - return wm_adsp2_early_event(w, kcontrol, event, v); + wm_adsp2_set_dspclk(w, v); + + return wm_adsp2_early_event(w, kcontrol, event); } static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); |