WSL2-Linux-Kernel/sound/soc/intel/skylake
Ranjani Sridharan b4ed6b51f3
ASoC: core: conditionally increase module refcount on component open
Recently, for Intel platforms the "ignore_module_refcount" field
was introduced for the component driver. In order to avoid a
deadlock preventing the PCI modules from being removed
even when the card was idle, the refcounts were not incremented
for the device driver module during component probe.

However, this change introduced a nasty side effect:
the device driver module can be unloaded while a pcm stream is open.

This patch proposes to change the field to be renamed as
"module_get_upon_open". When this field is set, the module
refcount should be incremented on pcm open amd decremented
upon pcm close. This will enable modules to be removed
when no PCM playback/capture happens and prevent removal
when the component is actually in use.

Also, align with the skylake component driver with the new name.

Fixes: b450b878('ASoC: core: don't increase component module refcount
                 unconditionally'
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-04-08 14:15:44 +07:00
..
Makefile ASoC: Intel: Skylake: Add ssp clock driver 2018-01-26 12:51:21 +00:00
bxt-sst.c ASoC: Intel: Skylake: Request IRQ late only after all context are initialized 2017-12-20 10:48:06 +00:00
cnl-sst-dsp.c ASoC: Intel: cnl: Add cnl dsp functions and registers 2017-08-03 11:07:23 +01:00
cnl-sst-dsp.h ASoC: Intel: cnl: Add sst library functions for cnl platform 2017-08-03 11:07:33 +01:00
cnl-sst.c ASoC: Intel: Skylake: Request IRQ late only after all context are initialized 2017-12-20 10:48:06 +00:00
skl-debug.c ASoC: topology: Move skl-tplg-interface.h to uapi 2018-06-01 18:09:17 +01:00
skl-i2s.h ASoC: Intel: Skylake: Add extended I2S config blob support in Clock driver 2018-01-26 12:51:22 +00:00
skl-messages.c ASoC: Intel: Skylake: enable S24_LE format support 2019-03-26 13:24:26 +00:00
skl-nhlt.c ASoC: Intel: Skylake: add error logs on probe, remove dependency on NHLT 2018-12-13 15:36:19 +00:00
skl-nhlt.h ASoC: Intel: Skylake: Add api to retrieve dmic array info from nhlt 2016-05-30 18:16:44 +01:00
skl-pcm.c ASoC: core: conditionally increase module refcount on component open 2019-04-08 14:15:44 +07:00
skl-ssp-clk.c ASoC: Intel: Skylake: make function skl_clk_round_rate static 2018-02-12 09:32:32 +00:00
skl-ssp-clk.h ASoC: Intel: Skylake: Add ssp clock driver 2018-01-26 12:51:21 +00:00
skl-sst-cldma.c ASoC: Intel: Skylake: BDL definitions should be __le32 2018-07-25 17:21:11 +01:00
skl-sst-cldma.h ASoC: Intel: Skylake: BDL definitions should be __le32 2018-07-25 17:21:11 +01:00
skl-sst-dsp.c ASoC: Intel: Skylake: Request IRQ late only after all context are initialized 2017-12-20 10:48:06 +00:00
skl-sst-dsp.h ASoC: Intel: Skylake: Unify the fw ops for SKL and KBL 2018-04-17 11:35:10 +01:00
skl-sst-ipc.c ASoC: Intel: Skylake: Add FW reply for MCLK/SCLK IPC 2018-11-28 12:36:44 +00:00
skl-sst-ipc.h ASoC: Intel: Skylake: Disable clock and power gating during FW/LIB download 2018-03-13 09:29:14 -07:00
skl-sst-utils.c Merge branch 'fix/intel' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-intel 2018-01-08 15:54:50 +00:00
skl-sst.c ASoC: Intel: Skylake: Unify the fw ops for SKL and KBL 2018-04-17 11:35:10 +01:00
skl-topology.c ASoC: Intel: Skylake: remove useless cast 2019-01-03 16:34:07 +00:00
skl-topology.h Merge branch 'topic/drm_audio_component' of https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound into asoc-4.19 2018-08-01 10:32:05 +01:00
skl.c ASoC: intel: skl: Fix display power regression 2019-01-14 19:06:29 +01:00
skl.h ASoC: Intel: fix interface for Chromebook machine drivers 2018-11-20 16:56:25 +00:00