• Home
  • Raw
  • Download

Lines Matching refs:dpcm

181 	struct snd_soc_dpcm *dpcm;  in dpcm_dapm_stream_event()  local
183 for_each_dpcm_be(fe, dir, dpcm) { in dpcm_dapm_stream_event()
185 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_dapm_stream_event()
191 (be->dpcm[dir].users >= 1)) in dpcm_dapm_stream_event()
1202 struct snd_soc_dpcm *dpcm; in dpcm_be_connect() local
1209 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_connect()
1210 if (dpcm->be == be && dpcm->fe == fe) in dpcm_be_connect()
1214 dpcm = kzalloc(sizeof(struct snd_soc_dpcm), GFP_KERNEL); in dpcm_be_connect()
1215 if (!dpcm) in dpcm_be_connect()
1218 dpcm->be = be; in dpcm_be_connect()
1219 dpcm->fe = fe; in dpcm_be_connect()
1220 be->dpcm[stream].runtime = fe->dpcm[stream].runtime; in dpcm_be_connect()
1221 dpcm->state = SND_SOC_DPCM_LINK_STATE_NEW; in dpcm_be_connect()
1223 list_add(&dpcm->list_be, &fe->dpcm[stream].be_clients); in dpcm_be_connect()
1224 list_add(&dpcm->list_fe, &be->dpcm[stream].fe_clients); in dpcm_be_connect()
1235 dpcm->debugfs_state = debugfs_create_dir(name, in dpcm_be_connect()
1237 debugfs_create_u32("state", 0644, dpcm->debugfs_state, in dpcm_be_connect()
1238 &dpcm->state); in dpcm_be_connect()
1249 struct snd_soc_dpcm *dpcm; in dpcm_be_reparent() local
1253 if (!be->dpcm[stream].users) in dpcm_be_reparent()
1260 for_each_dpcm_fe(be, stream, dpcm) { in dpcm_be_reparent()
1261 if (dpcm->fe == fe) in dpcm_be_reparent()
1266 dpcm->fe->dai_link->name, in dpcm_be_reparent()
1267 stream ? "<-" : "->", dpcm->be->dai_link->name); in dpcm_be_reparent()
1269 fe_substream = snd_soc_dpcm_get_substream(dpcm->fe, stream); in dpcm_be_reparent()
1278 struct snd_soc_dpcm *dpcm, *d; in dpcm_be_disconnect() local
1281 for_each_dpcm_be_safe(fe, stream, dpcm, d) { in dpcm_be_disconnect()
1284 dpcm->be->dai_link->name); in dpcm_be_disconnect()
1286 if (dpcm->state != SND_SOC_DPCM_LINK_STATE_FREE) in dpcm_be_disconnect()
1291 stream ? "<-" : "->", dpcm->be->dai_link->name); in dpcm_be_disconnect()
1294 dpcm_be_reparent(fe, dpcm->be, stream); in dpcm_be_disconnect()
1297 debugfs_remove_recursive(dpcm->debugfs_state); in dpcm_be_disconnect()
1300 list_del(&dpcm->list_be); in dpcm_be_disconnect()
1301 list_del(&dpcm->list_fe); in dpcm_be_disconnect()
1303 kfree(dpcm); in dpcm_be_disconnect()
1442 struct snd_soc_dpcm *dpcm; in dpcm_prune_paths() local
1450 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_prune_paths()
1454 widget = dai_get_widget(dpcm->be->cpu_dai, stream); in dpcm_prune_paths()
1462 for_each_rtd_codec_dai(dpcm->be, i, dai) { 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->be->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_BE; in dpcm_prune_paths()
1521 if (!fe->dpcm[stream].runtime && !fe->fe_compr) in dpcm_add_paths()
1534 be->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_BE; in dpcm_add_paths()
1557 struct snd_soc_dpcm *dpcm; in dpcm_clear_pending_state() local
1561 for_each_dpcm_be(fe, stream, dpcm) in dpcm_clear_pending_state()
1562 dpcm->be->dpcm[stream].runtime_update = in dpcm_clear_pending_state()
1570 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_startup_unwind() local
1573 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_startup_unwind()
1575 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_startup_unwind()
1579 if (be->dpcm[stream].users == 0) in dpcm_be_dai_startup_unwind()
1582 be->dpcm[stream].state); in dpcm_be_dai_startup_unwind()
1584 if (--be->dpcm[stream].users != 0) in dpcm_be_dai_startup_unwind()
1587 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) in dpcm_be_dai_startup_unwind()
1592 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_startup_unwind()
1598 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_startup() local
1602 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_startup()
1604 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_startup()
1619 if (be->dpcm[stream].users == DPCM_MAX_BE_USERS) in dpcm_be_dai_startup()
1622 be->dpcm[stream].state); in dpcm_be_dai_startup()
1624 if (be->dpcm[stream].users++ != 0) in dpcm_be_dai_startup()
1627 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_NEW) && in dpcm_be_dai_startup()
1628 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_CLOSE)) in dpcm_be_dai_startup()
1634 be_substream->runtime = be->dpcm[stream].runtime; in dpcm_be_dai_startup()
1638 be->dpcm[stream].users--; in dpcm_be_dai_startup()
1639 if (be->dpcm[stream].users < 0) in dpcm_be_dai_startup()
1642 be->dpcm[stream].state); in dpcm_be_dai_startup()
1644 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_startup()
1648 be->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in dpcm_be_dai_startup()
1656 for_each_dpcm_be_rollback(fe, stream, dpcm) { in dpcm_be_dai_startup()
1657 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_startup()
1664 if (be->dpcm[stream].users == 0) in dpcm_be_dai_startup()
1667 be->dpcm[stream].state); in dpcm_be_dai_startup()
1669 if (--be->dpcm[stream].users != 0) in dpcm_be_dai_startup()
1672 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) in dpcm_be_dai_startup()
1677 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_startup()
1701 struct snd_soc_dpcm *dpcm; in dpcm_runtime_merge_format() local
1713 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_merge_format()
1714 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_merge_format()
1743 struct snd_soc_dpcm *dpcm; in dpcm_runtime_merge_chan() local
1754 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_merge_chan()
1755 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_merge_chan()
1795 struct snd_soc_dpcm *dpcm; in dpcm_runtime_merge_rate() local
1806 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_runtime_merge_rate()
1807 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_merge_rate()
1880 if (state == SND_SOC_DPCM_UPDATE_NO && fe->dpcm[stream].trigger_pending) { in dpcm_set_fe_update_state()
1882 fe->dpcm[stream].trigger_pending - 1); in dpcm_set_fe_update_state()
1883 fe->dpcm[stream].trigger_pending = 0; in dpcm_set_fe_update_state()
1885 fe->dpcm[stream].runtime_update = state; in dpcm_set_fe_update_state()
1892 struct snd_soc_dpcm *dpcm; in dpcm_apply_symmetry() local
1909 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_apply_symmetry()
1910 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_apply_symmetry()
1972 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in dpcm_fe_dai_startup()
1996 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_shutdown() local
1999 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_shutdown()
2001 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_shutdown()
2009 if (be->dpcm[stream].users == 0) in dpcm_be_dai_shutdown()
2012 be->dpcm[stream].state); in dpcm_be_dai_shutdown()
2014 if (--be->dpcm[stream].users != 0) in dpcm_be_dai_shutdown()
2017 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_shutdown()
2018 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN)) { in dpcm_be_dai_shutdown()
2020 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_be_dai_shutdown()
2029 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_shutdown()
2052 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_fe_dai_shutdown()
2059 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_hw_free() local
2063 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_hw_free()
2065 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_hw_free()
2078 if (be->dpcm[stream].users > 1) in dpcm_be_dai_hw_free()
2081 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_free()
2082 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && in dpcm_be_dai_hw_free()
2083 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_hw_free()
2084 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED) && in dpcm_be_dai_hw_free()
2085 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_hw_free()
2086 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND)) in dpcm_be_dai_hw_free()
2094 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_be_dai_hw_free()
2120 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_fe_dai_hw_free()
2129 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_hw_params() local
2132 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_hw_params()
2134 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_hw_params()
2143 memcpy(&dpcm->hw_params, &fe->dpcm[stream].hw_params, in dpcm_be_dai_hw_params()
2149 &dpcm->hw_params); in dpcm_be_dai_hw_params()
2159 memcpy(&be->dpcm[stream].hw_params, &dpcm->hw_params, in dpcm_be_dai_hw_params()
2166 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_be_dai_hw_params()
2167 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_params()
2168 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE)) in dpcm_be_dai_hw_params()
2174 ret = soc_pcm_hw_params(be_substream, &dpcm->hw_params); in dpcm_be_dai_hw_params()
2176 dev_err(dpcm->be->dev, in dpcm_be_dai_hw_params()
2181 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS; in dpcm_be_dai_hw_params()
2187 for_each_dpcm_be_rollback(fe, stream, dpcm) { in dpcm_be_dai_hw_params()
2188 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_hw_params()
2199 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_be_dai_hw_params()
2200 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_params()
2201 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_hw_params()
2202 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP)) in dpcm_be_dai_hw_params()
2220 memcpy(&fe->dpcm[substream->stream].hw_params, params, in dpcm_fe_dai_hw_params()
2238 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS; in dpcm_fe_dai_hw_params()
2246 static int dpcm_do_trigger(struct snd_soc_dpcm *dpcm, in dpcm_do_trigger() argument
2251 dev_dbg(dpcm->be->dev, "ASoC: trigger BE %s cmd %d\n", in dpcm_do_trigger()
2252 dpcm->be->dai_link->name, cmd); in dpcm_do_trigger()
2256 dev_err(dpcm->be->dev,"ASoC: trigger BE failed %d\n", ret); in dpcm_do_trigger()
2264 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_trigger() local
2267 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_trigger()
2269 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_trigger()
2279 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && in dpcm_be_dai_trigger()
2280 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_trigger()
2281 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2284 ret = dpcm_do_trigger(dpcm, be_substream, cmd); in dpcm_be_dai_trigger()
2288 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2291 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND)) in dpcm_be_dai_trigger()
2294 ret = dpcm_do_trigger(dpcm, be_substream, cmd); in dpcm_be_dai_trigger()
2298 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2301 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2304 ret = dpcm_do_trigger(dpcm, be_substream, cmd); in dpcm_be_dai_trigger()
2308 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2311 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) && in dpcm_be_dai_trigger()
2312 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2318 ret = dpcm_do_trigger(dpcm, be_substream, cmd); in dpcm_be_dai_trigger()
2322 be->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in dpcm_be_dai_trigger()
2325 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2331 ret = dpcm_do_trigger(dpcm, be_substream, cmd); in dpcm_be_dai_trigger()
2335 be->dpcm[stream].state = SND_SOC_DPCM_STATE_SUSPEND; in dpcm_be_dai_trigger()
2338 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2344 ret = dpcm_do_trigger(dpcm, be_substream, cmd); in dpcm_be_dai_trigger()
2348 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_be_dai_trigger()
2396 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in dpcm_fe_dai_do_trigger()
2460 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_fe_dai_do_trigger()
2464 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in dpcm_fe_dai_do_trigger()
2467 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_fe_dai_do_trigger()
2472 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in dpcm_fe_dai_do_trigger()
2484 if (fe->dpcm[stream].runtime_update != SND_SOC_DPCM_UPDATE_NO) { in dpcm_fe_dai_trigger()
2485 fe->dpcm[stream].trigger_pending = cmd + 1; in dpcm_fe_dai_trigger()
2495 struct snd_soc_dpcm *dpcm; in dpcm_be_dai_prepare() local
2498 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_be_dai_prepare()
2500 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_prepare()
2508 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_prepare()
2509 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_prepare()
2510 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND) && in dpcm_be_dai_prepare()
2511 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_prepare()
2524 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; in dpcm_be_dai_prepare()
2541 if (list_empty(&fe->dpcm[stream].be_clients)) { in dpcm_fe_dai_prepare()
2562 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; in dpcm_fe_dai_prepare()
2616 struct snd_soc_dpcm *dpcm; in dpcm_run_update_startup() local
2625 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_FREE || in dpcm_run_update_startup()
2626 fe->dpcm[stream].state == SND_SOC_DPCM_STATE_CLOSE) in dpcm_run_update_startup()
2635 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_OPEN) in dpcm_run_update_startup()
2643 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_PARAMS) in dpcm_run_update_startup()
2655 if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_PREPARE || in dpcm_run_update_startup()
2656 fe->dpcm[stream].state == SND_SOC_DPCM_STATE_STOP) in dpcm_run_update_startup()
2690 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_run_update_startup()
2691 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_run_update_startup()
2692 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) in dpcm_run_update_startup()
2693 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_run_update_startup()
2835 struct snd_soc_dpcm *dpcm; in soc_dpcm_be_digital_mute() local
2838 for_each_dpcm_be(fe, SNDRV_PCM_STREAM_PLAYBACK, dpcm) { in soc_dpcm_be_digital_mute()
2840 struct snd_soc_pcm_runtime *be = dpcm->be; in soc_dpcm_be_digital_mute()
2864 struct snd_soc_dpcm *dpcm; in dpcm_fe_dai_open() local
2870 fe->dpcm[stream].runtime = fe_substream->runtime; in dpcm_fe_dai_open()
2887 for_each_dpcm_be(fe, stream, dpcm) in dpcm_fe_dai_open()
2888 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_fe_dai_open()
2891 fe->dpcm[stream].runtime = NULL; in dpcm_fe_dai_open()
2903 struct snd_soc_dpcm *dpcm; in dpcm_fe_dai_close() local
2910 for_each_dpcm_be(fe, stream, dpcm) in dpcm_fe_dai_close()
2911 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_fe_dai_close()
2915 fe->dpcm[stream].runtime = NULL; in dpcm_fe_dai_close()
3101 if (fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) in snd_soc_dpcm_fe_can_update()
3111 if ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) || in snd_soc_dpcm_be_can_update()
3112 ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_BE) && in snd_soc_dpcm_be_can_update()
3113 be->dpcm[stream].runtime_update)) in snd_soc_dpcm_be_can_update()
3131 return be->dpcm[stream].state; in snd_soc_dpcm_be_get_state()
3139 be->dpcm[stream].state = state; in snd_soc_dpcm_be_set_state()
3150 struct snd_soc_dpcm *dpcm; in snd_soc_dpcm_can_be_free_stop() local
3156 for_each_dpcm_fe(be, stream, dpcm) { in snd_soc_dpcm_can_be_free_stop()
3158 if (dpcm->fe == fe) in snd_soc_dpcm_can_be_free_stop()
3161 state = dpcm->fe->dpcm[stream].state; in snd_soc_dpcm_can_be_free_stop()
3183 struct snd_soc_dpcm *dpcm; in snd_soc_dpcm_can_be_params() local
3189 for_each_dpcm_fe(be, stream, dpcm) { in snd_soc_dpcm_can_be_params()
3191 if (dpcm->fe == fe) in snd_soc_dpcm_can_be_params()
3194 state = dpcm->fe->dpcm[stream].state; in snd_soc_dpcm_can_be_params()
3242 struct snd_pcm_hw_params *params = &fe->dpcm[stream].hw_params; in dpcm_show_state()
3243 struct snd_soc_dpcm *dpcm; in dpcm_show_state() local
3253 dpcm_state_string(fe->dpcm[stream].state)); in dpcm_show_state()
3255 if ((fe->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_show_state()
3256 (fe->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) in dpcm_show_state()
3267 if (list_empty(&fe->dpcm[stream].be_clients)) { in dpcm_show_state()
3274 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_show_state()
3275 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_show_state()
3276 params = &dpcm->hw_params; in dpcm_show_state()
3283 dpcm_state_string(be->dpcm[stream].state)); in dpcm_show_state()
3285 if ((be->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_show_state()
3286 (be->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) in dpcm_show_state()