Skip to content

Commit fa96fd3

Browse files
committed
soundwire: generic_bandwidth_allocation: don't deal with BRA stream
The DP0 (BPT) params are computed in sdw_compute_dp0_port_params(). We should exclude the BPT stream when calculating the audio streams. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent b6e691c commit fa96fd3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/soundwire/generic_bandwidth_allocation.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ static void _sdw_compute_port_params(struct sdw_bus *bus,
216216
if (m_rt->stream->state > SDW_STREAM_DISABLED ||
217217
m_rt->stream->state < SDW_STREAM_CONFIGURED)
218218
continue;
219+
/* BPT stream is handled in sdw_compute_dp0_port_params */
220+
if (m_rt->stream->type == SDW_STREAM_BPT)
221+
continue;
219222
sdw_compute_master_ports(m_rt, &params[i], &port_bo, hstop);
220223
}
221224

@@ -355,6 +358,9 @@ static int sdw_get_group_count(struct sdw_bus *bus,
355358
}
356359

357360
list_for_each_entry(m_rt, &bus->m_rt_list, bus_node) {
361+
if (m_rt->stream->type == SDW_STREAM_BPT)
362+
continue;
363+
358364
if (m_rt->stream->state == SDW_STREAM_DEPREPARED)
359365
continue;
360366

0 commit comments

Comments
 (0)