Skip to content

Commit 43b2a39

Browse files
bardliaovinodkoul
authored andcommitted
soundwire: only compute BPT stream in sdw_compute_dp0_port_params
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>
1 parent 4be4ac3 commit 43b2a39

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/soundwire/generic_bandwidth_allocation.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ static void sdw_compute_dp0_port_params(struct sdw_bus *bus)
124124
struct sdw_master_runtime *m_rt;
125125

126126
list_for_each_entry(m_rt, &bus->m_rt_list, bus_node) {
127+
/* DP0 is for BPT only */
128+
if (m_rt->stream->type != SDW_STREAM_BPT)
129+
continue;
127130
sdw_compute_dp0_master_ports(m_rt);
128131
sdw_compute_dp0_slave_ports(m_rt);
129132
}

0 commit comments

Comments
 (0)