Lines Matching full:be
98 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_show_state() local
102 "- %s\n", be->dai_link->name); in dpcm_show_state()
106 dpcm_state_string(be->dpcm[stream].state)); in dpcm_show_state()
108 if ((be->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_show_state()
109 (be->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) in dpcm_show_state()
180 name = kasprintf(GFP_KERNEL, "%s:%s", dpcm->be->dai_link->name, in dpcm_create_debugfs_state()
216 * Should typically be called when a stream is opened.
218 * Must be called with the rtd->card->pcm_mutex being held
235 * @rtd: The ASoC PCM runtime that should be checked.
237 * This function checks whether the power down delay should be ignored for a
288 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_dapm_stream_event() local
290 dev_dbg(be->dev, "ASoC: BE %s event %d dir %d\n", in dpcm_dapm_stream_event()
291 be->dai_link->name, event, dir); in dpcm_dapm_stream_event()
294 (be->dpcm[dir].users >= 1)) in dpcm_dapm_stream_event()
297 snd_soc_dapm_stream_event(be, dir, event); in dpcm_dapm_stream_event()
567 * chan min/max cannot be enforced if there are multiple CODEC DAIs in snd_soc_runtime_calc_hw()
569 * channel allocation be fixed up later in snd_soc_runtime_calc_hw()
601 * have bailed out on a higher level, since there would be no CPU or in soc_pcm_init_runtime_hw()
681 * Called by ALSA when a PCM substream is closed. Private data can be
692 * then initialized and any private data can be allocated. This also calls
805 * rate, etc. This function is non atomic and can be called multiple times,
861 * function can also be called multiple times and can allocate buffers
889 * set up transfer direction, it should not need to be in soc_pcm_hw_params()
891 * not even be supported by that CODEC. There may be cases in soc_pcm_hw_params()
892 * however where a CODEC needs to be set up although it is in soc_pcm_hw_params()
991 * Frees resources allocated by hw_params, can be called multiple times
1001 /* clear the corresponding DAIs parameters when going to be inactive */ in soc_pcm_hw_free()
1072 * the runtime->delay will be updated accordingly.
1111 /* connect a FE and BE */
1113 struct snd_soc_pcm_runtime *be, int stream) in dpcm_be_connect() argument
1120 if (dpcm->be == be && dpcm->fe == fe) in dpcm_be_connect()
1128 dpcm->be = be; in dpcm_be_connect()
1130 be->dpcm[stream].runtime = fe->dpcm[stream].runtime; in dpcm_be_connect()
1134 list_add(&dpcm->list_fe, &be->dpcm[stream].fe_clients); in dpcm_be_connect()
1139 stream ? "<-" : "->", be->dai_link->name); in dpcm_be_connect()
1146 /* reparent a BE onto another FE */
1148 struct snd_soc_pcm_runtime *be, int stream) in dpcm_be_reparent() argument
1153 /* reparent if BE is connected to other FEs */ in dpcm_be_reparent()
1154 if (!be->dpcm[stream].users) in dpcm_be_reparent()
1157 be_substream = snd_soc_dpcm_get_substream(be, stream); in dpcm_be_reparent()
1161 for_each_dpcm_fe(be, stream, dpcm) { in dpcm_be_reparent()
1168 stream ? "<-" : "->", dpcm->be->dai_link->name); in dpcm_be_reparent()
1176 /* disconnect a BE and FE */
1183 dev_dbg(fe->dev, "ASoC: BE %s disconnect check for %s\n", in dpcm_be_disconnect()
1185 dpcm->be->dai_link->name); in dpcm_be_disconnect()
1192 stream ? "<-" : "->", dpcm->be->dai_link->name); in dpcm_be_disconnect()
1195 dpcm_be_reparent(fe, dpcm->be, stream); in dpcm_be_disconnect()
1207 /* get BE for DAI widget and stream */
1211 struct snd_soc_pcm_runtime *be; in dpcm_get_be() local
1216 dev_dbg(card->dev, "ASoC: find BE for widget %s\n", widget->name); in dpcm_get_be()
1218 for_each_card_rtds(card, be) { in dpcm_get_be()
1220 if (!be->dai_link->no_pcm) in dpcm_get_be()
1223 for_each_rtd_dais(be, i, dai) { in dpcm_get_be()
1226 dev_dbg(card->dev, "ASoC: try BE : %s\n", in dpcm_get_be()
1230 return be; in dpcm_get_be()
1234 /* Widget provided is not a BE */ in dpcm_get_be()
1308 /* is there a valid DAI widget for this BE */ in dpcm_be_is_active()
1309 for_each_rtd_dais(dpcm->be, i, dai) { in dpcm_be_is_active()
1313 * The BE is pruned only if none of the dai in dpcm_be_is_active()
1329 /* Destroy any old FE <--> BE connections */ in dpcm_prune_paths()
1334 dev_dbg(fe->dev, "ASoC: pruning %s BE %s for %s\n", in dpcm_prune_paths()
1336 dpcm->be->dai_link->name, fe->dai_link->name); in dpcm_prune_paths()
1338 dpcm->be->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_BE; in dpcm_prune_paths()
1342 dev_dbg(fe->dev, "ASoC: found %d old BE paths for pruning\n", prune); in dpcm_prune_paths()
1351 struct snd_soc_pcm_runtime *be; in dpcm_add_paths() local
1355 /* Create any new FE <--> BE connections */ in dpcm_add_paths()
1371 /* is there a valid BE rtd for this widget */ in dpcm_add_paths()
1372 be = dpcm_get_be(card, widget, stream); in dpcm_add_paths()
1373 if (!be) { in dpcm_add_paths()
1374 dev_err(fe->dev, "ASoC: no BE found for %s\n", in dpcm_add_paths()
1383 /* newly connected FE and BE */ in dpcm_add_paths()
1384 err = dpcm_be_connect(fe, be, stream); in dpcm_add_paths()
1393 be->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_BE; in dpcm_add_paths()
1397 dev_dbg(fe->dev, "ASoC: found %d new BE paths\n", new); in dpcm_add_paths()
1402 * Find the corresponding BE DAIs that source or sink audio to this
1421 dpcm->be->dpcm[stream].runtime_update = in dpcm_clear_pending_state()
1434 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_startup_unwind() local
1436 snd_soc_dpcm_get_substream(be, stream); in dpcm_be_dai_startup_unwind()
1438 if (be->dpcm[stream].users == 0) in dpcm_be_dai_startup_unwind()
1439 dev_err(be->dev, "ASoC: no users %s at close - state %d\n", in dpcm_be_dai_startup_unwind()
1441 be->dpcm[stream].state); in dpcm_be_dai_startup_unwind()
1443 if (--be->dpcm[stream].users != 0) in dpcm_be_dai_startup_unwind()
1446 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) in dpcm_be_dai_startup_unwind()
1451 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_startup_unwind()
1460 /* only startup BE DAIs that are either sinks or sources to this FE DAI */ in dpcm_be_dai_startup()
1463 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_startup() local
1465 snd_soc_dpcm_get_substream(be, stream); in dpcm_be_dai_startup()
1468 dev_err(be->dev, "ASoC: no backend %s stream\n", in dpcm_be_dai_startup()
1473 /* is this op for this BE ? */ in dpcm_be_dai_startup()
1474 if (!snd_soc_dpcm_be_can_update(fe, be, stream)) in dpcm_be_dai_startup()
1478 if (be->dpcm[stream].users == DPCM_MAX_BE_USERS) in dpcm_be_dai_startup()
1479 dev_err(be->dev, "ASoC: too many users %s at open %d\n", in dpcm_be_dai_startup()
1481 be->dpcm[stream].state); in dpcm_be_dai_startup()
1483 if (be->dpcm[stream].users++ != 0) in dpcm_be_dai_startup()
1486 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_NEW) && in dpcm_be_dai_startup()
1487 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_CLOSE)) in dpcm_be_dai_startup()
1490 dev_dbg(be->dev, "ASoC: open %s BE %s\n", in dpcm_be_dai_startup()
1491 stream ? "capture" : "playback", be->dai_link->name); in dpcm_be_dai_startup()
1493 be_substream->runtime = be->dpcm[stream].runtime; in dpcm_be_dai_startup()
1496 dev_err(be->dev, "ASoC: BE open failed %d\n", err); in dpcm_be_dai_startup()
1497 be->dpcm[stream].users--; in dpcm_be_dai_startup()
1498 if (be->dpcm[stream].users < 0) in dpcm_be_dai_startup()
1499 dev_err(be->dev, "ASoC: no users %s at unwind %d\n", in dpcm_be_dai_startup()
1501 be->dpcm[stream].state); in dpcm_be_dai_startup()
1503 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_startup()
1507 be->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in dpcm_be_dai_startup()
1516 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_startup() local
1518 snd_soc_dpcm_get_substream(be, stream); in dpcm_be_dai_startup()
1520 if (!snd_soc_dpcm_be_can_update(fe, be, stream)) in dpcm_be_dai_startup()
1523 if (be->dpcm[stream].users == 0) in dpcm_be_dai_startup()
1524 dev_err(be->dev, "ASoC: no users %s at close %d\n", in dpcm_be_dai_startup()
1526 be->dpcm[stream].state); in dpcm_be_dai_startup()
1528 if (--be->dpcm[stream].users != 0) in dpcm_be_dai_startup()
1531 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) in dpcm_be_dai_startup()
1536 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_startup()
1568 * It returns merged BE codec format in dpcm_runtime_merge_format()
1573 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_merge_format() local
1577 for_each_rtd_codec_dais(be, i, dai) { in dpcm_runtime_merge_format()
1604 * It returns merged BE codec channel; in dpcm_runtime_merge_chan()
1609 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_merge_chan() local
1615 for_each_rtd_cpu_dais(be, i, dai) { in dpcm_runtime_merge_chan()
1632 * chan min/max cannot be enforced if there are multiple CODEC in dpcm_runtime_merge_chan()
1635 if (be->num_codecs == 1) { in dpcm_runtime_merge_chan()
1636 codec_stream = snd_soc_dai_get_pcm_stream(asoc_rtd_to_codec(be, 0), stream); in dpcm_runtime_merge_chan()
1659 * It returns merged BE codec channel; in dpcm_runtime_merge_rate()
1664 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_runtime_merge_rate() local
1669 for_each_rtd_dais(be, i, dai) { in dpcm_runtime_merge_rate()
1758 /* apply symmetry for BE */ in dpcm_apply_symmetry()
1760 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_apply_symmetry() local
1762 snd_soc_dpcm_get_substream(be, stream); in dpcm_apply_symmetry()
1839 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_shutdown() local
1841 snd_soc_dpcm_get_substream(be, stream); in dpcm_be_dai_shutdown()
1843 /* is this op for this BE ? */ in dpcm_be_dai_shutdown()
1844 if (!snd_soc_dpcm_be_can_update(fe, be, stream)) in dpcm_be_dai_shutdown()
1847 if (be->dpcm[stream].users == 0) in dpcm_be_dai_shutdown()
1848 dev_err(be->dev, "ASoC: no users %s at close - state %d\n", in dpcm_be_dai_shutdown()
1850 be->dpcm[stream].state); in dpcm_be_dai_shutdown()
1852 if (--be->dpcm[stream].users != 0) in dpcm_be_dai_shutdown()
1855 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_shutdown()
1856 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN)) { in dpcm_be_dai_shutdown()
1858 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_be_dai_shutdown()
1861 dev_dbg(be->dev, "ASoC: close BE %s\n", in dpcm_be_dai_shutdown()
1862 be->dai_link->name); in dpcm_be_dai_shutdown()
1867 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_shutdown()
1887 /* run the stream event for each BE */ in dpcm_fe_dai_shutdown()
1903 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_hw_free() local
1905 snd_soc_dpcm_get_substream(be, stream); in dpcm_be_dai_hw_free()
1907 /* is this op for this BE ? */ in dpcm_be_dai_hw_free()
1908 if (!snd_soc_dpcm_be_can_update(fe, be, stream)) in dpcm_be_dai_hw_free()
1912 if (!snd_soc_dpcm_can_be_free_stop(fe, be, stream)) in dpcm_be_dai_hw_free()
1915 /* do not free hw if this BE is used by other FE */ in dpcm_be_dai_hw_free()
1916 if (be->dpcm[stream].users > 1) in dpcm_be_dai_hw_free()
1919 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_free()
1920 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && in dpcm_be_dai_hw_free()
1921 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_hw_free()
1922 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED) && in dpcm_be_dai_hw_free()
1923 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_hw_free()
1924 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND)) in dpcm_be_dai_hw_free()
1927 dev_dbg(be->dev, "ASoC: hw_free BE %s\n", in dpcm_be_dai_hw_free()
1928 be->dai_link->name); in dpcm_be_dai_hw_free()
1932 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE; in dpcm_be_dai_hw_free()
1972 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_hw_params() local
1974 snd_soc_dpcm_get_substream(be, stream); in dpcm_be_dai_hw_params()
1976 /* is this op for this BE ? */ in dpcm_be_dai_hw_params()
1977 if (!snd_soc_dpcm_be_can_update(fe, be, stream)) in dpcm_be_dai_hw_params()
1985 ret = snd_soc_link_be_hw_params_fixup(be, &dpcm->hw_params); in dpcm_be_dai_hw_params()
1989 /* copy the fixed-up hw params for BE dai */ in dpcm_be_dai_hw_params()
1990 memcpy(&be->dpcm[stream].hw_params, &dpcm->hw_params, in dpcm_be_dai_hw_params()
1994 if (!snd_soc_dpcm_can_be_params(fe, be, stream)) in dpcm_be_dai_hw_params()
1997 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_be_dai_hw_params()
1998 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_params()
1999 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE)) in dpcm_be_dai_hw_params()
2002 dev_dbg(be->dev, "ASoC: hw_params BE %s\n", in dpcm_be_dai_hw_params()
2003 be->dai_link->name); in dpcm_be_dai_hw_params()
2007 dev_err(dpcm->be->dev, in dpcm_be_dai_hw_params()
2008 "ASoC: hw_params BE failed %d\n", ret); in dpcm_be_dai_hw_params()
2012 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS; in dpcm_be_dai_hw_params()
2019 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_hw_params() local
2021 snd_soc_dpcm_get_substream(be, stream); in dpcm_be_dai_hw_params()
2023 if (!snd_soc_dpcm_be_can_update(fe, be, stream)) in dpcm_be_dai_hw_params()
2027 if (!snd_soc_dpcm_can_be_free_stop(fe, be, stream)) in dpcm_be_dai_hw_params()
2030 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) && in dpcm_be_dai_hw_params()
2031 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_hw_params()
2032 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && in dpcm_be_dai_hw_params()
2033 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP)) in dpcm_be_dai_hw_params()
2055 dev_err(fe->dev,"ASoC: hw_params BE failed %d\n", ret); in dpcm_fe_dai_hw_params()
2082 dev_dbg(dpcm->be->dev, "ASoC: trigger BE %s cmd %d\n", in dpcm_do_trigger()
2083 dpcm->be->dai_link->name, cmd); in dpcm_do_trigger()
2087 dev_err(dpcm->be->dev,"ASoC: trigger BE failed %d\n", ret); in dpcm_do_trigger()
2100 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_trigger() local
2102 snd_soc_dpcm_get_substream(be, stream); in dpcm_be_dai_trigger()
2104 /* is this op for this BE ? */ in dpcm_be_dai_trigger()
2105 if (!snd_soc_dpcm_be_can_update(fe, be, stream)) in dpcm_be_dai_trigger()
2110 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && in dpcm_be_dai_trigger()
2111 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_trigger()
2112 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2119 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2122 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND)) in dpcm_be_dai_trigger()
2129 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2132 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2139 be->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in dpcm_be_dai_trigger()
2142 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) && in dpcm_be_dai_trigger()
2143 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_trigger()
2146 if (!snd_soc_dpcm_can_be_free_stop(fe, be, stream)) in dpcm_be_dai_trigger()
2153 be->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in dpcm_be_dai_trigger()
2156 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2159 if (!snd_soc_dpcm_can_be_free_stop(fe, be, stream)) in dpcm_be_dai_trigger()
2166 be->dpcm[stream].state = SND_SOC_DPCM_STATE_SUSPEND; in dpcm_be_dai_trigger()
2169 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) in dpcm_be_dai_trigger()
2172 if (!snd_soc_dpcm_can_be_free_stop(fe, be, stream)) in dpcm_be_dai_trigger()
2179 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in dpcm_be_dai_trigger()
2331 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_be_dai_prepare() local
2333 snd_soc_dpcm_get_substream(be, stream); in dpcm_be_dai_prepare()
2335 /* is this op for this BE ? */ in dpcm_be_dai_prepare()
2336 if (!snd_soc_dpcm_be_can_update(fe, be, stream)) in dpcm_be_dai_prepare()
2339 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_be_dai_prepare()
2340 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) && in dpcm_be_dai_prepare()
2341 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND) && in dpcm_be_dai_prepare()
2342 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED)) in dpcm_be_dai_prepare()
2345 dev_dbg(be->dev, "ASoC: prepare BE %s\n", in dpcm_be_dai_prepare()
2346 be->dai_link->name); in dpcm_be_dai_prepare()
2350 dev_err(be->dev, "ASoC: backend prepare failed %d\n", in dpcm_be_dai_prepare()
2355 be->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; in dpcm_be_dai_prepare()
2391 /* run the stream event for each BE */ in dpcm_fe_dai_prepare()
2413 /* call bespoke trigger - FE takes care of all BE triggers */ in dpcm_run_update_shutdown()
2437 /* run the stream event for each BE */ in dpcm_run_update_shutdown()
2455 /* Only start the BE if the FE is ready */ in dpcm_run_update_startup()
2460 /* startup must always be called for new BEs */ in dpcm_run_update_startup()
2482 /* run the stream event for each BE */ in dpcm_run_update_startup()
2491 /* call trigger on the frontend - FE takes care of all BE triggers */ in dpcm_run_update_startup()
2522 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_run_update_startup() local
2523 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_CLOSE) in dpcm_run_update_startup()
2674 /* calculate valid and active FE <-> BE dpcms */ in dpcm_fe_dai_open()
2895 /* is the current PCM operation for this BE ? */
2897 struct snd_soc_pcm_runtime *be, int stream) in snd_soc_dpcm_be_can_update() argument
2901 be->dpcm[stream].runtime_update)) in snd_soc_dpcm_be_can_update()
2907 /* get the substream for this BE */
2909 snd_soc_dpcm_get_substream(struct snd_soc_pcm_runtime *be, int stream) in snd_soc_dpcm_get_substream() argument
2911 return be->pcm->streams[stream].substream; in snd_soc_dpcm_get_substream()
2916 struct snd_soc_pcm_runtime *be, in snd_soc_dpcm_check_state() argument
2928 for_each_dpcm_fe(be, stream, dpcm) { in snd_soc_dpcm_check_state()
2943 /* it's safe to do this BE DAI */ in snd_soc_dpcm_check_state()
2948 * We can only hw_free, stop, pause or suspend a BE DAI if any of it's FE
2952 struct snd_soc_pcm_runtime *be, int stream) in snd_soc_dpcm_can_be_free_stop() argument
2960 return snd_soc_dpcm_check_state(fe, be, stream, state, ARRAY_SIZE(state)); in snd_soc_dpcm_can_be_free_stop()
2965 * We can only change hw params a BE DAI if any of it's FE are not prepared,
2969 struct snd_soc_pcm_runtime *be, int stream) in snd_soc_dpcm_can_be_params() argument
2978 return snd_soc_dpcm_check_state(fe, be, stream, state, ARRAY_SIZE(state)); in snd_soc_dpcm_can_be_params()