Lines Matching full:dpcm
25 #include <sound/soc-dpcm.h>
41 if (fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE)
51 if ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) || in snd_soc_dpcm_can_be_update()
52 ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_BE) && in snd_soc_dpcm_can_be_update()
53 be->dpcm[stream].runtime_update)) in snd_soc_dpcm_can_be_update()
64 struct snd_soc_dpcm *dpcm; in snd_soc_dpcm_check_state() local
69 for_each_dpcm_fe(be, stream, dpcm) { in snd_soc_dpcm_check_state()
71 if (dpcm->fe == fe) in snd_soc_dpcm_check_state()
74 state = dpcm->fe->dpcm[stream].state; in snd_soc_dpcm_check_state()
179 struct snd_pcm_hw_params *params = &fe->dpcm[stream].hw_params; in dpcm_show_state()
180 struct snd_soc_dpcm *dpcm; in dpcm_show_state() local
189 dpcm_state_string(fe->dpcm[stream].state)); in dpcm_show_state()
191 if ((fe->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_show_state()
192 (fe->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) in dpcm_show_state()
203 if (list_empty(&fe->dpcm[stream].be_clients)) { in dpcm_show_state()
209 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_show_state()
210 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_show_state()
211 params = &be->dpcm[stream].hw_params; in dpcm_show_state()
218 dpcm_state_string(be->dpcm[stream].state)); in dpcm_show_state()
220 if ((be->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_show_state()
221 (be->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) in dpcm_show_state()
284 static void dpcm_create_debugfs_state(struct snd_soc_dpcm *dpcm, int stream) in dpcm_create_debugfs_state() argument
288 name = kasprintf(GFP_KERNEL, "%s:%s", dpcm->be->dai_link->name, in dpcm_create_debugfs_state()
291 dpcm->debugfs_state = debugfs_create_dir( in dpcm_create_debugfs_state()
292 name, dpcm->fe->debugfs_dpcm_root); in dpcm_create_debugfs_state()
293 debugfs_create_u32("state", 0644, dpcm->debugfs_state, in dpcm_create_debugfs_state()
294 &dpcm->state); in dpcm_create_debugfs_state()
299 static void dpcm_remove_debugfs_state(struct snd_soc_dpcm *dpcm) in dpcm_remove_debugfs_state() argument
301 debugfs_remove_recursive(dpcm->debugfs_state); in dpcm_remove_debugfs_state()
305 static inline void dpcm_create_debugfs_state(struct snd_soc_dpcm *dpcm, in dpcm_create_debugfs_state() argument
310 static inline void dpcm_remove_debugfs_state(struct snd_soc_dpcm *dpcm) in dpcm_remove_debugfs_state() argument
328 if (state == SND_SOC_DPCM_UPDATE_NO && fe->dpcm[stream].trigger_pending) { in dpcm_set_fe_update_state()
330 fe->dpcm[stream].trigger_pending - 1); in dpcm_set_fe_update_state()
331 fe->dpcm[stream].trigger_pending = 0; in dpcm_set_fe_update_state()
333 fe->dpcm[stream].runtime_update = state; in dpcm_set_fe_update_state()
340 be->dpcm[stream].runtime_update = state; in dpcm_set_be_update_state()
402 /* DPCM stream event, send event to FE and all active BEs. */
405 struct snd_soc_dpcm *dpcm; in dpcm_dapm_stream_event() local
409 for_each_dpcm_be(fe, dir, dpcm) { in dpcm_dapm_stream_event()
411 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_dapm_stream_event()
417 (be->dpcm[dir].users >= 1)) in dpcm_dapm_stream_event()
789 /* PCM close ops for non-DPCM streams */
904 /* PCM open ops for non-DPCM streams */
966 /* PCM prepare ops for non-DPCM streams */
1041 /* hw_free PCM ops for non-DPCM streams */
1159 /* hw_params PCM ops for non-DPCM streams */
1292 struct snd_soc_dpcm *dpcm; in dpcm_be_connect() local
1297 for_each_dpcm_be(fe, stream, dpcm) in dpcm_be_connect()
1298 if (dpcm->be == be) in dpcm_be_connect()
1314 dpcm = kzalloc(sizeof(struct snd_soc_dpcm), GFP_KERNEL); in dpcm_be_connect()
1315 if (!dpcm) in dpcm_be_connect()
1318 dpcm->be = be; in dpcm_be_connect()
1319 dpcm->fe = fe; in dpcm_be_connect()
1320 dpcm->state = SND_SOC_DPCM_LINK_STATE_NEW; in dpcm_be_connect()
1322 list_add(&dpcm->list_be, &fe->dpcm[stream].be_clients); in dpcm_be_connect()
1323 list_add(&dpcm->list_fe, &be->dpcm[stream].fe_clients); in dpcm_be_connect()
1326 dev_dbg(fe->dev, "connected new DPCM %s path %s %s %s\n", in dpcm_be_connect()
1330 dpcm_create_debugfs_state(dpcm, stream); in dpcm_be_connect()
1339 struct snd_soc_dpcm *dpcm; in dpcm_be_reparent() local
1343 if (!be->dpcm[stream].users) in dpcm_be_reparent()
1350 for_each_dpcm_fe(be, stream, dpcm) { in dpcm_be_reparent()
1351 if (dpcm->fe == fe) in dpcm_be_reparent()
1356 dpcm->fe->dai_link->name, in dpcm_be_reparent()
1357 stream ? "<-" : "->", dpcm->be->dai_link->name); in dpcm_be_reparent()
1359 fe_substream = snd_soc_dpcm_get_substream(dpcm->fe, stream); in dpcm_be_reparent()
1368 struct snd_soc_dpcm *dpcm, *d; in dpcm_be_disconnect() local
1375 for_each_dpcm_be_safe(fe, stream, dpcm, d) { in dpcm_be_disconnect()
1378 dpcm->be->dai_link->name); in dpcm_be_disconnect()
1380 if (dpcm->state != SND_SOC_DPCM_LINK_STATE_FREE) in dpcm_be_disconnect()
1385 stream ? "<-" : "->", dpcm->be->dai_link->name); in dpcm_be_disconnect()
1388 dpcm_be_reparent(fe, dpcm->be, stream); in dpcm_be_disconnect()
1390 list_del(&dpcm->list_be); in dpcm_be_disconnect()
1391 list_move(&dpcm->list_fe, &deleted_dpcms); in dpcm_be_disconnect()
1396 dpcm = list_first_entry(&deleted_dpcms, struct snd_soc_dpcm, in dpcm_be_disconnect()
1398 list_del(&dpcm->list_fe); in dpcm_be_disconnect()
1399 dpcm_remove_debugfs_state(dpcm); in dpcm_be_disconnect()
1400 kfree(dpcm); in dpcm_be_disconnect()
1502 static bool dpcm_be_is_active(struct snd_soc_dpcm *dpcm, int stream, in dpcm_be_is_active() argument
1509 for_each_rtd_dais(dpcm->be, i, dai) { in dpcm_be_is_active()
1526 struct snd_soc_dpcm *dpcm; in dpcm_prune_paths() local
1530 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_prune_paths()
1531 if (dpcm_be_is_active(dpcm, stream, *list_)) in dpcm_prune_paths()
1536 dpcm->be->dai_link->name, fe->dai_link->name); in dpcm_prune_paths()
1537 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_prune_paths()
1538 dpcm_set_be_update_state(dpcm->be, stream, SND_SOC_DPCM_UPDATE_BE); in dpcm_prune_paths()
1591 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_NEW) && in dpcm_add_paths()
1592 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_add_paths()
1593 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_add_paths()
1594 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_CLOSE)) in dpcm_add_paths()
1617 struct snd_soc_dpcm *dpcm; in dpcm_clear_pending_state() local
1619 for_each_dpcm_be(fe, stream, dpcm) in dpcm_clear_pending_state()
1620 dpcm_set_be_update_state(dpcm->be, stream, SND_SOC_DPCM_UPDATE_NO); in dpcm_clear_pending_state()
1626 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_stop() local
1629 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_stop()
1630 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_stop()
1634 if (dpcm == last) in dpcm_be_dai_stop()
1641 if (be->dpcm[stream].users == 0) { in dpcm_be_dai_stop()
1644 dpcm_state_string(be->dpcm[stream].state)); in dpcm_be_dai_stop()
1648 if (--be->dpcm[stream].users != 0) in dpcm_be_dai_stop()
1651 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) { in dpcm_be_dai_stop()
1655 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) { in dpcm_be_dai_stop()
1657 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_be_dai_stop()
1663 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_stop()
1671 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_startup() local
1675 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_startup()
1678 be = dpcm->be; in dpcm_be_dai_startup()
1691 /* first time the dpcm is open ? */ in dpcm_be_dai_startup()
1692 if (be->dpcm[stream].users == DPCM_MAX_BE_USERS) { in dpcm_be_dai_startup()
1695 dpcm_state_string(be->dpcm[stream].state)); in dpcm_be_dai_startup()
1699 if (be->dpcm[stream].users++ != 0) in dpcm_be_dai_startup()
1702 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_NEW) && in dpcm_be_dai_startup()
1703 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_CLOSE)) in dpcm_be_dai_startup()
1712 be->dpcm[stream].users--; in dpcm_be_dai_startup()
1713 if (be->dpcm[stream].users < 0) in dpcm_be_dai_startup()
1716 dpcm_state_string(be->dpcm[stream].state)); in dpcm_be_dai_startup()
1718 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_startup()
1721 be->dpcm[stream].be_start = 0; in dpcm_be_dai_startup()
1722 be->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in dpcm_be_dai_startup()
1729 dpcm_be_dai_startup_rollback(fe, stream, dpcm); in dpcm_be_dai_startup()
1773 struct snd_soc_dpcm *dpcm; in dpcm_runtime_setup_be_format() local
1785 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_setup_be_format()
1786 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_setup_be_format()
1810 struct snd_soc_dpcm *dpcm; in dpcm_runtime_setup_be_chan() local
1821 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_setup_be_chan()
1822 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_setup_be_chan()
1858 struct snd_soc_dpcm *dpcm; in dpcm_runtime_setup_be_rate() local
1869 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_setup_be_rate()
1870 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_setup_be_rate()
1893 struct snd_soc_dpcm *dpcm; in dpcm_apply_symmetry() local
1910 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_apply_symmetry()
1911 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_apply_symmetry()
1956 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in dpcm_fe_dai_startup()
1995 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_fe_dai_shutdown()
2002 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_hw_free() local
2006 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_hw_free()
2008 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_hw_free()
2021 if (be->dpcm[stream].users > 1) in dpcm_be_dai_hw_free()
2024 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_free()
2025 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && in dpcm_be_dai_hw_free()
2026 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_hw_free()
2027 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED) && in dpcm_be_dai_hw_free()
2028 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_hw_free()
2029 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND)) in dpcm_be_dai_hw_free()
2037 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_be_dai_hw_free()
2058 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_fe_dai_hw_free()
2069 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_hw_params() local
2072 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_hw_params()
2075 be = dpcm->be; in dpcm_be_dai_hw_params()
2082 /* copy params for each dpcm */ in dpcm_be_dai_hw_params()
2083 memcpy(&hw_params, &fe->dpcm[stream].hw_params, in dpcm_be_dai_hw_params()
2092 memcpy(&be->dpcm[stream].hw_params, &hw_params, in dpcm_be_dai_hw_params()
2099 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_be_dai_hw_params()
2100 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_params()
2101 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE)) in dpcm_be_dai_hw_params()
2111 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS; in dpcm_be_dai_hw_params()
2120 for_each_dpcm_be_rollback(fe, stream, dpcm) { in dpcm_be_dai_hw_params()
2121 be = dpcm->be; in dpcm_be_dai_hw_params()
2131 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_be_dai_hw_params()
2132 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_params()
2133 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_hw_params()
2134 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP)) in dpcm_be_dai_hw_params()
2152 memcpy(&fe->dpcm[stream].hw_params, params, in dpcm_fe_dai_hw_params()
2167 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS; in dpcm_fe_dai_hw_params()
2181 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_trigger() local
2185 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_trigger()
2188 be = dpcm->be; in dpcm_be_dai_trigger()
2202 if (!be->dpcm[stream].be_start && in dpcm_be_dai_trigger()
2203 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && in dpcm_be_dai_trigger()
2204 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_trigger()
2205 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2208 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2209 if (be->dpcm[stream].be_start != 1) in dpcm_be_dai_trigger()
2212 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_PAUSED) in dpcm_be_dai_trigger()
2219 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2223 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2226 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND)) in dpcm_be_dai_trigger()
2229 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2230 if (be->dpcm[stream].be_start != 1) in dpcm_be_dai_trigger()
2235 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2239 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2242 if (!be->dpcm[stream].be_start && in dpcm_be_dai_trigger()
2243 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) && in dpcm_be_dai_trigger()
2244 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2247 fe->dpcm[stream].fe_pause = false; in dpcm_be_dai_trigger()
2248 be->dpcm[stream].be_pause--; in dpcm_be_dai_trigger()
2250 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2251 if (be->dpcm[stream].be_start != 1) in dpcm_be_dai_trigger()
2256 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2260 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2263 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) && in dpcm_be_dai_trigger()
2264 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2267 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2268 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2270 if (be->dpcm[stream].be_start != 0) in dpcm_be_dai_trigger()
2274 if (fe->dpcm[stream].fe_pause) { in dpcm_be_dai_trigger()
2276 fe->dpcm[stream].fe_pause = false; in dpcm_be_dai_trigger()
2277 be->dpcm[stream].be_pause--; in dpcm_be_dai_trigger()
2280 if (be->dpcm[stream].be_pause != 0) in dpcm_be_dai_trigger()
2286 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2287 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2289 fe->dpcm[stream].fe_pause = true; in dpcm_be_dai_trigger()
2290 be->dpcm[stream].be_pause++; in dpcm_be_dai_trigger()
2295 if (be->dpcm[stream].be_pause != 0) in dpcm_be_dai_trigger()
2296 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_be_dai_trigger()
2298 be->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in dpcm_be_dai_trigger()
2302 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2305 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2306 if (be->dpcm[stream].be_start != 0) in dpcm_be_dai_trigger()
2311 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2315 be->dpcm[stream].state = SND_SOC_DPCM_STATE_SUSPEND; in dpcm_be_dai_trigger()
2318 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2321 fe->dpcm[stream].fe_pause = true; in dpcm_be_dai_trigger()
2322 be->dpcm[stream].be_pause++; in dpcm_be_dai_trigger()
2324 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2325 if (be->dpcm[stream].be_start != 0) in dpcm_be_dai_trigger()
2330 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2334 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_be_dai_trigger()
2386 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in dpcm_fe_dai_do_trigger()
2426 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_fe_dai_do_trigger()
2430 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in dpcm_fe_dai_do_trigger()
2433 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_fe_dai_do_trigger()
2438 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in dpcm_fe_dai_do_trigger()
2450 if (fe->dpcm[stream].runtime_update != SND_SOC_DPCM_UPDATE_NO) { in dpcm_fe_dai_trigger()
2451 fe->dpcm[stream].trigger_pending = cmd + 1; in dpcm_fe_dai_trigger()
2461 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_prepare() local
2464 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_prepare()
2466 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_prepare()
2477 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_prepare()
2478 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_prepare()
2479 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND) && in dpcm_be_dai_prepare()
2480 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_prepare()
2490 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; in dpcm_be_dai_prepare()
2514 if (list_empty(&fe->dpcm[stream].be_clients)) { in dpcm_fe_dai_prepare()
2533 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; in dpcm_fe_dai_prepare()
2569 struct snd_soc_dpcm *dpcm; in dpcm_run_update_startup() local
2576 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_FREE || in dpcm_run_update_startup()
2577 fe->dpcm[stream].state == SND_SOC_DPCM_STATE_CLOSE) { in dpcm_run_update_startup()
2579 fe->dai_link->name, dpcm_state_string(fe->dpcm[stream].state)); in dpcm_run_update_startup()
2590 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_OPEN) in dpcm_run_update_startup()
2598 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_PARAMS) in dpcm_run_update_startup()
2609 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_PREPARE || in dpcm_run_update_startup()
2610 fe->dpcm[stream].state == SND_SOC_DPCM_STATE_STOP) in dpcm_run_update_startup()
2625 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_run_update_startup()
2626 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_run_update_startup()
2632 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_CLOSE || in dpcm_run_update_startup()
2633 be->dpcm[stream].state == SND_SOC_DPCM_STATE_NEW) in dpcm_run_update_startup()
2634 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_run_update_startup()
2658 dev_dbg(fe->dev, "ASoC: DPCM %s runtime update for FE %s\n", in soc_dpcm_fe_runtime_update()
2737 struct snd_soc_dpcm *dpcm; in dpcm_fe_dai_cleanup() local
2743 for_each_dpcm_be(fe, stream, dpcm) in dpcm_fe_dai_cleanup()
2744 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_fe_dai_cleanup()
2806 "DPCM doesn't support Multi CPU for Front-Ends yet\n"); in soc_get_playback_capture()
2823 * DPCM Codec has been no checked before. in soc_get_playback_capture()