diff options
| author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2020-02-17 17:28:07 +0900 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2020-02-18 23:37:03 +0000 |
| commit | 085d22be035db245c44714cf879a73eae06c9f6b (patch) | |
| tree | cc8cc34f3b35cf938b909cf124c0d4754ce97495 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | ASoC: soc-pcm: remove snd_soc_dpcm_be_get/set_state() (diff) | |
| download | linux-085d22be035db245c44714cf879a73eae06c9f6b.tar.gz linux-085d22be035db245c44714cf879a73eae06c9f6b.zip | |
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 <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/878sl1bou2.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
