Add support for multi format
[tas2770sw-android/tas2770sw-android.git] / dai_link.readme
1 example for connecting CPU DAI\r
2 \r
3 #if defined(CONFIG_TAS2770_CODEC)       \r
4         {\r
5                 .name = LPASS_BE_PRI_MI2S_RX,\r
6                 .stream_name = "Primary MI2S Hostless Playback",\r
7                 .cpu_dai_name = "msm-dai-q6-mi2s.0",\r
8                 .platform_name = "msm-pcm-routing",\r
9                 .codec_name     = "tas2770.3-0041",\r
10                 .codec_dai_name = "tas2770 ASI",\r
11                 .no_pcm = 1,\r
12                 .be_id = MSM_BACKEND_DAI_PRI_MI2S_RX,\r
13                 .be_hw_params_fixup = msm_be_prim_mi2s_hw_params_fixup,\r
14                 .ops = &msm8974_prim_mi2s_be_ops,\r
15         },\r
16         {\r
17                 .name = LPASS_BE_PRI_MI2S_TX,\r
18                 .stream_name = "Primary MI2S Hostless Capture",\r
19                 .cpu_dai_name = "msm-dai-q6-mi2s.0",\r
20                 .platform_name = "msm-pcm-routing",\r
21                 .codec_name     = "tas2770.3-0041",\r
22                 .codec_dai_name = "tas2770 ASI",\r
23                 .no_pcm = 1,\r
24                 .be_id = MSM_BACKEND_DAI_PRI_MI2S_TX,\r
25                 .be_hw_params_fixup = msm_be_prim_mi2s_hw_params_fixup,\r
26                 .ops = &msm8974_prim_mi2s_be_ops,\r
27         },\r
28 #endif