Skip to content

Commit 5cdc237

Browse files
plbossartvinodkoul
authored andcommitted
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>
1 parent 5d5cb86 commit 5cdc237

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

drivers/soundwire/intel.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,34 @@ struct sdw_intel_link_res {
4848
struct hdac_bus *hbus;
4949
};
5050

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+
5173
struct sdw_intel {
5274
struct sdw_cdns cdns;
5375
int instance;
5476
struct sdw_intel_link_res *link_res;
5577
bool startup_done;
78+
struct sdw_intel_bpt bpt_ctx;
5679
#ifdef CONFIG_DEBUG_FS
5780
struct dentry *debugfs;
5881
#endif

0 commit comments

Comments
 (0)