add examples for dai_link and dts
authora0220410 <peter-li@ti.com>
Thu, 18 Aug 2016 17:38:25 +0000 (01:38 +0800)
committera0220410 <peter-li@ti.com>
Thu, 18 Aug 2016 17:38:25 +0000 (01:38 +0800)
dai_link.readme [new file with mode: 0755]
dts.readme [new file with mode: 0755]

diff --git a/dai_link.readme b/dai_link.readme
new file mode 100755 (executable)
index 0000000..c971211
--- /dev/null
@@ -0,0 +1,28 @@
+example for connecting CPU DAI\r
+\r
+#elif defined(CONFIG_TAS2555_CODEC_STEREO)     \r
+       {\r
+               .name = LPASS_BE_PRI_MI2S_RX,\r
+               .stream_name = "Primary MI2S Hostless Playback",\r
+               .cpu_dai_name = "msm-dai-q6-mi2s.0",\r
+               .platform_name = "msm-pcm-routing",\r
+               .codec_name     = "tas2555s.3-004d",\r
+               .codec_dai_name = "tas2555 Stereo ASI1",\r
+               .no_pcm = 1,\r
+               .be_id = MSM_BACKEND_DAI_PRI_MI2S_RX,\r
+               .be_hw_params_fixup = msm_be_prim_mi2s_hw_params_fixup,\r
+               .ops = &msm8974_prim_mi2s_be_ops,\r
+       },\r
+       {\r
+               .name = LPASS_BE_PRI_MI2S_TX,\r
+               .stream_name = "Primary MI2S Hostless Capture",\r
+               .cpu_dai_name = "msm-dai-q6-mi2s.0",\r
+               .platform_name = "msm-pcm-routing",\r
+               .codec_name     = "tas2555s.3-004d",\r
+               .codec_dai_name = "tas2555 Stereo ASI1",\r
+               .no_pcm = 1,\r
+               .be_id = MSM_BACKEND_DAI_PRI_MI2S_TX,\r
+               .be_hw_params_fixup = msm_be_prim_mi2s_hw_params_fixup,\r
+               .ops = &msm8974_prim_mi2s_be_ops,\r
+       },      \r
+#endif 
\ No newline at end of file
diff --git a/dts.readme b/dts.readme
new file mode 100755 (executable)
index 0000000..f5fcb19
--- /dev/null
@@ -0,0 +1,11 @@
+example for dts:
+               
+               tas2555s@4d {
+                       #sound-dai-cells = <1>;
+                       compatible = "ti,tas2555s";
+                       reg = <0x4d>;
+                       ti,cdc-reset-gpio = <&msmgpio 73 0>;
+                       ti,left-channel = <0x4c>;
+                       ti,right-channel = <0x4d>;
+                       status = "ok";
+               };
\ No newline at end of file