Skip to content

Commit 6216cf4

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 a92d4cb commit 6216cf4

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

@@ -359,6 +362,9 @@ static int sdw_get_group_count(struct sdw_bus *bus,
359362
}
360363

361364
list_for_each_entry(m_rt, &bus->m_rt_list, bus_node) {
365+
if (m_rt->stream->type == SDW_STREAM_BPT)
366+
continue;
367+
362368
if (m_rt->stream->state == SDW_STREAM_DEPREPARED)
363369
continue;
364370

0 commit comments

Comments
 (0)