aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorPierre-Louis Bossart <[email protected]>2022-01-26 09:17:15 +0800
committerVinod Koul <[email protected]>2022-02-11 12:17:55 +0530
commit63fadaa2c7190ad6fc546a8b95e044bd75422dec (patch)
tree8dc6e0a79bbe2fa9b484e942b77f8530a190ca19 /tools/perf/scripts/python/check-perf-trace.py
parentf3016b891c8c6f11434eab5b92a0bbc21c1dfb6e (diff)
soundwire: stream: make enable/disable/deprepare idempotent
The stream management currently flags an 'inconsistent state' error when a change is requested multiple times. This was added on purpose to identify programming mistakes. In hindsight, there was no real reason to fail if the logic at the ASoC-DPCM level invokes the same callback multiple times. It's perfectly acceptable to just return and not flag an error when there is nothing to do. The main concern with the state management is to trap errors such as trying to enable a stream that was not prepared first. This patch suggests allowing the stream functions to be idempotent, i.e. they can be called multiple times. Note that the prepare case was already handling multiple calls, this was added in commit c32464c9393d ("soundwire: stream: only prepare stream when it is configured.") Signed-off-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Rander Wang <[email protected]> Signed-off-by: Bard Liao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions