]> www.infradead.org Git - linux.git/commit
soundwire: generic_bandwidth_allocation: change port_bo parameter to pointer
authorBard Liao <yung-chuan.liao@linux.intel.com>
Mon, 17 Jun 2024 12:13:50 +0000 (20:13 +0800)
committerVinod Koul <vkoul@kernel.org>
Fri, 21 Jun 2024 09:56:26 +0000 (15:26 +0530)
commit8e8c0dfc828c3f3ba5ebcee076b979d2134a6e27
tree392c8ff4af38af14f25e25fc3a25ebfb76863160
parentb96f16bdf58dae08d841536820269c6b0d9c976b
soundwire: generic_bandwidth_allocation: change port_bo parameter to pointer

Currently, we do port_bo += bps * ch in both inside and outside
sdw_compute_master_ports(). We can pass port_bo as a pointer and only
calculate port_bo in sdw_compute_master_ports().
Besides, different port could use different lanes and we can't just
add port_bo based on total channels in a manager.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20240617121350.14074-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/generic_bandwidth_allocation.c