Skip to content

Commit 8e4a239

Browse files
plbossartvinodkoul
authored andcommitted
soundwire: bus: add bpt_stream pointer
Add a convenience pointer to the 'sdw_bus' structure. BPT is a dedicated stream which will typically not be handled by DAIs or dailinks. Since there's only one BPT stream per link, storing the pointer at the link level seems rather natural. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Tested-by: shumingf@realtek.com Link: https://lore.kernel.org/r/20250227140615.8147-9-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 9a75628 commit 8e4a239

File tree

1 file changed

+2
-0
lines changed
  • include/linux/soundwire

1 file changed

+2
-0
lines changed

include/linux/soundwire/sdw.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,7 @@ struct sdw_stream_runtime {
979979
* @stream_refcount: number of streams currently using this bus
980980
* @btp_stream_refcount: number of BTP streams currently using this bus (should
981981
* be zero or one, multiple streams per link is not supported).
982+
* @bpt_stream: pointer stored to handle BTP streams.
982983
* @ops: Master callback ops
983984
* @port_ops: Master port callback ops
984985
* @prop: Master properties
@@ -1017,6 +1018,7 @@ struct sdw_bus {
10171018
struct sdw_bus_params params;
10181019
int stream_refcount;
10191020
int bpt_stream_refcount;
1021+
struct sdw_stream_runtime *bpt_stream;
10201022
const struct sdw_master_ops *ops;
10211023
const struct sdw_master_port_ops *port_ops;
10221024
struct sdw_master_prop prop;

0 commit comments

Comments
 (0)