soundwire: intel: add BPT context definition

This is needed to be shared between open/send_async/close.

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-13-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by Pierre-Louis Bossart and committed by Vinod Koul 5cdc2376 5d5cb86f

+23
+23
drivers/soundwire/intel.h
··· 48 48 struct hdac_bus *hbus; 49 49 }; 50 50 51 + /** 52 + * struct sdw_intel_bpt - SoundWire Intel BPT context 53 + * @bpt_tx_stream: BPT TX stream 54 + * @dmab_tx_bdl: BPT TX buffer descriptor list 55 + * @bpt_rx_stream: BPT RX stream 56 + * @dmab_rx_bdl: BPT RX buffer descriptor list 57 + * @pdi0_buffer_size: PDI0 buffer size 58 + * @pdi1_buffer_size: PDI1 buffer size 59 + * @num_frames: number of frames 60 + * @data_per_frame: data per frame 61 + */ 62 + struct sdw_intel_bpt { 63 + struct hdac_ext_stream *bpt_tx_stream; 64 + struct snd_dma_buffer dmab_tx_bdl; 65 + struct hdac_ext_stream *bpt_rx_stream; 66 + struct snd_dma_buffer dmab_rx_bdl; 67 + unsigned int pdi0_buffer_size; 68 + unsigned int pdi1_buffer_size; 69 + unsigned int num_frames; 70 + unsigned int data_per_frame; 71 + }; 72 + 51 73 struct sdw_intel { 52 74 struct sdw_cdns cdns; 53 75 int instance; 54 76 struct sdw_intel_link_res *link_res; 55 77 bool startup_done; 78 + struct sdw_intel_bpt bpt_ctx; 56 79 #ifdef CONFIG_DEBUG_FS 57 80 struct dentry *debugfs; 58 81 #endif