Lines Matching full:dpcm

25 #include <sound/soc-dpcm.h>
113 struct snd_pcm_hw_params *params = &fe->dpcm[stream].hw_params; in dpcm_show_state()
114 struct snd_soc_dpcm *dpcm; in dpcm_show_state() local
123 dpcm_state_string(fe->dpcm[stream].state)); in dpcm_show_state()
125 if ((fe->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_show_state()
126 (fe->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) in dpcm_show_state()
137 if (list_empty(&fe->dpcm[stream].be_clients)) { in dpcm_show_state()
143 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_show_state()
144 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_show_state()
145 params = &be->dpcm[stream].hw_params; in dpcm_show_state()
152 dpcm_state_string(be->dpcm[stream].state)); in dpcm_show_state()
154 if ((be->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_show_state()
155 (be->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) in dpcm_show_state()
220 static void dpcm_create_debugfs_state(struct snd_soc_dpcm *dpcm, int stream) in dpcm_create_debugfs_state() argument
224 name = kasprintf(GFP_KERNEL, "%s:%s", dpcm->be->dai_link->name, in dpcm_create_debugfs_state()
227 dpcm->debugfs_state = debugfs_create_dir( in dpcm_create_debugfs_state()
228 name, dpcm->fe->debugfs_dpcm_root); in dpcm_create_debugfs_state()
229 debugfs_create_u32("state", 0644, dpcm->debugfs_state, in dpcm_create_debugfs_state()
230 &dpcm->state); in dpcm_create_debugfs_state()
235 static void dpcm_remove_debugfs_state(struct snd_soc_dpcm *dpcm) in dpcm_remove_debugfs_state() argument
237 debugfs_remove_recursive(dpcm->debugfs_state); in dpcm_remove_debugfs_state()
241 static inline void dpcm_create_debugfs_state(struct snd_soc_dpcm *dpcm, in dpcm_create_debugfs_state() argument
246 static inline void dpcm_remove_debugfs_state(struct snd_soc_dpcm *dpcm) in dpcm_remove_debugfs_state() argument
264 if (state == SND_SOC_DPCM_UPDATE_NO && fe->dpcm[stream].trigger_pending) { in dpcm_set_fe_update_state()
266 fe->dpcm[stream].trigger_pending - 1); in dpcm_set_fe_update_state()
267 fe->dpcm[stream].trigger_pending = 0; in dpcm_set_fe_update_state()
269 fe->dpcm[stream].runtime_update = state; in dpcm_set_fe_update_state()
276 be->dpcm[stream].runtime_update = state; in dpcm_set_be_update_state()
353 /* DPCM stream event, send event to FE and all active BEs. */
357 struct snd_soc_dpcm *dpcm; in dpcm_dapm_stream_event() local
361 for_each_dpcm_be(fe, dir, dpcm) { in dpcm_dapm_stream_event()
363 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_dapm_stream_event()
369 (be->dpcm[dir].users >= 1)) in dpcm_dapm_stream_event()
753 /* PCM close ops for non-DPCM streams */
869 /* PCM open ops for non-DPCM streams */
925 /* PCM prepare ops for non-DPCM streams */
993 /* hw_free PCM ops for non-DPCM streams */
1111 /* hw_params PCM ops for non-DPCM streams */
1244 struct snd_soc_dpcm *dpcm; in dpcm_be_connect() local
1249 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_connect()
1250 if (dpcm->be == be && dpcm->fe == fe) in dpcm_be_connect()
1267 dpcm = kzalloc(sizeof(struct snd_soc_dpcm), GFP_KERNEL); in dpcm_be_connect()
1268 if (!dpcm) in dpcm_be_connect()
1271 dpcm->be = be; in dpcm_be_connect()
1272 dpcm->fe = fe; in dpcm_be_connect()
1273 dpcm->state = SND_SOC_DPCM_LINK_STATE_NEW; in dpcm_be_connect()
1275 list_add(&dpcm->list_be, &fe->dpcm[stream].be_clients); in dpcm_be_connect()
1276 list_add(&dpcm->list_fe, &be->dpcm[stream].fe_clients); in dpcm_be_connect()
1279 dev_dbg(fe->dev, "connected new DPCM %s path %s %s %s\n", in dpcm_be_connect()
1283 dpcm_create_debugfs_state(dpcm, stream); in dpcm_be_connect()
1292 struct snd_soc_dpcm *dpcm; in dpcm_be_reparent() local
1296 if (!be->dpcm[stream].users) in dpcm_be_reparent()
1303 for_each_dpcm_fe(be, stream, dpcm) { in dpcm_be_reparent()
1304 if (dpcm->fe == fe) in dpcm_be_reparent()
1309 dpcm->fe->dai_link->name, in dpcm_be_reparent()
1310 stream ? "<-" : "->", dpcm->be->dai_link->name); in dpcm_be_reparent()
1312 fe_substream = snd_soc_dpcm_get_substream(dpcm->fe, stream); in dpcm_be_reparent()
1321 struct snd_soc_dpcm *dpcm, *d; in dpcm_be_disconnect() local
1327 for_each_dpcm_be_safe(fe, stream, dpcm, d) { in dpcm_be_disconnect()
1330 dpcm->be->dai_link->name); in dpcm_be_disconnect()
1332 if (dpcm->state != SND_SOC_DPCM_LINK_STATE_FREE) in dpcm_be_disconnect()
1337 stream ? "<-" : "->", dpcm->be->dai_link->name); in dpcm_be_disconnect()
1340 dpcm_be_reparent(fe, dpcm->be, stream); in dpcm_be_disconnect()
1342 list_del(&dpcm->list_be); in dpcm_be_disconnect()
1343 list_move(&dpcm->list_fe, &deleted_dpcms); in dpcm_be_disconnect()
1348 dpcm = list_first_entry(&deleted_dpcms, struct snd_soc_dpcm, in dpcm_be_disconnect()
1350 list_del(&dpcm->list_fe); in dpcm_be_disconnect()
1351 dpcm_remove_debugfs_state(dpcm); in dpcm_be_disconnect()
1352 kfree(dpcm); in dpcm_be_disconnect()
1456 static bool dpcm_be_is_active(struct snd_soc_dpcm *dpcm, int stream, in dpcm_be_is_active() argument
1463 for_each_rtd_dais(dpcm->be, i, dai) { in dpcm_be_is_active()
1480 struct snd_soc_dpcm *dpcm; in dpcm_prune_paths() local
1484 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_prune_paths()
1485 if (dpcm_be_is_active(dpcm, stream, *list_)) in dpcm_prune_paths()
1490 dpcm->be->dai_link->name, fe->dai_link->name); in dpcm_prune_paths()
1491 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_prune_paths()
1492 dpcm_set_be_update_state(dpcm->be, stream, SND_SOC_DPCM_UPDATE_BE); in dpcm_prune_paths()
1544 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_NEW) && in dpcm_add_paths()
1545 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_CLOSE)) in dpcm_add_paths()
1581 struct snd_soc_dpcm *dpcm; in dpcm_clear_pending_state() local
1583 for_each_dpcm_be(fe, stream, dpcm) in dpcm_clear_pending_state()
1584 dpcm_set_be_update_state(dpcm->be, stream, SND_SOC_DPCM_UPDATE_NO); in dpcm_clear_pending_state()
1590 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_stop() local
1593 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_stop()
1594 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_stop()
1598 if (dpcm == last) in dpcm_be_dai_stop()
1605 if (be->dpcm[stream].users == 0) { in dpcm_be_dai_stop()
1608 be->dpcm[stream].state); in dpcm_be_dai_stop()
1612 if (--be->dpcm[stream].users != 0) in dpcm_be_dai_stop()
1615 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) { in dpcm_be_dai_stop()
1619 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) { in dpcm_be_dai_stop()
1621 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_be_dai_stop()
1627 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_stop()
1635 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_startup() local
1639 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_startup()
1642 be = dpcm->be; in dpcm_be_dai_startup()
1655 /* first time the dpcm is open ? */ in dpcm_be_dai_startup()
1656 if (be->dpcm[stream].users == DPCM_MAX_BE_USERS) { in dpcm_be_dai_startup()
1659 be->dpcm[stream].state); in dpcm_be_dai_startup()
1663 if (be->dpcm[stream].users++ != 0) in dpcm_be_dai_startup()
1666 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_NEW) && in dpcm_be_dai_startup()
1667 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_CLOSE)) in dpcm_be_dai_startup()
1676 be->dpcm[stream].users--; in dpcm_be_dai_startup()
1677 if (be->dpcm[stream].users < 0) in dpcm_be_dai_startup()
1680 be->dpcm[stream].state); in dpcm_be_dai_startup()
1682 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_startup()
1685 be->dpcm[stream].be_start = 0; in dpcm_be_dai_startup()
1686 be->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in dpcm_be_dai_startup()
1693 dpcm_be_dai_startup_rollback(fe, stream, dpcm); in dpcm_be_dai_startup()
1738 struct snd_soc_dpcm *dpcm; in dpcm_runtime_setup_be_format() local
1750 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_setup_be_format()
1751 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_setup_be_format()
1776 struct snd_soc_dpcm *dpcm; in dpcm_runtime_setup_be_chan() local
1787 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_setup_be_chan()
1788 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_setup_be_chan()
1824 struct snd_soc_dpcm *dpcm; in dpcm_runtime_setup_be_rate() local
1835 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_setup_be_rate()
1836 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_setup_be_rate()
1859 struct snd_soc_dpcm *dpcm; in dpcm_apply_symmetry() local
1876 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_apply_symmetry()
1877 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_apply_symmetry()
1922 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in dpcm_fe_dai_startup()
1961 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_fe_dai_shutdown()
1968 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_hw_free() local
1972 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_hw_free()
1974 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_hw_free()
1987 if (be->dpcm[stream].users > 1) in dpcm_be_dai_hw_free()
1990 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_free()
1991 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && in dpcm_be_dai_hw_free()
1992 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_hw_free()
1993 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED) && in dpcm_be_dai_hw_free()
1994 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_hw_free()
1995 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND)) in dpcm_be_dai_hw_free()
2003 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_be_dai_hw_free()
2024 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_fe_dai_hw_free()
2035 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_hw_params() local
2038 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_hw_params()
2041 be = dpcm->be; in dpcm_be_dai_hw_params()
2048 /* copy params for each dpcm */ in dpcm_be_dai_hw_params()
2049 memcpy(&hw_params, &fe->dpcm[stream].hw_params, in dpcm_be_dai_hw_params()
2058 memcpy(&be->dpcm[stream].hw_params, &hw_params, in dpcm_be_dai_hw_params()
2065 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_be_dai_hw_params()
2066 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_params()
2067 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE)) in dpcm_be_dai_hw_params()
2077 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS; in dpcm_be_dai_hw_params()
2086 for_each_dpcm_be_rollback(fe, stream, dpcm) { in dpcm_be_dai_hw_params()
2087 be = dpcm->be; in dpcm_be_dai_hw_params()
2097 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_be_dai_hw_params()
2098 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_params()
2099 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_hw_params()
2100 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP)) in dpcm_be_dai_hw_params()
2118 memcpy(&fe->dpcm[stream].hw_params, params, in dpcm_fe_dai_hw_params()
2133 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS; in dpcm_fe_dai_hw_params()
2147 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_trigger() local
2151 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_trigger()
2154 be = dpcm->be; in dpcm_be_dai_trigger()
2168 if (!be->dpcm[stream].be_start && in dpcm_be_dai_trigger()
2169 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && in dpcm_be_dai_trigger()
2170 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_trigger()
2171 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2174 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2175 if (be->dpcm[stream].be_start != 1) in dpcm_be_dai_trigger()
2178 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_PAUSED) in dpcm_be_dai_trigger()
2185 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2189 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2192 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND)) in dpcm_be_dai_trigger()
2195 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2196 if (be->dpcm[stream].be_start != 1) in dpcm_be_dai_trigger()
2201 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2205 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2208 if (!be->dpcm[stream].be_start && in dpcm_be_dai_trigger()
2209 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) && in dpcm_be_dai_trigger()
2210 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2213 fe->dpcm[stream].fe_pause = false; in dpcm_be_dai_trigger()
2214 be->dpcm[stream].be_pause--; in dpcm_be_dai_trigger()
2216 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2217 if (be->dpcm[stream].be_start != 1) in dpcm_be_dai_trigger()
2222 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2226 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2229 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) && in dpcm_be_dai_trigger()
2230 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2233 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2234 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2236 if (be->dpcm[stream].be_start != 0) in dpcm_be_dai_trigger()
2240 if (fe->dpcm[stream].fe_pause) { in dpcm_be_dai_trigger()
2242 fe->dpcm[stream].fe_pause = false; in dpcm_be_dai_trigger()
2243 be->dpcm[stream].be_pause--; in dpcm_be_dai_trigger()
2246 if (be->dpcm[stream].be_pause != 0) in dpcm_be_dai_trigger()
2252 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2253 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2255 fe->dpcm[stream].fe_pause = true; in dpcm_be_dai_trigger()
2256 be->dpcm[stream].be_pause++; in dpcm_be_dai_trigger()
2261 if (be->dpcm[stream].be_pause != 0) in dpcm_be_dai_trigger()
2262 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_be_dai_trigger()
2264 be->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in dpcm_be_dai_trigger()
2268 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2271 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2272 if (be->dpcm[stream].be_start != 0) in dpcm_be_dai_trigger()
2277 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2281 be->dpcm[stream].state = SND_SOC_DPCM_STATE_SUSPEND; in dpcm_be_dai_trigger()
2284 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2287 fe->dpcm[stream].fe_pause = true; in dpcm_be_dai_trigger()
2288 be->dpcm[stream].be_pause++; in dpcm_be_dai_trigger()
2290 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2291 if (be->dpcm[stream].be_start != 0) in dpcm_be_dai_trigger()
2296 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2300 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_be_dai_trigger()
2351 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in dpcm_fe_dai_do_trigger()
2415 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_fe_dai_do_trigger()
2419 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in dpcm_fe_dai_do_trigger()
2422 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_fe_dai_do_trigger()
2427 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in dpcm_fe_dai_do_trigger()
2439 if (fe->dpcm[stream].runtime_update != SND_SOC_DPCM_UPDATE_NO) { in dpcm_fe_dai_trigger()
2440 fe->dpcm[stream].trigger_pending = cmd + 1; in dpcm_fe_dai_trigger()
2450 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_prepare() local
2453 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_prepare()
2455 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_prepare()
2466 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_prepare()
2467 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_prepare()
2468 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND) && in dpcm_be_dai_prepare()
2469 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_prepare()
2479 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; in dpcm_be_dai_prepare()
2497 if (list_empty(&fe->dpcm[stream].be_clients)) { in dpcm_fe_dai_prepare()
2516 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; in dpcm_fe_dai_prepare()
2562 struct snd_soc_dpcm *dpcm; in dpcm_run_update_startup() local
2570 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_FREE || in dpcm_run_update_startup()
2571 fe->dpcm[stream].state == SND_SOC_DPCM_STATE_CLOSE) { in dpcm_run_update_startup()
2573 fe->dai_link->name, fe->dpcm[stream].state); in dpcm_run_update_startup()
2584 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_OPEN) in dpcm_run_update_startup()
2592 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_PARAMS) in dpcm_run_update_startup()
2603 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_PREPARE || in dpcm_run_update_startup()
2604 fe->dpcm[stream].state == SND_SOC_DPCM_STATE_STOP) in dpcm_run_update_startup()
2633 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_run_update_startup()
2634 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_run_update_startup()
2640 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_CLOSE || in dpcm_run_update_startup()
2641 be->dpcm[stream].state == SND_SOC_DPCM_STATE_NEW) in dpcm_run_update_startup()
2642 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_run_update_startup()
2668 dev_dbg(fe->dev, "ASoC: DPCM %s runtime update for FE %s\n", in soc_dpcm_fe_runtime_update()
2739 struct snd_soc_dpcm *dpcm; in dpcm_fe_dai_cleanup() local
2745 for_each_dpcm_be(fe, stream, dpcm) in dpcm_fe_dai_cleanup()
2746 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_fe_dai_cleanup()
2802 dev_err(rtd->dev, "DPCM doesn't support Multi CPU for Front-Ends yet\n"); in soc_get_playback_capture()
3021 if (fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) in snd_soc_dpcm_fe_can_update()
3031 if ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) || in snd_soc_dpcm_be_can_update()
3032 ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_BE) && in snd_soc_dpcm_be_can_update()
3033 be->dpcm[stream].runtime_update)) in snd_soc_dpcm_be_can_update()
3053 struct snd_soc_dpcm *dpcm; in snd_soc_dpcm_check_state() local
3058 for_each_dpcm_fe(be, stream, dpcm) { in snd_soc_dpcm_check_state()
3060 if (dpcm->fe == fe) in snd_soc_dpcm_check_state()
3063 state = dpcm->fe->dpcm[stream].state; in snd_soc_dpcm_check_state()