linux_dsm_epyc7002/sound/soc
Ranjani Sridharan f96fb7d198
ASoC: core: remove link components before cleaning up card resources
When the card is registered by the machine driver,
dai link components are probed after the snd_card is
created. This is done in snd_soc_bind_card() which calls
snd_soc_instantiate_card() to first create the snd_card
and then probes the link components by calling
soc_probe_link_components(). The snd_card is used by the
component driver to add the kcontrols associated
with dapm widgets to the card.

When the machine driver is unregistered, the snd_card
is freed when the card resources are cleaned up.
But the snd_card needs to be valid while unloading the
topology dapm widgets in order to remove the kcontrols
from the card.

Since, unloading topology is done when the component
driver is removed, the link components should be removed
in snd_soc_unbind_card(). This will ensure that the kcontrols
are removed before the card resources are cleaned up and
the snd_card itself is freed.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-04-05 09:24:59 +07:00
..
adi ASoC: axi-i2s: let both capture and playback be optional 2019-03-11 17:17:38 +00:00
amd ASoC: AMD: Fix incorrect extern 2019-03-25 12:09:51 +00:00
atmel ASoC: mchp-i2s-mcc: add driver for I2SC Multi-Channel Controller 2019-03-21 14:53:12 +00:00
au1x
bcm
cirrus
codecs ASoC: cs42l51: add adc volume control 2019-04-04 20:56:29 +07:00
dwc ASoC: dwc: Drop superfluous PCM preallocation error checks 2019-02-06 18:28:59 +01:00
fsl Merge branch 'asoc-5.1' into asoc-5.2 2019-04-04 15:07:34 +07:00
generic Merge branch 'asoc-5.1' into asoc-5.2 2019-04-04 15:07:34 +07:00
hisilicon
img
intel Merge branch 'asoc-5.1' into asoc-5.2 2019-04-04 15:07:34 +07:00
jz4740 ASoC: jz4740: Depend on MIPS instead of MACH_JZ4740 2019-03-20 17:05:40 +00:00
kirkwood
mediatek ASoC: Mediatek: MT8183: Fix platform_no_drv_owner.cocci warnings 2019-04-04 12:50:58 +07:00
meson ASoC: meson: Drop superfluous PCM preallocation error checks 2019-02-06 18:29:16 +01:00
mxs
nuc900
pxa ASoC: eliminate left-over from Raumfeld machine driver removal 2019-01-07 16:58:19 +00:00
qcom ASoC: qcom: add i2c dependency for SND_SOC_SDM845 2019-03-11 16:31:49 +00:00
rockchip ASoC: rockchip: pdm: Mark RXFIFO_DATA as volatile and precious 2019-04-04 15:13:50 +07:00
samsung ASoC: samsung: i2s: Don't use register read to determine slave/master mode 2019-03-20 17:10:45 +00:00
sh Linux 5.1-rc1 2019-03-18 11:15:09 +00:00
sirf
spear
sprd ASoC: sprd: Fix spelling mistake "faied" -> "failed" 2019-04-04 15:11:34 +07:00
sti
stm Merge branch 'asoc-5.1' into asoc-5.2 2019-04-04 15:07:34 +07:00
sunxi ASoC: sunxi: sun50i-codec-analog: Rename hpvcc regulator supply to cpvdd 2019-02-19 15:36:02 +00:00
tegra
ti ASoC: ti: fix davinci_mcasp_probe dependencies 2019-03-11 16:34:05 +00:00
txx9 ASoC: txx9: Drop superfluous PCM preallocation error checks 2019-02-06 18:29:33 +01:00
uniphier ASoC: uniphier: Drop superfluous PCM preallocation error checks 2019-02-06 18:29:39 +01:00
ux500
xilinx ASoC: xlnx: fix up for snd_pcm_lib_preallocate_pages_for_all() API change 2019-02-08 14:23:54 +01:00
xtensa ASoC: xtensa: Drop superfluous PCM preallocation error checks 2019-02-06 18:29:44 +01:00
zte
Kconfig ASoC: sprd: Add Spreadtrum audio DMA platfrom driver 2019-01-29 18:10:12 +00:00
Makefile ASoC: sprd: Add Spreadtrum audio DMA platfrom driver 2019-01-29 18:10:12 +00:00
soc-ac97.c
soc-acpi.c ASoC: acpi: fix: continue searching when machine is ignored 2018-11-20 16:53:17 +00:00
soc-compress.c ASoC: compress: Add helper functions for component trigger/set_params 2019-02-06 15:51:04 +00:00
soc-core.c ASoC: core: remove link components before cleaning up card resources 2019-04-05 09:24:59 +07:00
soc-dapm.c Merge branch 'asoc-5.1' into asoc-5.2 2019-04-04 15:07:34 +07:00
soc-devres.c
soc-generic-dmaengine-pcm.c ASoC: More changes for v5.1 2019-02-28 13:30:55 +01:00
soc-io.c
soc-jack.c
soc-ops.c
soc-pcm.c ASoC: dpcm: skip missing substream while applying symmetry 2019-04-02 12:39:50 +07:00
soc-topology.c ASoC: topology: Align tplg pointer increment across all kcontrols 2019-04-02 12:57:44 +07:00
soc-utils.c