soundwire: intel: add bus management callbacks in hw_ops
No functionality change, only add indirection for bus management helpers. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Rander Wang <rander.wang@intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20221111013135.38289-5-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
committed by
Vinod Koul
parent
b6234bcc65
commit
3db0c5a6a2
@@ -300,6 +300,11 @@ struct sdw_intel;
|
||||
* @debugfs_init: initialize all debugfs capabilities
|
||||
* @debugfs_exit: close and cleanup debugfs capabilities
|
||||
* @register_dai: read all PDI information and register DAIs
|
||||
* @check_clock_stop: throw error message if clock is not stopped.
|
||||
* @start_bus: normal start
|
||||
* @start_bus_after_reset: start after reset
|
||||
* @start_bus_after_clock_stop: start after mode0 clock stop
|
||||
* @stop_bus: stop all bus
|
||||
* @pre_bank_switch: helper for bus management
|
||||
* @post_bank_switch: helper for bus management
|
||||
*/
|
||||
@@ -309,6 +314,12 @@ struct sdw_intel_hw_ops {
|
||||
|
||||
int (*register_dai)(struct sdw_intel *sdw);
|
||||
|
||||
void (*check_clock_stop)(struct sdw_intel *sdw);
|
||||
int (*start_bus)(struct sdw_intel *sdw);
|
||||
int (*start_bus_after_reset)(struct sdw_intel *sdw);
|
||||
int (*start_bus_after_clock_stop)(struct sdw_intel *sdw);
|
||||
int (*stop_bus)(struct sdw_intel *sdw, bool clock_stop);
|
||||
|
||||
int (*pre_bank_switch)(struct sdw_intel *sdw);
|
||||
int (*post_bank_switch)(struct sdw_intel *sdw);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user