mbox series

[0/7] soundwire: intel: introduce hw_ops and move auxdevice handling to dedicated file

Message ID 20221111013135.38289-1-yung-chuan.liao@linux.intel.com (mailing list archive)
Headers show
Series soundwire: intel: introduce hw_ops and move auxdevice handling to dedicated file | expand

Message

Bard Liao Nov. 11, 2022, 1:31 a.m. UTC
This series adds yet another set of cleanups
a) all the helpers are now exposed as hw_ops callbacks
b) the auxiliary device code is now completely generic.

This will allow for easier introduction of new hw_ops implementations in
the future without throwing away all the goodness of the auxiliary device
handling. Since there will be a tighter coupling with HDaudio, it's likely
that future hw_ops are implemented in the SOF driver directly.

Pierre-Louis Bossart (7):
  soundwire: intel: start using hw_ops
  soundwire: intel: add debugfs callbacks in hw_ops
  soundwire: intel: add register_dai callback in hw_ops
  soundwire: intel: add bus management callbacks in hw_ops
  soundwire: intel: add link power management callbacks in hw_ops
  soundwire: intel: add in-band wake callbacks in hw_ops
  soundwire: intel: split auxdevice to different file

 drivers/soundwire/Makefile          |   2 +-
 drivers/soundwire/intel.c           | 658 +--------------------------
 drivers/soundwire/intel.h           |  96 +++-
 drivers/soundwire/intel_auxdevice.c | 678 ++++++++++++++++++++++++++++
 drivers/soundwire/intel_auxdevice.h |  18 +
 drivers/soundwire/intel_init.c      |   2 +
 include/linux/soundwire/sdw_intel.h |  44 ++
 sound/soc/sof/intel/hda.c           |   2 +
 8 files changed, 853 insertions(+), 647 deletions(-)
 create mode 100644 drivers/soundwire/intel_auxdevice.c
 create mode 100644 drivers/soundwire/intel_auxdevice.h

Comments

Vinod Koul Nov. 23, 2022, 2:42 p.m. UTC | #1
On 11-11-22, 09:31, Bard Liao wrote:
> This series adds yet another set of cleanups
> a) all the helpers are now exposed as hw_ops callbacks
> b) the auxiliary device code is now completely generic.
> 
> This will allow for easier introduction of new hw_ops implementations in
> the future without throwing away all the goodness of the auxiliary device
> handling. Since there will be a tighter coupling with HDaudio, it's likely
> that future hw_ops are implemented in the SOF driver directly.

Applied, thanks