summaryrefslogtreecommitdiff
path: root/drivers/soundwire/bus.h
diff options
context:
space:
mode:
authorShuming Fan <shumingf@realtek.com>2023-03-16 04:30:41 +0300
committerVinod Koul <vkoul@kernel.org>2023-04-12 13:00:35 +0300
commitacdae4632e40f05e0f0731c5a383e461324aea65 (patch)
tree25b12709eca9639f293948dfd8da2105776c9e6a /drivers/soundwire/bus.h
parent9ddae9dad09e8bdaa33909bdcbb062c883c3c332 (diff)
downloadlinux-acdae4632e40f05e0f0731c5a383e461324aea65.tar.xz
soundwire: stream: restore cumulative bus bandwidth when compute_params callback failed
The _sdw_prepare_stream function just returns the error code when compute_params callback failed. The cumulative bus bandwidth will keep the value and won't be decreased by sdw_deprepare_stream function. We should restore the value of cumulative bus bandwidth when compute_params callback failed. Signed-off-by: Shuming Fan <shumingf@realtek.com> Reviewed-by: Paul Olaru <paul.olaru@oss.nxp.com> Reviewed-by: Rander Wang <rander.wang@intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20230316013041.1008003-1-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire/bus.h')
0 files changed, 0 insertions, 0 deletions