diff options
author | Ryder Lee <ryder.lee@mediatek.com> | 2018-01-02 19:47:19 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-01-03 15:15:24 +0000 |
commit | d8d99d8ed658a705909b07ba21b643c53851d70c (patch) | |
tree | a7feedb9d1793914fd3f98fe129a1a2a9402b04a /sound/usb/mixer_maps.c | |
parent | dd6bb9b16f23f9b95b77713c45bd6182336c5b2e (diff) |
ASoC: mediatek: rework clock functions for MT2701
Reworks clock part to make it more reasonable. The current changes are:
- Replace regmap operations by CCF APIs. Doing so, we just need to handle
the element clocks and can also get accurate information via CCF.
- Rename clocks to make them more generic so that the future revisions
of the IP can adapt gracefully.
- Regroup 'aud_clks[]' by usage - the basic needs and I2S parts:
The new code just keep the common clocks in array and let SoC self decide
I2S numbers - If future chips have different sets of channels we will
add a little more abstract here.
Moreover, this patch moves I2S clocks to the struct mt2701_i2s_data
so that we can easily manage them when calls .prepare() and .shutdown().
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Tested-by: Garlic Tseng <garlic.tseng@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/usb/mixer_maps.c')
0 files changed, 0 insertions, 0 deletions