mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2025-04-19 20:58:31 +09:00
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>
This commit is contained in:
parent
5d5cb86fb4
commit
5cdc23764d
@ -48,11 +48,34 @@ struct sdw_intel_link_res {
|
||||
struct hdac_bus *hbus;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct sdw_intel_bpt - SoundWire Intel BPT context
|
||||
* @bpt_tx_stream: BPT TX stream
|
||||
* @dmab_tx_bdl: BPT TX buffer descriptor list
|
||||
* @bpt_rx_stream: BPT RX stream
|
||||
* @dmab_rx_bdl: BPT RX buffer descriptor list
|
||||
* @pdi0_buffer_size: PDI0 buffer size
|
||||
* @pdi1_buffer_size: PDI1 buffer size
|
||||
* @num_frames: number of frames
|
||||
* @data_per_frame: data per frame
|
||||
*/
|
||||
struct sdw_intel_bpt {
|
||||
struct hdac_ext_stream *bpt_tx_stream;
|
||||
struct snd_dma_buffer dmab_tx_bdl;
|
||||
struct hdac_ext_stream *bpt_rx_stream;
|
||||
struct snd_dma_buffer dmab_rx_bdl;
|
||||
unsigned int pdi0_buffer_size;
|
||||
unsigned int pdi1_buffer_size;
|
||||
unsigned int num_frames;
|
||||
unsigned int data_per_frame;
|
||||
};
|
||||
|
||||
struct sdw_intel {
|
||||
struct sdw_cdns cdns;
|
||||
int instance;
|
||||
struct sdw_intel_link_res *link_res;
|
||||
bool startup_done;
|
||||
struct sdw_intel_bpt bpt_ctx;
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
struct dentry *debugfs;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user