diff options
| author | Kuninori Morimoto <[email protected]> | 2020-02-10 12:14:12 +0900 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2020-02-11 15:40:36 +0000 |
| commit | 7a5aaba4a4f45acc8192beb8a4b1bd4a58b67ce3 (patch) | |
| tree | 5773704ef8a4ba9cf5a09a0e4cc00f54b18c1d42 /tools/perf/scripts/python | |
| parent | fa1f875c120fa44572c561d86022af2f6b0774c7 (diff) | |
ASoC: soc-pcm: add snd_soc_runtime_action()
ALSA SoC has snd_soc_runtime_activate() / snd_soc_runtime_deactivate().
These increment or decrement DAI/Component activity, but the code
difference is only +1 or -1.
This patch adds common snd_soc_runtime_action() which can get +1 or -1 as
parameter, and use it from snd_soc_runtime_activate/deactivate() to
avoid duplicate implementation.
Signed-off-by: Kuninori Morimoto <[email protected]>
Reviewed-by: Ranjani Sridharan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions