Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Pierre-Louis Bossart and committed by
Vinod Koul
8e4a239b 9a756289

+2
+2
include/linux/soundwire/sdw.h
··· 979 979 * @stream_refcount: number of streams currently using this bus 980 980 * @btp_stream_refcount: number of BTP streams currently using this bus (should 981 981 * be zero or one, multiple streams per link is not supported). 982 + * @bpt_stream: pointer stored to handle BTP streams. 982 983 * @ops: Master callback ops 983 984 * @port_ops: Master port callback ops 984 985 * @prop: Master properties ··· 1018 1017 struct sdw_bus_params params; 1019 1018 int stream_refcount; 1020 1019 int bpt_stream_refcount; 1020 + struct sdw_stream_runtime *bpt_stream; 1021 1021 const struct sdw_master_ops *ops; 1022 1022 const struct sdw_master_port_ops *port_ops; 1023 1023 struct sdw_master_prop prop;