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()
345 /* DPCM stream event, send event to FE and all active BEs. */
349 struct snd_soc_dpcm *dpcm; in dpcm_dapm_stream_event() local
353 for_each_dpcm_be(fe, dir, dpcm) { in dpcm_dapm_stream_event()
355 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_dapm_stream_event()
361 (be->dpcm[dir].users >= 1)) in dpcm_dapm_stream_event()
736 /* PCM close ops for non-DPCM streams */
852 /* PCM open ops for non-DPCM streams */
908 /* PCM prepare ops for non-DPCM streams */
976 /* hw_free PCM ops for non-DPCM streams */
1095 /* hw_params PCM ops for non-DPCM streams */
1228 struct snd_soc_dpcm *dpcm; in dpcm_be_connect() local
1233 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_connect()
1234 if (dpcm->be == be && dpcm->fe == fe) in dpcm_be_connect()
1251 dpcm = kzalloc(sizeof(struct snd_soc_dpcm), GFP_KERNEL); in dpcm_be_connect()
1252 if (!dpcm) in dpcm_be_connect()
1255 dpcm->be = be; in dpcm_be_connect()
1256 dpcm->fe = fe; in dpcm_be_connect()
1257 dpcm->state = SND_SOC_DPCM_LINK_STATE_NEW; in dpcm_be_connect()
1259 list_add(&dpcm->list_be, &fe->dpcm[stream].be_clients); in dpcm_be_connect()
1260 list_add(&dpcm->list_fe, &be->dpcm[stream].fe_clients); in dpcm_be_connect()
1263 dev_dbg(fe->dev, "connected new DPCM %s path %s %s %s\n", in dpcm_be_connect()
1267 dpcm_create_debugfs_state(dpcm, stream); in dpcm_be_connect()
1276 struct snd_soc_dpcm *dpcm; in dpcm_be_reparent() local
1280 if (!be->dpcm[stream].users) in dpcm_be_reparent()
1287 for_each_dpcm_fe(be, stream, dpcm) { in dpcm_be_reparent()
1288 if (dpcm->fe == fe) in dpcm_be_reparent()
1293 dpcm->fe->dai_link->name, in dpcm_be_reparent()
1294 stream ? "<-" : "->", dpcm->be->dai_link->name); in dpcm_be_reparent()
1296 fe_substream = snd_soc_dpcm_get_substream(dpcm->fe, stream); in dpcm_be_reparent()
1305 struct snd_soc_dpcm *dpcm, *d; in dpcm_be_disconnect() local
1311 for_each_dpcm_be_safe(fe, stream, dpcm, d) { in dpcm_be_disconnect()
1314 dpcm->be->dai_link->name); in dpcm_be_disconnect()
1316 if (dpcm->state != SND_SOC_DPCM_LINK_STATE_FREE) in dpcm_be_disconnect()
1321 stream ? "<-" : "->", dpcm->be->dai_link->name); in dpcm_be_disconnect()
1324 dpcm_be_reparent(fe, dpcm->be, stream); in dpcm_be_disconnect()
1326 list_del(&dpcm->list_be); in dpcm_be_disconnect()
1327 list_move(&dpcm->list_fe, &deleted_dpcms); in dpcm_be_disconnect()
1332 dpcm = list_first_entry(&deleted_dpcms, struct snd_soc_dpcm, in dpcm_be_disconnect()
1334 list_del(&dpcm->list_fe); in dpcm_be_disconnect()
1335 dpcm_remove_debugfs_state(dpcm); in dpcm_be_disconnect()
1336 kfree(dpcm); in dpcm_be_disconnect()
1440 static bool dpcm_be_is_active(struct snd_soc_dpcm *dpcm, int stream, in dpcm_be_is_active() argument
1447 for_each_rtd_dais(dpcm->be, i, dai) { in dpcm_be_is_active()
1464 struct snd_soc_dpcm *dpcm; in dpcm_prune_paths() local
1468 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_prune_paths()
1469 if (dpcm_be_is_active(dpcm, stream, *list_)) in dpcm_prune_paths()
1474 dpcm->be->dai_link->name, fe->dai_link->name); in dpcm_prune_paths()
1475 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_prune_paths()
1476 dpcm_set_be_update_state(dpcm->be, stream, SND_SOC_DPCM_UPDATE_BE); in dpcm_prune_paths()
1528 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_NEW) && in dpcm_add_paths()
1529 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_CLOSE)) in dpcm_add_paths()
1565 struct snd_soc_dpcm *dpcm; in dpcm_clear_pending_state() local
1567 for_each_dpcm_be(fe, stream, dpcm) in dpcm_clear_pending_state()
1568 dpcm_set_be_update_state(dpcm->be, stream, SND_SOC_DPCM_UPDATE_NO); in dpcm_clear_pending_state()
1574 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_stop() local
1577 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_stop()
1578 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_stop()
1582 if (dpcm == last) in dpcm_be_dai_stop()
1589 if (be->dpcm[stream].users == 0) { in dpcm_be_dai_stop()
1592 be->dpcm[stream].state); in dpcm_be_dai_stop()
1596 if (--be->dpcm[stream].users != 0) in dpcm_be_dai_stop()
1599 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) { in dpcm_be_dai_stop()
1603 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) { in dpcm_be_dai_stop()
1605 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_be_dai_stop()
1611 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_stop()
1619 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_startup() local
1623 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_startup()
1626 be = dpcm->be; in dpcm_be_dai_startup()
1639 /* first time the dpcm is open ? */ in dpcm_be_dai_startup()
1640 if (be->dpcm[stream].users == DPCM_MAX_BE_USERS) { in dpcm_be_dai_startup()
1643 be->dpcm[stream].state); in dpcm_be_dai_startup()
1647 if (be->dpcm[stream].users++ != 0) in dpcm_be_dai_startup()
1650 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_NEW) && in dpcm_be_dai_startup()
1651 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_CLOSE)) in dpcm_be_dai_startup()
1660 be->dpcm[stream].users--; in dpcm_be_dai_startup()
1661 if (be->dpcm[stream].users < 0) in dpcm_be_dai_startup()
1664 be->dpcm[stream].state); in dpcm_be_dai_startup()
1666 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_startup()
1669 be->dpcm[stream].be_start = 0; in dpcm_be_dai_startup()
1670 be->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in dpcm_be_dai_startup()
1677 dpcm_be_dai_startup_rollback(fe, stream, dpcm); in dpcm_be_dai_startup()
1721 struct snd_soc_dpcm *dpcm; in dpcm_runtime_setup_be_format() local
1733 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_setup_be_format()
1734 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_setup_be_format()
1758 struct snd_soc_dpcm *dpcm; in dpcm_runtime_setup_be_chan() local
1769 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_setup_be_chan()
1770 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_setup_be_chan()
1806 struct snd_soc_dpcm *dpcm; in dpcm_runtime_setup_be_rate() local
1817 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_setup_be_rate()
1818 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_setup_be_rate()
1841 struct snd_soc_dpcm *dpcm; in dpcm_apply_symmetry() local
1858 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_apply_symmetry()
1859 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_apply_symmetry()
1904 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in dpcm_fe_dai_startup()
1943 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_fe_dai_shutdown()
1950 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_hw_free() local
1954 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_hw_free()
1956 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_hw_free()
1969 if (be->dpcm[stream].users > 1) in dpcm_be_dai_hw_free()
1972 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_free()
1973 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && in dpcm_be_dai_hw_free()
1974 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_hw_free()
1975 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED) && in dpcm_be_dai_hw_free()
1976 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_hw_free()
1977 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND)) in dpcm_be_dai_hw_free()
1985 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_be_dai_hw_free()
2006 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_fe_dai_hw_free()
2017 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_hw_params() local
2020 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_hw_params()
2023 be = dpcm->be; in dpcm_be_dai_hw_params()
2030 /* copy params for each dpcm */ in dpcm_be_dai_hw_params()
2031 memcpy(&hw_params, &fe->dpcm[stream].hw_params, in dpcm_be_dai_hw_params()
2040 memcpy(&be->dpcm[stream].hw_params, &hw_params, in dpcm_be_dai_hw_params()
2047 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_be_dai_hw_params()
2048 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_params()
2049 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE)) in dpcm_be_dai_hw_params()
2059 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS; in dpcm_be_dai_hw_params()
2068 for_each_dpcm_be_rollback(fe, stream, dpcm) { in dpcm_be_dai_hw_params()
2069 be = dpcm->be; in dpcm_be_dai_hw_params()
2079 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_be_dai_hw_params()
2080 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_params()
2081 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_hw_params()
2082 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP)) in dpcm_be_dai_hw_params()
2100 memcpy(&fe->dpcm[stream].hw_params, params, in dpcm_fe_dai_hw_params()
2115 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS; in dpcm_fe_dai_hw_params()
2129 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_trigger() local
2133 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_trigger()
2136 be = dpcm->be; in dpcm_be_dai_trigger()
2150 if (!be->dpcm[stream].be_start && in dpcm_be_dai_trigger()
2151 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && in dpcm_be_dai_trigger()
2152 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_trigger()
2153 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2156 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2157 if (be->dpcm[stream].be_start != 1) in dpcm_be_dai_trigger()
2160 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_PAUSED) in dpcm_be_dai_trigger()
2167 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2171 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2174 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND)) in dpcm_be_dai_trigger()
2177 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2178 if (be->dpcm[stream].be_start != 1) in dpcm_be_dai_trigger()
2183 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2187 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2190 if (!be->dpcm[stream].be_start && in dpcm_be_dai_trigger()
2191 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) && in dpcm_be_dai_trigger()
2192 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2195 fe->dpcm[stream].fe_pause = false; in dpcm_be_dai_trigger()
2196 be->dpcm[stream].be_pause--; in dpcm_be_dai_trigger()
2198 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2199 if (be->dpcm[stream].be_start != 1) in dpcm_be_dai_trigger()
2204 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2208 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2211 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) && in dpcm_be_dai_trigger()
2212 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2215 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2216 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2218 if (be->dpcm[stream].be_start != 0) in dpcm_be_dai_trigger()
2222 if (fe->dpcm[stream].fe_pause) { in dpcm_be_dai_trigger()
2224 fe->dpcm[stream].fe_pause = false; in dpcm_be_dai_trigger()
2225 be->dpcm[stream].be_pause--; in dpcm_be_dai_trigger()
2228 if (be->dpcm[stream].be_pause != 0) in dpcm_be_dai_trigger()
2234 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2235 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2237 fe->dpcm[stream].fe_pause = true; in dpcm_be_dai_trigger()
2238 be->dpcm[stream].be_pause++; in dpcm_be_dai_trigger()
2243 if (be->dpcm[stream].be_pause != 0) in dpcm_be_dai_trigger()
2244 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_be_dai_trigger()
2246 be->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in dpcm_be_dai_trigger()
2250 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()
2254 if (be->dpcm[stream].be_start != 0) in dpcm_be_dai_trigger()
2259 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2263 be->dpcm[stream].state = SND_SOC_DPCM_STATE_SUSPEND; in dpcm_be_dai_trigger()
2266 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2269 fe->dpcm[stream].fe_pause = true; in dpcm_be_dai_trigger()
2270 be->dpcm[stream].be_pause++; in dpcm_be_dai_trigger()
2272 be->dpcm[stream].be_start--; in dpcm_be_dai_trigger()
2273 if (be->dpcm[stream].be_start != 0) in dpcm_be_dai_trigger()
2278 be->dpcm[stream].be_start++; in dpcm_be_dai_trigger()
2282 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_be_dai_trigger()
2333 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in dpcm_fe_dai_do_trigger()
2397 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_fe_dai_do_trigger()
2401 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in dpcm_fe_dai_do_trigger()
2404 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_fe_dai_do_trigger()
2409 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in dpcm_fe_dai_do_trigger()
2421 if (fe->dpcm[stream].runtime_update != SND_SOC_DPCM_UPDATE_NO) { in dpcm_fe_dai_trigger()
2422 fe->dpcm[stream].trigger_pending = cmd + 1; in dpcm_fe_dai_trigger()
2432 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_prepare() local
2435 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_prepare()
2437 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_prepare()
2448 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_prepare()
2449 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_prepare()
2450 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND) && in dpcm_be_dai_prepare()
2451 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_prepare()
2461 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; in dpcm_be_dai_prepare()
2479 if (list_empty(&fe->dpcm[stream].be_clients)) { in dpcm_fe_dai_prepare()
2498 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; in dpcm_fe_dai_prepare()
2544 struct snd_soc_dpcm *dpcm; in dpcm_run_update_startup() local
2552 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_FREE || in dpcm_run_update_startup()
2553 fe->dpcm[stream].state == SND_SOC_DPCM_STATE_CLOSE) { in dpcm_run_update_startup()
2555 fe->dai_link->name, fe->dpcm[stream].state); in dpcm_run_update_startup()
2566 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_OPEN) in dpcm_run_update_startup()
2574 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_PARAMS) in dpcm_run_update_startup()
2585 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_PREPARE || in dpcm_run_update_startup()
2586 fe->dpcm[stream].state == SND_SOC_DPCM_STATE_STOP) in dpcm_run_update_startup()
2615 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_run_update_startup()
2616 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_run_update_startup()
2622 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_CLOSE || in dpcm_run_update_startup()
2623 be->dpcm[stream].state == SND_SOC_DPCM_STATE_NEW) in dpcm_run_update_startup()
2624 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_run_update_startup()
2650 dev_dbg(fe->dev, "ASoC: DPCM %s runtime update for FE %s\n", in soc_dpcm_fe_runtime_update()
2721 struct snd_soc_dpcm *dpcm; in dpcm_fe_dai_cleanup() local
2727 for_each_dpcm_be(fe, stream, dpcm) in dpcm_fe_dai_cleanup()
2728 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_fe_dai_cleanup()
2784 dev_err(rtd->dev, "DPCM doesn't support Multi CPU for Front-Ends yet\n"); in soc_get_playback_capture()
3018 if (fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) in snd_soc_dpcm_fe_can_update()
3028 if ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) || in snd_soc_dpcm_be_can_update()
3029 ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_BE) && in snd_soc_dpcm_be_can_update()
3030 be->dpcm[stream].runtime_update)) in snd_soc_dpcm_be_can_update()
3050 struct snd_soc_dpcm *dpcm; in snd_soc_dpcm_check_state() local
3055 for_each_dpcm_fe(be, stream, dpcm) { in snd_soc_dpcm_check_state()
3057 if (dpcm->fe == fe) in snd_soc_dpcm_check_state()
3060 state = dpcm->fe->dpcm[stream].state; in snd_soc_dpcm_check_state()