ASoC: TSCS42xx: Add CCF support to get sysclk
Subsystems (4)
Steven Eckhoff
maintainerPATCH v2 3/3 ASoC: TSCS42xx: Add CCF support to get sysclk
The TSCS42xx relies on set_sysclk to get a unique clock id and rate, which
prevents it from being used with the simple-card.
Remove set_sysclk callback
Add CCF support to get clock id and rate
Add clocks and clock-names to device tree binding
Signed-off-by Steven Eckhoff <[email protected]>
--- .../devicetree/bindings/sound/tscs42xx.txt | 6 ++ sound/soc/codecs/tscs42xx.c | 104 ++++++++++++++------- sound/soc/codecs/tscs42xx.h | 2 +- 3 files changed, 75 insertions(+), 37 deletions(-)
Documentation/devicetree/bindings/sound/tscs42xx.txt +6 -0
@@ -8,9 +8,15 @@ Required Properties: - reg : <0x71> for analog mic <0x69> for digital mic + - clock-names: Must one of the following "mclk1", "xtal", "mclk2" + + - clocks: phandle of the clock that provides the codec sysclk + Example: wookie: codec@69 { compatible = "tempo,tscs42A2"; reg = <0x69>; + clock-names = "xtal"; + clocks = <&audio_xtal>; };
sound/soc/codecs/tscs42xx.c +68 -36
157 lines not on this page · raw message
sound/soc/codecs/tscs42xx.h +1 -1
@@ -7,10 +7,10 @@#define __WOOKIE_H__enum { -TSCS42XX_PLL_SRC_NONE ,TSCS42XX_PLL_SRC_XTAL ,TSCS42XX_PLL_SRC_MCLK1 ,TSCS42XX_PLL_SRC_MCLK2 , +TSCS42XX_PLL_SRC_CNT , };#define R_HPVOLL 0x0
Signature · 1 line
2.15.1