Lines Matching refs:dpcm
40 struct snd_soc_dpcm *dpcm; in dpcm_dapm_stream_event() local
42 list_for_each_entry(dpcm, &fe->dpcm[dir].be_clients, list_be) { in dpcm_dapm_stream_event()
44 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_dapm_stream_event()
701 struct snd_soc_dpcm *dpcm; in dpcm_be_connect() local
704 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) { in dpcm_be_connect()
705 if (dpcm->be == be && dpcm->fe == fe) in dpcm_be_connect()
709 dpcm = kzalloc(sizeof(struct snd_soc_dpcm), GFP_KERNEL); in dpcm_be_connect()
710 if (!dpcm) in dpcm_be_connect()
713 dpcm->be = be; in dpcm_be_connect()
714 dpcm->fe = fe; in dpcm_be_connect()
715 be->dpcm[stream].runtime = fe->dpcm[stream].runtime; in dpcm_be_connect()
716 dpcm->state = SND_SOC_DPCM_LINK_STATE_NEW; in dpcm_be_connect()
717 list_add(&dpcm->list_be, &fe->dpcm[stream].be_clients); in dpcm_be_connect()
718 list_add(&dpcm->list_fe, &be->dpcm[stream].fe_clients); in dpcm_be_connect()
725 dpcm->debugfs_state = debugfs_create_u32(be->dai_link->name, 0644, in dpcm_be_connect()
726 fe->debugfs_dpcm_root, &dpcm->state); in dpcm_be_connect()
735 struct snd_soc_dpcm *dpcm; in dpcm_be_reparent() local
739 if (!be->dpcm[stream].users) in dpcm_be_reparent()
744 list_for_each_entry(dpcm, &be->dpcm[stream].fe_clients, list_fe) { in dpcm_be_reparent()
745 if (dpcm->fe == fe) in dpcm_be_reparent()
750 dpcm->fe->dai_link->name, in dpcm_be_reparent()
751 stream ? "<-" : "->", dpcm->be->dai_link->name); in dpcm_be_reparent()
753 fe_substream = snd_soc_dpcm_get_substream(dpcm->fe, stream); in dpcm_be_reparent()
762 struct snd_soc_dpcm *dpcm, *d; in dpcm_be_disconnect() local
764 list_for_each_entry_safe(dpcm, d, &fe->dpcm[stream].be_clients, list_be) { in dpcm_be_disconnect()
767 dpcm->be->dai_link->name); in dpcm_be_disconnect()
769 if (dpcm->state != SND_SOC_DPCM_LINK_STATE_FREE) in dpcm_be_disconnect()
774 stream ? "<-" : "->", dpcm->be->dai_link->name); in dpcm_be_disconnect()
777 dpcm_be_reparent(fe, dpcm->be, stream); in dpcm_be_disconnect()
780 debugfs_remove(dpcm->debugfs_state); in dpcm_be_disconnect()
782 list_del(&dpcm->list_be); in dpcm_be_disconnect()
783 list_del(&dpcm->list_fe); in dpcm_be_disconnect()
784 kfree(dpcm); in dpcm_be_disconnect()
886 struct snd_soc_dpcm *dpcm; in dpcm_prune_paths() local
892 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) { in dpcm_prune_paths()
895 widget = rtd_get_cpu_widget(dpcm->be, stream); in dpcm_prune_paths()
902 widget = rtd_get_codec_widget(dpcm->be, stream); in dpcm_prune_paths()
910 dpcm->be->dai_link->name, fe->dai_link->name); in dpcm_prune_paths()
911 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_prune_paths()
912 dpcm->be->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_BE; in dpcm_prune_paths()
952 if (!fe->dpcm[stream].runtime) in dpcm_add_paths()
965 be->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_BE; in dpcm_add_paths()
988 struct snd_soc_dpcm *dpcm; in dpcm_clear_pending_state() local
990 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) in dpcm_clear_pending_state()
991 dpcm->be->dpcm[stream].runtime_update = in dpcm_clear_pending_state()
998 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_startup_unwind() local
1001 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) { in dpcm_be_dai_startup_unwind()
1003 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_startup_unwind()
1007 if (be->dpcm[stream].users == 0) in dpcm_be_dai_startup_unwind()
1010 be->dpcm[stream].state); in dpcm_be_dai_startup_unwind()
1012 if (--be->dpcm[stream].users != 0) in dpcm_be_dai_startup_unwind()
1015 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) in dpcm_be_dai_startup_unwind()
1020 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_startup_unwind()
1026 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_startup() local
1030 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) { in dpcm_be_dai_startup()
1032 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_startup()
1041 if (be->dpcm[stream].users == DPCM_MAX_BE_USERS) in dpcm_be_dai_startup()
1044 be->dpcm[stream].state); in dpcm_be_dai_startup()
1046 if (be->dpcm[stream].users++ != 0) in dpcm_be_dai_startup()
1049 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_NEW) && in dpcm_be_dai_startup()
1050 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_CLOSE)) in dpcm_be_dai_startup()
1055 be_substream->runtime = be->dpcm[stream].runtime; in dpcm_be_dai_startup()
1059 be->dpcm[stream].users--; in dpcm_be_dai_startup()
1060 if (be->dpcm[stream].users < 0) in dpcm_be_dai_startup()
1063 be->dpcm[stream].state); in dpcm_be_dai_startup()
1065 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_startup()
1069 be->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in dpcm_be_dai_startup()
1077 list_for_each_entry_continue_reverse(dpcm, &fe->dpcm[stream].be_clients, list_be) { in dpcm_be_dai_startup()
1078 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_startup()
1085 if (be->dpcm[stream].users == 0) in dpcm_be_dai_startup()
1088 be->dpcm[stream].state); in dpcm_be_dai_startup()
1090 if (--be->dpcm[stream].users != 0) in dpcm_be_dai_startup()
1093 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) in dpcm_be_dai_startup()
1098 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_startup()
1134 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in dpcm_fe_dai_startup()
1151 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in dpcm_fe_dai_startup()
1156 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in dpcm_fe_dai_startup()
1162 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in dpcm_fe_dai_startup()
1168 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_shutdown() local
1171 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) { in dpcm_be_dai_shutdown()
1173 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_shutdown()
1181 if (be->dpcm[stream].users == 0) in dpcm_be_dai_shutdown()
1184 be->dpcm[stream].state); in dpcm_be_dai_shutdown()
1186 if (--be->dpcm[stream].users != 0) in dpcm_be_dai_shutdown()
1189 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_shutdown()
1190 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN)) in dpcm_be_dai_shutdown()
1194 dpcm->fe->dai_link->name); in dpcm_be_dai_shutdown()
1199 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_shutdown()
1209 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in dpcm_fe_dai_shutdown()
1222 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_fe_dai_shutdown()
1223 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in dpcm_fe_dai_shutdown()
1229 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_hw_free() local
1233 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) { in dpcm_be_dai_hw_free()
1235 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_hw_free()
1247 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_free()
1248 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && in dpcm_be_dai_hw_free()
1249 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_hw_free()
1250 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED) && in dpcm_be_dai_hw_free()
1251 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP)) in dpcm_be_dai_hw_free()
1255 dpcm->fe->dai_link->name); in dpcm_be_dai_hw_free()
1259 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_be_dai_hw_free()
1271 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in dpcm_fe_dai_hw_free()
1285 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_fe_dai_hw_free()
1286 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in dpcm_fe_dai_hw_free()
1294 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_hw_params() local
1297 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) { in dpcm_be_dai_hw_params()
1299 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_hw_params()
1311 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_be_dai_hw_params()
1312 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_params()
1313 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE)) in dpcm_be_dai_hw_params()
1317 dpcm->fe->dai_link->name); in dpcm_be_dai_hw_params()
1320 memcpy(&dpcm->hw_params, &fe->dpcm[stream].hw_params, in dpcm_be_dai_hw_params()
1326 &dpcm->hw_params); in dpcm_be_dai_hw_params()
1335 ret = soc_pcm_hw_params(be_substream, &dpcm->hw_params); in dpcm_be_dai_hw_params()
1337 dev_err(dpcm->be->dev, in dpcm_be_dai_hw_params()
1342 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS; in dpcm_be_dai_hw_params()
1348 list_for_each_entry_continue_reverse(dpcm, &fe->dpcm[stream].be_clients, list_be) { in dpcm_be_dai_hw_params()
1349 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_hw_params()
1360 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_be_dai_hw_params()
1361 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_params()
1362 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_hw_params()
1363 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP)) in dpcm_be_dai_hw_params()
1379 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in dpcm_fe_dai_hw_params()
1381 memcpy(&fe->dpcm[substream->stream].hw_params, params, in dpcm_fe_dai_hw_params()
1399 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS; in dpcm_fe_dai_hw_params()
1402 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in dpcm_fe_dai_hw_params()
1407 static int dpcm_do_trigger(struct snd_soc_dpcm *dpcm, in dpcm_do_trigger() argument
1412 dev_dbg(dpcm->be->dev, "ASoC: trigger BE %s cmd %d\n", in dpcm_do_trigger()
1413 dpcm->fe->dai_link->name, cmd); in dpcm_do_trigger()
1417 dev_err(dpcm->be->dev,"ASoC: trigger BE failed %d\n", ret); in dpcm_do_trigger()
1425 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_trigger() local
1428 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) { in dpcm_be_dai_trigger()
1430 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_trigger()
1440 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && in dpcm_be_dai_trigger()
1441 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP)) in dpcm_be_dai_trigger()
1444 ret = dpcm_do_trigger(dpcm, be_substream, cmd); in dpcm_be_dai_trigger()
1448 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
1451 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND)) in dpcm_be_dai_trigger()
1454 ret = dpcm_do_trigger(dpcm, be_substream, cmd); in dpcm_be_dai_trigger()
1458 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
1461 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
1464 ret = dpcm_do_trigger(dpcm, be_substream, cmd); in dpcm_be_dai_trigger()
1468 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
1471 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
1477 ret = dpcm_do_trigger(dpcm, be_substream, cmd); in dpcm_be_dai_trigger()
1481 be->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in dpcm_be_dai_trigger()
1484 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) in dpcm_be_dai_trigger()
1490 ret = dpcm_do_trigger(dpcm, be_substream, cmd); in dpcm_be_dai_trigger()
1494 be->dpcm[stream].state = SND_SOC_DPCM_STATE_SUSPEND; in dpcm_be_dai_trigger()
1497 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
1503 ret = dpcm_do_trigger(dpcm, be_substream, cmd); in dpcm_be_dai_trigger()
1507 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_be_dai_trigger()
1522 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in dpcm_fe_dai_trigger()
1576 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_fe_dai_trigger()
1581 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in dpcm_fe_dai_trigger()
1586 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in dpcm_fe_dai_trigger()
1592 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_prepare() local
1595 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) { in dpcm_be_dai_prepare()
1597 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_prepare()
1605 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_prepare()
1606 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP)) in dpcm_be_dai_prepare()
1610 dpcm->fe->dai_link->name); in dpcm_be_dai_prepare()
1619 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; in dpcm_be_dai_prepare()
1633 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in dpcm_fe_dai_prepare()
1636 if (list_empty(&fe->dpcm[stream].be_clients)) { in dpcm_fe_dai_prepare()
1657 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; in dpcm_fe_dai_prepare()
1660 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in dpcm_fe_dai_prepare()
1722 struct snd_soc_dpcm *dpcm; in dpcm_run_update_startup() local
1730 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_FREE || in dpcm_run_update_startup()
1731 fe->dpcm[stream].state == SND_SOC_DPCM_STATE_CLOSE) in dpcm_run_update_startup()
1740 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_OPEN) in dpcm_run_update_startup()
1748 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_PARAMS) in dpcm_run_update_startup()
1760 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_PREPARE || in dpcm_run_update_startup()
1761 fe->dpcm[stream].state == SND_SOC_DPCM_STATE_STOP) in dpcm_run_update_startup()
1794 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) { in dpcm_run_update_startup()
1795 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_run_update_startup()
1796 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) in dpcm_run_update_startup()
1797 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_run_update_startup()
1807 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_BE; in dpcm_run_new_update()
1811 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in dpcm_run_new_update()
1820 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_BE; in dpcm_run_old_update()
1824 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in dpcm_run_old_update()
1926 struct snd_soc_dpcm *dpcm; in soc_dpcm_be_digital_mute() local
1928 &fe->dpcm[SNDRV_PCM_STREAM_PLAYBACK].be_clients; in soc_dpcm_be_digital_mute()
1930 list_for_each_entry(dpcm, clients, list_be) { in soc_dpcm_be_digital_mute()
1932 struct snd_soc_pcm_runtime *be = dpcm->be; in soc_dpcm_be_digital_mute()
1951 struct snd_soc_dpcm *dpcm; in dpcm_fe_dai_open() local
1957 fe->dpcm[stream].runtime = fe_substream->runtime; in dpcm_fe_dai_open()
1970 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) in dpcm_fe_dai_open()
1971 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_fe_dai_open()
1974 fe->dpcm[stream].runtime = NULL; in dpcm_fe_dai_open()
1986 struct snd_soc_dpcm *dpcm; in dpcm_fe_dai_close() local
1993 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) in dpcm_fe_dai_close()
1994 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_fe_dai_close()
1998 fe->dpcm[stream].runtime = NULL; in dpcm_fe_dai_close()
2121 if (fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) in snd_soc_dpcm_fe_can_update()
2131 if ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) || in snd_soc_dpcm_be_can_update()
2132 ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_BE) && in snd_soc_dpcm_be_can_update()
2133 be->dpcm[stream].runtime_update)) in snd_soc_dpcm_be_can_update()
2151 return be->dpcm[stream].state; in snd_soc_dpcm_be_get_state()
2159 be->dpcm[stream].state = state; in snd_soc_dpcm_be_set_state()
2170 struct snd_soc_dpcm *dpcm; in snd_soc_dpcm_can_be_free_stop() local
2173 list_for_each_entry(dpcm, &be->dpcm[stream].fe_clients, list_fe) { in snd_soc_dpcm_can_be_free_stop()
2175 if (dpcm->fe == fe) in snd_soc_dpcm_can_be_free_stop()
2178 state = dpcm->fe->dpcm[stream].state; in snd_soc_dpcm_can_be_free_stop()
2197 struct snd_soc_dpcm *dpcm; in snd_soc_dpcm_can_be_params() local
2200 list_for_each_entry(dpcm, &be->dpcm[stream].fe_clients, list_fe) { in snd_soc_dpcm_can_be_params()
2202 if (dpcm->fe == fe) in snd_soc_dpcm_can_be_params()
2205 state = dpcm->fe->dpcm[stream].state; in snd_soc_dpcm_can_be_params()
2259 struct snd_pcm_hw_params *params = &fe->dpcm[stream].hw_params; in dpcm_show_state()
2260 struct snd_soc_dpcm *dpcm; in dpcm_show_state() local
2269 dpcm_state_string(fe->dpcm[stream].state)); in dpcm_show_state()
2271 if ((fe->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_show_state()
2272 (fe->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) in dpcm_show_state()
2283 if (list_empty(&fe->dpcm[stream].be_clients)) { in dpcm_show_state()
2289 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) { in dpcm_show_state()
2290 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_show_state()
2291 params = &dpcm->hw_params; in dpcm_show_state()
2298 dpcm_state_string(be->dpcm[stream].state)); in dpcm_show_state()
2300 if ((be->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_show_state()
2301 (be->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) in dpcm_show_state()