Skip to content

Commit 39e04d6

Browse files
committed
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>
1 parent 5320207 commit 39e04d6

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
@@ -125,6 +125,9 @@ static void sdw_compute_dp0_port_params(struct sdw_bus *bus)
125125
struct sdw_master_runtime *m_rt;
126126

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

0 commit comments

Comments
 (0)