diff options
author | Kuninori Morimoto <[email protected]> | 2020-02-17 17:28:07 +0900 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-02-18 23:37:03 +0000 |
commit | 085d22be035db245c44714cf879a73eae06c9f6b (patch) | |
tree | cc8cc34f3b35cf938b909cf124c0d4754ce97495 /tools/perf/scripts/python/stackcollapse.py | |
parent | 289a7e64f8583aaa45847c7fa3b7fabf8d48fd6b (diff) |
ASoC: soc-pcm: add snd_soc_dpcm_can_be() and remove duplicate code
Below functions are doing very similar things, the difference is
used state only.
snd_soc_dpcm_can_be_free_stop()
snd_soc_dpcm_can_be_params()
This patch adds common snd_soc_dpcm_check_state(), and use it from
snd_soc_dpcm_can_be_free_stop() / snd_soc_dpcm_can_be_params().
It can reduce duplicate code.
Signed-off-by: Kuninori Morimoto <[email protected]>
Reviewed-by: Ranjani Sridharan <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions