diff options
author | Adam Thomson <Adam.Thomson.Opensource@diasemi.com> | 2018-03-09 16:25:43 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-03-09 17:40:41 +0000 |
commit | fc8f7ea2d6c074baaad202c9187962bfa493ef13 (patch) | |
tree | 44dea6701558da4ca58f5c89309451b9c5155506 /include/sound/da7219.h | |
parent | c22969d70fc9253112e88da55116e04074cdeac4 (diff) | |
download | linux-rpi3-fc8f7ea2d6c074baaad202c9187962bfa493ef13.tar.gz linux-rpi3-fc8f7ea2d6c074baaad202c9187962bfa493ef13.tar.bz2 linux-rpi3-fc8f7ea2d6c074baaad202c9187962bfa493ef13.zip |
ASoC: da7219: Add common clock usage for providing DAI clks
There is a need to use DA7219 as DAI clock master for other codecs
within a system, which means that the DAI clocks are required to
remain, regardless of whether the codec is actually running
playback/capture. To be able to expose control of the DAI clocking
the common clock framework has been employed.
The current implementation adds a simple clock gate for enabling
and disabling the DAI clocks, with no rate control supported
(this is still handled through standard hw_params() functions as
before). If DT is enabled then the clock is added to the OF
providers list, otherwise a clkdev lookup is used.
Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/da7219.h')
-rw-r--r-- | include/sound/da7219.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/da7219.h b/include/sound/da7219.h index 409ef1397fd3..1bfcb16f2d10 100644 --- a/include/sound/da7219.h +++ b/include/sound/da7219.h @@ -36,6 +36,8 @@ struct da7219_aad_pdata; struct da7219_pdata { bool wakeup_source; + const char *dai_clks_name; + /* Mic */ enum da7219_micbias_voltage micbias_lvl; enum da7219_mic_amp_in_sel mic_amp_in_sel; |