]> git.baikalelectronics.ru Git - kernel.git/commit
Merge series "ASoC: add dailink .exit() callback" from Pierre-Louis Bossart <pierre...
authorMark Brown <broonie@kernel.org>
Tue, 23 Jun 2020 11:54:12 +0000 (12:54 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 23 Jun 2020 11:54:12 +0000 (12:54 +0100)
commit931916bb2f76de5ada813b2e20c4c9c8e8b108dd
treed327abb4dfc2a2b846e274ead4835fe761fcdbcb
parentc279a35d21586b8c24ce40b8c56dd7e4ad2b9b25
parenteb38db91316d9d0057b2082c0e688a6efdf7d9a7
Merge series "ASoC: add dailink .exit() callback" from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:

While looking at reboot issues and module load/unload tests, I found
out some resources allocated in the dailink .init() callback are not
properly released - there is no existing mechanism in the soc-core to
do so.

The addition of a dailink .exit() callback seems to be the simplest
solution overall. It can be argued that the existing machine platform
device .remove() callback can also perform the necessary cleanups,
however as shown in the last two examples this might require a loop to
identify components whereas the dailink .exit() already has all the
necessary information to revert the actions done in the .init() step.

Changes since RFC:
Better commit messages and explanations
rt5682 cases with snd_soc_component_set_jack() called in the .exit()

Fred Oh (2):
  ASoC: intel: sof_rt5682: move disabling jack to dai link's exit()
  ASoC: intel: cml_rt1011_rt5682: disable jack in dailink .exit()

Pierre-Louis Bossart (3):
  ASoC: soc-link: introduce exit() callback
  ASoC: Intel: bdw-rt5677: fix module load/unload issues
  ASoC: Intel: kbl-rt5660: use .exit() dailink callback to release gpiod

 include/sound/soc-link.h                   |  1 +
 include/sound/soc.h                        |  3 +++
 sound/soc/intel/boards/bdw-rt5677.c        | 18 ++++++++++++++--
 sound/soc/intel/boards/cml_rt1011_rt5682.c |  8 ++++++++
 sound/soc/intel/boards/kbl_rt5660.c        | 17 +++++++++++++--
 sound/soc/intel/boards/sof_rt5682.c        | 24 ++++++++--------------
 sound/soc/soc-core.c                       |  3 +++
 sound/soc/soc-link.c                       |  6 ++++++
 8 files changed, 60 insertions(+), 20 deletions(-)

base-commit: 0d317296eac8db97a347c3ff0c78b04c82501943
--
2.20.1