]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
soundwire: only compute BPT stream in sdw_compute_dp0_port_params
authorBard Liao <yung-chuan.liao@linux.intel.com>
Tue, 14 Oct 2025 03:14:45 +0000 (11:14 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 8 Dec 2025 07:07:26 +0000 (12:37 +0530)
DP0 is only for BPT stream. We should not compute and update the port
params of the normal audio streams.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://patch.msgid.link/20251014031450.3781789-3-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/generic_bandwidth_allocation.c

index c18f0c16f9297379096422303afed7a78124ba39..530ac66ac6fad2c5367632671e01d693813278ab 100644 (file)
@@ -124,6 +124,9 @@ static void sdw_compute_dp0_port_params(struct sdw_bus *bus)
        struct sdw_master_runtime *m_rt;
 
        list_for_each_entry(m_rt, &bus->m_rt_list, bus_node) {
+               /* DP0 is for BPT only */
+               if (m_rt->stream->type != SDW_STREAM_BPT)
+                       continue;
                sdw_compute_dp0_master_ports(m_rt);
                sdw_compute_dp0_slave_ports(m_rt);
        }