diff options
author | Bard Liao <[email protected]> | 2020-01-14 17:52:24 -0600 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2020-02-13 15:57:37 +0530 |
commit | c32464c9393d0a426b5abbf01980ff5ecfb34a98 (patch) | |
tree | e675a43f7cb4377beb5196f5c999aabf2e77de44 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 59528807715f81f123631f57446b08219efa7526 (diff) |
soundwire: stream: only prepare stream when it is configured.
We don't need to prepare the stream again if the stream is already
prepared.
sdw_prepare_stream() could be called multiple times without calling
sdw_deprepare_stream(). We call sdw_prepare_stream() in the prepare
dai ops and sdw_deprepare_stream() in the hw_free dai ops. If an xrun
happens, sdw_prepare_stream() will be called but
sdw_deprepare_stream() will not, which results in an imbalance and an
invalid total bandwidth.
Signed-off-by: Pierre-Louis Bossart <[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/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions