• Home
  • Raw
  • Download

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()
1541 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_NEW) && in dpcm_add_paths()
1542 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_add_paths()
1543 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_add_paths()
1544 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_CLOSE)) in dpcm_add_paths()
1580 struct snd_soc_dpcm *dpcm; in dpcm_clear_pending_state() local
1582 for_each_dpcm_be(fe, stream, dpcm) in dpcm_clear_pending_state()
1583 dpcm_set_be_update_state(dpcm->be, stream, SND_SOC_DPCM_UPDATE_NO); in dpcm_clear_pending_state()
1589 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_stop() local
1592 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_stop()
1593 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_stop()
1597 if (dpcm == last) in dpcm_be_dai_stop()
1604 if (be->dpcm[stream].users == 0) { in dpcm_be_dai_stop()
1607 be->dpcm[stream].state); in dpcm_be_dai_stop()
1611 if (--be->dpcm[stream].users != 0) in dpcm_be_dai_stop()
1614 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) { in dpcm_be_dai_stop()
1618 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) { in dpcm_be_dai_stop()
1620 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_be_dai_stop()
1626 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_stop()
1634 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_startup() local
1638 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_startup()
1641 be = dpcm->be; in dpcm_be_dai_startup()
1654 /* first time the dpcm is open ? */ in dpcm_be_dai_startup()
1655 if (be->dpcm[stream].users == DPCM_MAX_BE_USERS) { in dpcm_be_dai_startup()
1658 be->dpcm[stream].state); in dpcm_be_dai_startup()
1662 if (be->dpcm[stream].users++ != 0) in dpcm_be_dai_startup()
1665 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_NEW) && in dpcm_be_dai_startup()
1666 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_CLOSE)) in dpcm_be_dai_startup()
1675 be->dpcm[stream].users--; in dpcm_be_dai_startup()
1676 if (be->dpcm[stream].users < 0) in dpcm_be_dai_startup()
1679 be->dpcm[stream].state); in dpcm_be_dai_startup()
1681 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_startup()
1684 be->dpcm[stream].be_start = 0; in dpcm_be_dai_startup()
1685 be->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in dpcm_be_dai_startup()
1692 dpcm_be_dai_startup_rollback(fe, stream, dpcm); in dpcm_be_dai_startup()
1736 struct snd_soc_dpcm *dpcm; in dpcm_runtime_setup_be_format() local
1748 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_setup_be_format()
1749 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_setup_be_format()
1773 struct snd_soc_dpcm *dpcm; in dpcm_runtime_setup_be_chan() local
1784 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_setup_be_chan()
1785 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_setup_be_chan()
1821 struct snd_soc_dpcm *dpcm; in dpcm_runtime_setup_be_rate() local
1832 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_setup_be_rate()
1833 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_setup_be_rate()
1856 struct snd_soc_dpcm *dpcm; in dpcm_apply_symmetry() local
1873 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_apply_symmetry()
1874 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_apply_symmetry()
1919 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in dpcm_fe_dai_startup()
1958 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_fe_dai_shutdown()
1965 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_hw_free() local
1969 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_hw_free()
1971 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_hw_free()
1984 if (be->dpcm[stream].users > 1) in dpcm_be_dai_hw_free()
1987 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_free()
1988 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && in dpcm_be_dai_hw_free()
1989 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_hw_free()
1990 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED) && in dpcm_be_dai_hw_free()
1991 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_hw_free()
1992 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND)) in dpcm_be_dai_hw_free()
2000 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_be_dai_hw_free()
2021 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_fe_dai_hw_free()
2032 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_hw_params() local
2035 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_hw_params()
2038 be = dpcm->be; in dpcm_be_dai_hw_params()
2045 /* copy params for each dpcm */ in dpcm_be_dai_hw_params()
2046 memcpy(&hw_params, &fe->dpcm[stream].hw_params, in dpcm_be_dai_hw_params()
2055 memcpy(&be->dpcm[stream].hw_params, &hw_params, in dpcm_be_dai_hw_params()
2062 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_be_dai_hw_params()
2063 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_params()
2064 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE)) in dpcm_be_dai_hw_params()
2074 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS; in dpcm_be_dai_hw_params()
2083 for_each_dpcm_be_rollback(fe, stream, dpcm) { in dpcm_be_dai_hw_params()
2084 be = dpcm->be; in dpcm_be_dai_hw_params()
2094 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_be_dai_hw_params()
2095 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_params()
2096 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_hw_params()
2097 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP)) in dpcm_be_dai_hw_params()
2115 memcpy(&fe->dpcm[stream].hw_params, params, in dpcm_fe_dai_hw_params()
2130 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS; in dpcm_fe_dai_hw_params()
2144 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_trigger() local
2148 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_trigger()
2151 be = dpcm->be; in dpcm_be_dai_trigger()
2165 if (!be->dpcm[stream].be_start && in dpcm_be_dai_trigger()
2166 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && in dpcm_be_dai_trigger()
2167 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_trigger()
2168 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2171 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2172 if (be->dpcm[stream].be_start != 1) in dpcm_be_dai_trigger()
2175 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_PAUSED) in dpcm_be_dai_trigger()
2182 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2186 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2189 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND)) in dpcm_be_dai_trigger()
2192 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2193 if (be->dpcm[stream].be_start != 1) in dpcm_be_dai_trigger()
2198 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2202 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2205 if (!be->dpcm[stream].be_start && in dpcm_be_dai_trigger()
2206 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) && in dpcm_be_dai_trigger()
2207 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2210 fe->dpcm[stream].fe_pause = false; in dpcm_be_dai_trigger()
2211 be->dpcm[stream].be_pause--; in dpcm_be_dai_trigger()
2213 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2214 if (be->dpcm[stream].be_start != 1) 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_START) && in dpcm_be_dai_trigger()
2227 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2230 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2231 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2233 if (be->dpcm[stream].be_start != 0) in dpcm_be_dai_trigger()
2237 if (fe->dpcm[stream].fe_pause) { in dpcm_be_dai_trigger()
2239 fe->dpcm[stream].fe_pause = false; in dpcm_be_dai_trigger()
2240 be->dpcm[stream].be_pause--; in dpcm_be_dai_trigger()
2243 if (be->dpcm[stream].be_pause != 0) in dpcm_be_dai_trigger()
2249 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2250 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2252 fe->dpcm[stream].fe_pause = true; in dpcm_be_dai_trigger()
2253 be->dpcm[stream].be_pause++; in dpcm_be_dai_trigger()
2258 if (be->dpcm[stream].be_pause != 0) in dpcm_be_dai_trigger()
2259 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_be_dai_trigger()
2261 be->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in dpcm_be_dai_trigger()
2265 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()
2269 if (be->dpcm[stream].be_start != 0) in dpcm_be_dai_trigger()
2274 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2278 be->dpcm[stream].state = SND_SOC_DPCM_STATE_SUSPEND; in dpcm_be_dai_trigger()
2281 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2284 fe->dpcm[stream].fe_pause = true; in dpcm_be_dai_trigger()
2285 be->dpcm[stream].be_pause++; in dpcm_be_dai_trigger()
2287 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2288 if (be->dpcm[stream].be_start != 0) in dpcm_be_dai_trigger()
2293 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2297 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_be_dai_trigger()
2348 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in dpcm_fe_dai_do_trigger()
2412 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_fe_dai_do_trigger()
2416 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in dpcm_fe_dai_do_trigger()
2419 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_fe_dai_do_trigger()
2424 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in dpcm_fe_dai_do_trigger()
2436 if (fe->dpcm[stream].runtime_update != SND_SOC_DPCM_UPDATE_NO) { in dpcm_fe_dai_trigger()
2437 fe->dpcm[stream].trigger_pending = cmd + 1; in dpcm_fe_dai_trigger()
2447 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_prepare() local
2450 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_prepare()
2452 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_prepare()
2463 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_prepare()
2464 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_prepare()
2465 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND) && in dpcm_be_dai_prepare()
2466 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_prepare()
2476 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; in dpcm_be_dai_prepare()
2500 if (list_empty(&fe->dpcm[stream].be_clients)) { in dpcm_fe_dai_prepare()
2519 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; in dpcm_fe_dai_prepare()
2571 struct snd_soc_dpcm *dpcm; in dpcm_run_update_startup() local
2579 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_FREE || in dpcm_run_update_startup()
2580 fe->dpcm[stream].state == SND_SOC_DPCM_STATE_CLOSE) { in dpcm_run_update_startup()
2582 fe->dai_link->name, fe->dpcm[stream].state); in dpcm_run_update_startup()
2593 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_OPEN) in dpcm_run_update_startup()
2601 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_PARAMS) in dpcm_run_update_startup()
2612 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_PREPARE || in dpcm_run_update_startup()
2613 fe->dpcm[stream].state == SND_SOC_DPCM_STATE_STOP) in dpcm_run_update_startup()
2642 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_run_update_startup()
2643 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_run_update_startup()
2649 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_CLOSE || in dpcm_run_update_startup()
2650 be->dpcm[stream].state == SND_SOC_DPCM_STATE_NEW) in dpcm_run_update_startup()
2651 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_run_update_startup()
2677 dev_dbg(fe->dev, "ASoC: DPCM %s runtime update for FE %s\n", in soc_dpcm_fe_runtime_update()
2748 struct snd_soc_dpcm *dpcm; in dpcm_fe_dai_cleanup() local
2754 for_each_dpcm_be(fe, stream, dpcm) in dpcm_fe_dai_cleanup()
2755 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_fe_dai_cleanup()
2811 dev_err(rtd->dev, "DPCM doesn't support Multi CPU for Front-Ends yet\n"); in soc_get_playback_capture()
3045 if (fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) in snd_soc_dpcm_fe_can_update()
3055 if ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) || in snd_soc_dpcm_be_can_update()
3056 ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_BE) && in snd_soc_dpcm_be_can_update()
3057 be->dpcm[stream].runtime_update)) in snd_soc_dpcm_be_can_update()
3077 struct snd_soc_dpcm *dpcm; in snd_soc_dpcm_check_state() local
3082 for_each_dpcm_fe(be, stream, dpcm) { in snd_soc_dpcm_check_state()
3084 if (dpcm->fe == fe) in snd_soc_dpcm_check_state()
3087 state = dpcm->fe->dpcm[stream].state; in snd_soc_dpcm_check_state()