Skip to content

Commit 5d0215e

Browse files
committed
soundwire: allow BPT and audio stream run simultaneously
Now the SoundWire BPT stream and the audio stream can share the SoundWire bus bandwidth. However, it is still not allowed to have more than 1 BPT stream running simultaneously. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent 3ed9370 commit 5d0215e

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

drivers/soundwire/stream.c

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,18 +1250,10 @@ static struct sdw_master_runtime
12501250
struct sdw_master_runtime *m_rt, *walk_m_rt;
12511251
struct list_head *insert_after;
12521252

1253-
if (stream->type == SDW_STREAM_BPT) {
1254-
if (bus->stream_refcount > 0 || bus->bpt_stream_refcount > 0) {
1255-
dev_err(bus->dev, "%s: %d/%d audio/BPT stream already allocated\n",
1256-
__func__, bus->stream_refcount, bus->bpt_stream_refcount);
1257-
return ERR_PTR(-EBUSY);
1258-
}
1259-
} else {
1260-
if (bus->bpt_stream_refcount > 0) {
1261-
dev_err(bus->dev, "%s: BPT stream already allocated\n",
1262-
__func__);
1263-
return ERR_PTR(-EAGAIN);
1264-
}
1253+
if (stream->type == SDW_STREAM_BPT && bus->bpt_stream_refcount > 0) {
1254+
dev_err(bus->dev, "%s: BPT stream already allocated\n",
1255+
__func__);
1256+
return ERR_PTR(-EAGAIN);
12651257
}
12661258

12671259
m_rt = kzalloc_obj(*m_rt);

0 commit comments

Comments
 (0)