Lines Matching +full:fixed +full:- +full:links

18 DPCM re-uses all the existing component codec, platform and DAI drivers without
23 -------------------------------------
26 document for all examples :-
32 PCM0 <------------> * * <----DAI0-----> Codec Headset
34 PCM1 <------------> * * <----DAI1-----> Codec Speakers
36 PCM2 <------------> * * <----DAI2-----> MODEM
38 PCM3 <------------> * * <----DAI3-----> BT
40 * * <----DAI4-----> DMIC
42 * * <----DAI5-----> FM
53 Example - DPCM Switching playback from DAI0 to DAI1
54 ---------------------------------------------------
59 Playback on PCM0 to Headset would look like :-
65 PCM1 <------------> * * <----DAI1-----> Codec Speakers
67 PCM2 <------------> * * <----DAI2-----> MODEM
69 PCM3 <------------> * * <----DAI3-----> BT
71 * * <----DAI4-----> DMIC
73 * * <----DAI5-----> FM
76 The headset is removed from the jack by user so the speakers must now be used :-
80 PCM0 <============> * * <----DAI0-----> Codec Headset
82 PCM1 <------------> * * <====DAI1=====> Codec Speakers
84 PCM2 <------------> * * <----DAI2-----> MODEM
86 PCM3 <------------> * * <----DAI3-----> BT
88 * * <----DAI4-----> DMIC
90 * * <----DAI5-----> FM
93 The audio driver processes this as follows :-
117 except that we also have to :-
119 1. Define the FE and BE DAI links.
126 FE and BE DAI links
127 -------------------
133 PCM0 <------------> * * <----DAI0-----> Codec Headset
135 PCM1 <------------> * * <----DAI1-----> Codec Speakers
137 PCM2 <------------> * * <----DAI2-----> MODEM
139 PCM3 <------------> * * <----DAI3-----> BT
141 * * <----DAI4-----> DMIC
143 * * <----DAI5-----> FM
146 For the example above we have to define 4 FE DAI links and 6 BE DAI links. The
147 FE DAI links are defined as follows :-
153 DAILINK_COMP_ARRAY(COMP_PLATFORM("dsp-audio")));
163 .....< other FE and BE DAI links here >
176 The BE DAIs are configured as follows :-
180 DAILINK_COMP_ARRAY(COMP_CPU("ssp-dai.0")),
181 DAILINK_COMP_ARRAY(COMP_CODEC("rt5640.0-001c", "rt5640-aif1")));
184 .....< FE DAI links here >
194 .....< other BE DAI links here >
202 like a BT phone call :-
206 PCM0 <------------> * * <----DAI0-----> Codec Headset
208 PCM1 <------------> * * <----DAI1-----> Codec Speakers
210 PCM2 <------------> * * <====DAI2=====> MODEM
212 PCM3 <------------> * * <====DAI3=====> BT
214 * * <----DAI4-----> DMIC
216 * * <----DAI5-----> FM
230 --------------------
236 e.g. DSP converts all FE hw params to run at fixed rate of 48k, 16bit, stereo for
237 DAI0. This means all FE hw_params have to be fixed in the machine driver for
251 rate->min = rate->max = 48000;
252 channels->min = channels->max = 2;
259 The other PCM operation are the same as for regular DAI links. Use as necessary.
263 ------------------------
265 The BE DAI links will normally be connected to the graph at initialisation time
267 has to be set explicitly in the driver :-
270 /* BE for codec Headset - DAI0 is dummy and managed by DSP FW */
280 implement :-
282 1. Front End PCM DAIs - i.e. struct snd_soc_dai_driver.
296 have :-
314 PCM0 <------------> * * <----DAI0-----> Codec Headset
316 PCM1 <------------> * * <====DAI1=====> Codec Speakers/Mic
318 PCM2 <------------> * * <====DAI2=====> MODEM
320 PCM3 <------------> * * <----DAI3-----> BT
322 * * <----DAI4-----> DMIC
324 * * <----DAI5-----> FM
330 The host can control the hostless link either by :-
332 1. Configuring the link as a CODEC <-> CODEC style link. In this case the link
337 2. Hostless FE. This FE has a virtual connection to the BE DAI links on the DAPM
339 This method gives more control over the DAI links, but requires much more
340 userspace code to control the link. Its recommended to use CODEC<->CODEC
344 CODEC <-> CODEC link
345 --------------------
360 < ... more DAI links above ... >
365 .codec_dai_name = "modem-aif1",
372 < ... more DAI links here ... >
381 -----------
385 DAI links. The DAI links will be started when the FE PCM is started and stopped