soundwire: intel: start using hw_ops
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 11 Nov 2022 01:31:28 +0000 (09:31 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 23 Nov 2022 14:41:48 +0000 (20:11 +0530)
commitb3ad31f33982497dbc7a66a9d3013b1ac6985dfe
tree5f894a90e3e2095b878fce11ba128bcf61b6a313
parentca1c131ccf6e09f4976aeca035f12529c9a7d8a9
soundwire: intel: start using hw_ops

Before introducing new hardware with completely different register
spaces and programming sequences, we need to abstract some of the
existing routines in hw_ops that will be platform-specific. For now we
only use the 'cnl' ops - after the first Intel platform with SoundWire
capabilities.

Rather than one big intrusive patch, hw_ops are introduced in this
patch so show the dependencies between drivers. Follow-up patches will
introduce callbacks for debugfs, power and bus management.

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-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/intel.c
drivers/soundwire/intel.h
drivers/soundwire/intel_init.c
include/linux/soundwire/sdw_intel.h
sound/soc/sof/intel/hda.c