On Tue, May 24, 2016 at 09:36:14AM +0800, Xing Zheng wrote:Yes, I think that I should rename to rk3399_max98357a_rt5514_da7219.c, it is related to the rk3399 boards.
There are multi codec devices on the RK3399 platform, we can useThis is generic, but the binding seems to be very specific to only 3
this patch support and control these codecs.
Signed-off-by: Xing Zheng <zhengxing@xxxxxxxxxxxxxx>
Changes in v2:
- use the FS 256 to set mclks of the max98357a and rt5514 danamically
- add more sample rate for da7219
.../sound/rockchip-max98357a-rt5514-da7219.txt | 15 +
sound/soc/rockchip/Kconfig | 11 +
sound/soc/rockchip/Makefile | 2 +
.../rockchip/rockchip_max98357a_rt5514_da7219.c | 333 ++++++++++++++++++++
4 files changed, 361 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/rockchip-max98357a-rt5514-da7219.txt
create mode 100644 sound/soc/rockchip/rockchip_max98357a_rt5514_da7219.c
diff --git a/Documentation/devicetree/bindings/sound/rockchip-max98357a-rt5514-da7219.txt b/Documentation/devicetree/bindings/sound/rockchip-max98357a-rt5514-da7219.txt
new file mode 100644
@@ -0,0 +1,15 @@
+ROCKCHIP with MAX98357A/RT5514/DA7219 codecs
+- compatible: "rockchip,rockchip-sound"
specific codecs. Listing all 3 codecs seems a bit strange. Perhaps a
name related to the board name would be better.
Not always 3, the size is limited by machine driver, The similar approach with mt8173-rt5650-rt5676.txt.+- rockchip,cpu: The phandle of the Rockchip I2S controller that'sWhat's the size? always 3?
+ connected to the codecs
Ditto.+- rockchip,codec: The phandle of the MAX98357A/RT5514/DA7219 codecsPlease make the size and ordering clear.