Lines Matching full:dpcm

25 #include <sound/soc-dpcm.h>
112 struct snd_pcm_hw_params *params = &fe->dpcm[stream].hw_params; in dpcm_show_state()
113 struct snd_soc_dpcm *dpcm; in dpcm_show_state() local
122 dpcm_state_string(fe->dpcm[stream].state)); in dpcm_show_state()
124 if ((fe->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_show_state()
125 (fe->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) in dpcm_show_state()
136 if (list_empty(&fe->dpcm[stream].be_clients)) { in dpcm_show_state()
142 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_show_state()
143 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_show_state()
144 params = &be->dpcm[stream].hw_params; in dpcm_show_state()
151 dpcm_state_string(be->dpcm[stream].state)); in dpcm_show_state()
153 if ((be->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_show_state()
154 (be->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) in dpcm_show_state()
219 static void dpcm_create_debugfs_state(struct snd_soc_dpcm *dpcm, int stream) in dpcm_create_debugfs_state() argument
223 name = kasprintf(GFP_KERNEL, "%s:%s", dpcm->be->dai_link->name, in dpcm_create_debugfs_state()
226 dpcm->debugfs_state = debugfs_create_dir( in dpcm_create_debugfs_state()
227 name, dpcm->fe->debugfs_dpcm_root); in dpcm_create_debugfs_state()
228 debugfs_create_u32("state", 0644, dpcm->debugfs_state, in dpcm_create_debugfs_state()
229 &dpcm->state); in dpcm_create_debugfs_state()
234 static void dpcm_remove_debugfs_state(struct snd_soc_dpcm *dpcm) in dpcm_remove_debugfs_state() argument
236 debugfs_remove_recursive(dpcm->debugfs_state); in dpcm_remove_debugfs_state()
240 static inline void dpcm_create_debugfs_state(struct snd_soc_dpcm *dpcm, in dpcm_create_debugfs_state() argument
245 static inline void dpcm_remove_debugfs_state(struct snd_soc_dpcm *dpcm) in dpcm_remove_debugfs_state() argument
263 if (state == SND_SOC_DPCM_UPDATE_NO && fe->dpcm[stream].trigger_pending) { in dpcm_set_fe_update_state()
265 fe->dpcm[stream].trigger_pending - 1); in dpcm_set_fe_update_state()
266 fe->dpcm[stream].trigger_pending = 0; in dpcm_set_fe_update_state()
268 fe->dpcm[stream].runtime_update = state; in dpcm_set_fe_update_state()
275 be->dpcm[stream].runtime_update = state; in dpcm_set_be_update_state()
344 /* DPCM stream event, send event to FE and all active BEs. */
348 struct snd_soc_dpcm *dpcm; in dpcm_dapm_stream_event() local
352 for_each_dpcm_be(fe, dir, dpcm) { in dpcm_dapm_stream_event()
354 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_dapm_stream_event()
360 (be->dpcm[dir].users >= 1)) in dpcm_dapm_stream_event()
735 /* PCM close ops for non-DPCM streams */
851 /* PCM open ops for non-DPCM streams */
913 /* PCM prepare ops for non-DPCM streams */
988 /* hw_free PCM ops for non-DPCM streams */
1107 /* hw_params PCM ops for non-DPCM streams */
1240 struct snd_soc_dpcm *dpcm; in dpcm_be_connect() local
1245 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_connect()
1246 if (dpcm->be == be && dpcm->fe == fe) in dpcm_be_connect()
1263 dpcm = kzalloc(sizeof(struct snd_soc_dpcm), GFP_KERNEL); in dpcm_be_connect()
1264 if (!dpcm) in dpcm_be_connect()
1267 dpcm->be = be; in dpcm_be_connect()
1268 dpcm->fe = fe; in dpcm_be_connect()
1269 dpcm->state = SND_SOC_DPCM_LINK_STATE_NEW; in dpcm_be_connect()
1271 list_add(&dpcm->list_be, &fe->dpcm[stream].be_clients); in dpcm_be_connect()
1272 list_add(&dpcm->list_fe, &be->dpcm[stream].fe_clients); in dpcm_be_connect()
1275 dev_dbg(fe->dev, "connected new DPCM %s path %s %s %s\n", in dpcm_be_connect()
1279 dpcm_create_debugfs_state(dpcm, stream); in dpcm_be_connect()
1288 struct snd_soc_dpcm *dpcm; in dpcm_be_reparent() local
1292 if (!be->dpcm[stream].users) in dpcm_be_reparent()
1299 for_each_dpcm_fe(be, stream, dpcm) { in dpcm_be_reparent()
1300 if (dpcm->fe == fe) in dpcm_be_reparent()
1305 dpcm->fe->dai_link->name, in dpcm_be_reparent()
1306 stream ? "<-" : "->", dpcm->be->dai_link->name); in dpcm_be_reparent()
1308 fe_substream = snd_soc_dpcm_get_substream(dpcm->fe, stream); in dpcm_be_reparent()
1317 struct snd_soc_dpcm *dpcm, *d; in dpcm_be_disconnect() local
1323 for_each_dpcm_be_safe(fe, stream, dpcm, d) { in dpcm_be_disconnect()
1326 dpcm->be->dai_link->name); in dpcm_be_disconnect()
1328 if (dpcm->state != SND_SOC_DPCM_LINK_STATE_FREE) in dpcm_be_disconnect()
1333 stream ? "<-" : "->", dpcm->be->dai_link->name); in dpcm_be_disconnect()
1336 dpcm_be_reparent(fe, dpcm->be, stream); in dpcm_be_disconnect()
1338 list_del(&dpcm->list_be); in dpcm_be_disconnect()
1339 list_move(&dpcm->list_fe, &deleted_dpcms); in dpcm_be_disconnect()
1344 dpcm = list_first_entry(&deleted_dpcms, struct snd_soc_dpcm, in dpcm_be_disconnect()
1346 list_del(&dpcm->list_fe); in dpcm_be_disconnect()
1347 dpcm_remove_debugfs_state(dpcm); in dpcm_be_disconnect()
1348 kfree(dpcm); in dpcm_be_disconnect()
1452 static bool dpcm_be_is_active(struct snd_soc_dpcm *dpcm, int stream, in dpcm_be_is_active() argument
1459 for_each_rtd_dais(dpcm->be, i, dai) { in dpcm_be_is_active()
1476 struct snd_soc_dpcm *dpcm; in dpcm_prune_paths() local
1480 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_prune_paths()
1481 if (dpcm_be_is_active(dpcm, stream, *list_)) in dpcm_prune_paths()
1486 dpcm->be->dai_link->name, fe->dai_link->name); in dpcm_prune_paths()
1487 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_prune_paths()
1488 dpcm_set_be_update_state(dpcm->be, stream, SND_SOC_DPCM_UPDATE_BE); in dpcm_prune_paths()
1540 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_NEW) && in dpcm_add_paths()
1541 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_CLOSE)) in dpcm_add_paths()
1577 struct snd_soc_dpcm *dpcm; in dpcm_clear_pending_state() local
1579 for_each_dpcm_be(fe, stream, dpcm) in dpcm_clear_pending_state()
1580 dpcm_set_be_update_state(dpcm->be, stream, SND_SOC_DPCM_UPDATE_NO); in dpcm_clear_pending_state()
1586 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_stop() local
1589 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_stop()
1590 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_stop()
1594 if (dpcm == last) in dpcm_be_dai_stop()
1601 if (be->dpcm[stream].users == 0) { in dpcm_be_dai_stop()
1604 be->dpcm[stream].state); in dpcm_be_dai_stop()
1608 if (--be->dpcm[stream].users != 0) in dpcm_be_dai_stop()
1611 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) { in dpcm_be_dai_stop()
1615 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) { in dpcm_be_dai_stop()
1617 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_be_dai_stop()
1623 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_stop()
1631 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_startup() local
1635 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_startup()
1638 be = dpcm->be; in dpcm_be_dai_startup()
1651 /* first time the dpcm is open ? */ in dpcm_be_dai_startup()
1652 if (be->dpcm[stream].users == DPCM_MAX_BE_USERS) { in dpcm_be_dai_startup()
1655 be->dpcm[stream].state); in dpcm_be_dai_startup()
1659 if (be->dpcm[stream].users++ != 0) in dpcm_be_dai_startup()
1662 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_NEW) && in dpcm_be_dai_startup()
1663 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_CLOSE)) in dpcm_be_dai_startup()
1672 be->dpcm[stream].users--; in dpcm_be_dai_startup()
1673 if (be->dpcm[stream].users < 0) in dpcm_be_dai_startup()
1676 be->dpcm[stream].state); in dpcm_be_dai_startup()
1678 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_startup()
1681 be->dpcm[stream].be_start = 0; in dpcm_be_dai_startup()
1682 be->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in dpcm_be_dai_startup()
1689 dpcm_be_dai_startup_rollback(fe, stream, dpcm); in dpcm_be_dai_startup()
1733 struct snd_soc_dpcm *dpcm; in dpcm_runtime_setup_be_format() local
1745 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_setup_be_format()
1746 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_setup_be_format()
1770 struct snd_soc_dpcm *dpcm; in dpcm_runtime_setup_be_chan() local
1781 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_setup_be_chan()
1782 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_setup_be_chan()
1818 struct snd_soc_dpcm *dpcm; in dpcm_runtime_setup_be_rate() local
1829 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_setup_be_rate()
1830 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_setup_be_rate()
1853 struct snd_soc_dpcm *dpcm; in dpcm_apply_symmetry() local
1870 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_apply_symmetry()
1871 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_apply_symmetry()
1916 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in dpcm_fe_dai_startup()
1955 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_fe_dai_shutdown()
1962 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_hw_free() local
1966 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_hw_free()
1968 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_hw_free()
1981 if (be->dpcm[stream].users > 1) in dpcm_be_dai_hw_free()
1984 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_free()
1985 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && in dpcm_be_dai_hw_free()
1986 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_hw_free()
1987 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED) && in dpcm_be_dai_hw_free()
1988 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_hw_free()
1989 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND)) in dpcm_be_dai_hw_free()
1997 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_be_dai_hw_free()
2018 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_fe_dai_hw_free()
2029 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_hw_params() local
2032 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_hw_params()
2035 be = dpcm->be; in dpcm_be_dai_hw_params()
2042 /* copy params for each dpcm */ in dpcm_be_dai_hw_params()
2043 memcpy(&hw_params, &fe->dpcm[stream].hw_params, in dpcm_be_dai_hw_params()
2052 memcpy(&be->dpcm[stream].hw_params, &hw_params, in dpcm_be_dai_hw_params()
2059 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_be_dai_hw_params()
2060 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_params()
2061 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE)) in dpcm_be_dai_hw_params()
2071 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS; in dpcm_be_dai_hw_params()
2080 for_each_dpcm_be_rollback(fe, stream, dpcm) { in dpcm_be_dai_hw_params()
2081 be = dpcm->be; in dpcm_be_dai_hw_params()
2091 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_be_dai_hw_params()
2092 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_params()
2093 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_hw_params()
2094 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP)) in dpcm_be_dai_hw_params()
2112 memcpy(&fe->dpcm[stream].hw_params, params, in dpcm_fe_dai_hw_params()
2127 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS; in dpcm_fe_dai_hw_params()
2141 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_trigger() local
2145 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_trigger()
2148 be = dpcm->be; in dpcm_be_dai_trigger()
2162 if (!be->dpcm[stream].be_start && in dpcm_be_dai_trigger()
2163 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && in dpcm_be_dai_trigger()
2164 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_trigger()
2165 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2168 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2169 if (be->dpcm[stream].be_start != 1) in dpcm_be_dai_trigger()
2172 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_PAUSED) in dpcm_be_dai_trigger()
2179 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2183 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2186 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND)) in dpcm_be_dai_trigger()
2189 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2190 if (be->dpcm[stream].be_start != 1) in dpcm_be_dai_trigger()
2195 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2199 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; 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_START) && in dpcm_be_dai_trigger()
2204 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2207 fe->dpcm[stream].fe_pause = false; in dpcm_be_dai_trigger()
2208 be->dpcm[stream].be_pause--; in dpcm_be_dai_trigger()
2210 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2211 if (be->dpcm[stream].be_start != 1) in dpcm_be_dai_trigger()
2216 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2220 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2223 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) && in dpcm_be_dai_trigger()
2224 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2227 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2228 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2230 if (be->dpcm[stream].be_start != 0) in dpcm_be_dai_trigger()
2234 if (fe->dpcm[stream].fe_pause) { in dpcm_be_dai_trigger()
2236 fe->dpcm[stream].fe_pause = false; in dpcm_be_dai_trigger()
2237 be->dpcm[stream].be_pause--; in dpcm_be_dai_trigger()
2240 if (be->dpcm[stream].be_pause != 0) in dpcm_be_dai_trigger()
2246 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2247 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2249 fe->dpcm[stream].fe_pause = true; in dpcm_be_dai_trigger()
2250 be->dpcm[stream].be_pause++; in dpcm_be_dai_trigger()
2255 if (be->dpcm[stream].be_pause != 0) in dpcm_be_dai_trigger()
2256 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_be_dai_trigger()
2258 be->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in dpcm_be_dai_trigger()
2262 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2265 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2266 if (be->dpcm[stream].be_start != 0) in dpcm_be_dai_trigger()
2271 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2275 be->dpcm[stream].state = SND_SOC_DPCM_STATE_SUSPEND; in dpcm_be_dai_trigger()
2278 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2281 fe->dpcm[stream].fe_pause = true; in dpcm_be_dai_trigger()
2282 be->dpcm[stream].be_pause++; in dpcm_be_dai_trigger()
2284 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2285 if (be->dpcm[stream].be_start != 0) in dpcm_be_dai_trigger()
2290 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2294 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_be_dai_trigger()
2345 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in dpcm_fe_dai_do_trigger()
2409 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_fe_dai_do_trigger()
2413 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in dpcm_fe_dai_do_trigger()
2416 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_fe_dai_do_trigger()
2421 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in dpcm_fe_dai_do_trigger()
2433 if (fe->dpcm[stream].runtime_update != SND_SOC_DPCM_UPDATE_NO) { in dpcm_fe_dai_trigger()
2434 fe->dpcm[stream].trigger_pending = cmd + 1; in dpcm_fe_dai_trigger()
2444 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_prepare() local
2447 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_prepare()
2449 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_prepare()
2460 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_prepare()
2461 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_prepare()
2462 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND) && in dpcm_be_dai_prepare()
2463 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_prepare()
2473 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()
2568 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, 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()
2639 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_run_update_startup()
2640 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_run_update_startup()
2646 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_CLOSE || in dpcm_run_update_startup()
2647 be->dpcm[stream].state == SND_SOC_DPCM_STATE_NEW) in dpcm_run_update_startup()
2648 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_run_update_startup()
2674 dev_dbg(fe->dev, "ASoC: DPCM %s runtime update for FE %s\n", in soc_dpcm_fe_runtime_update()
2745 struct snd_soc_dpcm *dpcm; in dpcm_fe_dai_cleanup() local
2751 for_each_dpcm_be(fe, stream, dpcm) in dpcm_fe_dai_cleanup()
2752 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_fe_dai_cleanup()
2808 dev_err(rtd->dev, "DPCM doesn't support Multi CPU for Front-Ends yet\n"); in soc_get_playback_capture()
3042 if (fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) in snd_soc_dpcm_fe_can_update()
3052 if ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) || in snd_soc_dpcm_be_can_update()
3053 ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_BE) && in snd_soc_dpcm_be_can_update()
3054 be->dpcm[stream].runtime_update)) in snd_soc_dpcm_be_can_update()
3074 struct snd_soc_dpcm *dpcm; in snd_soc_dpcm_check_state() local
3079 for_each_dpcm_fe(be, stream, dpcm) { in snd_soc_dpcm_check_state()
3081 if (dpcm->fe == fe) in snd_soc_dpcm_check_state()
3084 state = dpcm->fe->dpcm[stream].state; in snd_soc_dpcm_check_state()