diff options
author | Olivier Moysan <olivier.moysan@st.com> | 2018-10-15 16:03:36 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-10-19 13:12:21 +0100 |
commit | 5e8d63a726f8f2fef089515e9a501785cc67dcdc (patch) | |
tree | f9938f8288a45dff90260e7e176de60c89b2ab2a | |
parent | 8307b2afd386ccce369821daa2196068c47fe8cd (diff) | |
download | talos-op-linux-5e8d63a726f8f2fef089515e9a501785cc67dcdc.tar.gz talos-op-linux-5e8d63a726f8f2fef089515e9a501785cc67dcdc.zip |
ASoC: cs42l51: add mclk support
Add MCLK dapm to allow configuration of cirrus CS42l51
codec as a master clock consumer.
Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/cs42l51.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c index 5080d7a3c279..eb40bff54cec 100644 --- a/sound/soc/codecs/cs42l51.c +++ b/sound/soc/codecs/cs42l51.c @@ -237,6 +237,10 @@ static const struct snd_soc_dapm_widget cs42l51_dapm_widgets[] = { &cs42l51_adcr_mux_controls), }; +static const struct snd_soc_dapm_widget cs42l51_dapm_mclk_widgets[] = { + SND_SOC_DAPM_CLOCK_SUPPLY("MCLK") +}; + static const struct snd_soc_dapm_route cs42l51_routes[] = { {"HPL", NULL, "Left DAC"}, {"HPR", NULL, "Right DAC"}, @@ -487,6 +491,10 @@ static struct snd_soc_dai_driver cs42l51_dai = { static int cs42l51_component_probe(struct snd_soc_component *component) { int ret, reg; + struct snd_soc_dapm_context *dapm; + + dapm = snd_soc_component_get_dapm(component); + snd_soc_dapm_new_controls(dapm, cs42l51_dapm_mclk_widgets, 1); /* * DAC configuration |