android_kernel_xiaomi_sm8450/sound/soc/fsl
Shengjiu Wang d6e60c53d2 ASoC: fsl_micfil: register platform component before registering cpu dai
[ Upstream commit 0adf292069dcca8bab76a603251fcaabf77468ca ]

There is no defer probe when adding platform component to
snd_soc_pcm_runtime(rtd), the code is in snd_soc_add_pcm_runtime()

snd_soc_register_card()
  -> snd_soc_bind_card()
    -> snd_soc_add_pcm_runtime()
      -> adding cpu dai
      -> adding codec dai
      -> adding platform component.

So if the platform component is not ready at that time, then the
sound card still registered successfully, but platform component
is empty, the sound card can't be used.

As there is defer probe checking for cpu dai component, then register
platform component before cpu dai to avoid such issue.

Fixes: 47a70e6fc9 ("ASoC: Add MICFIL SoC Digital Audio Interface driver.")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1630665006-31437-4-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01 13:16:46 +01:00
..
efika-audio-fabric.c ASoC: fsl: efika-audio-fabric: use modern dai_link style 2019-06-06 21:41:08 +01:00
eukrea-tlv320.c ASoC: eureka-tlv320: Hold reference returned from of_find_xxx API 2022-10-26 13:25:26 +02:00
fsl_asrc_common.h ASoC: fsl_asrc_dma: Fix data copying speed issue with EDMA 2020-06-12 14:18:04 +01:00
fsl_asrc_dma.c ASoC: fsl_asrc_dma: fix potential null-ptr-deref 2023-04-26 11:27:42 +02:00
fsl_asrc.c ASoC: fsl_asrc: refine the check of available clock divider 2022-01-27 10:54:09 +01:00
fsl_asrc.h ASoC: fsl_asrc: Move common definition to fsl_asrc_common 2020-04-21 16:34:09 +01:00
fsl_audmix.c ASoC: fsl_audmix: make clock and output src write only 2020-09-17 14:47:09 +01:00
fsl_audmix.h ASoC: fsl_audmix: Add spin lock to protect tdms 2019-11-11 13:01:37 +00:00
fsl_dma.c ASoC: various vendors: delete repeated words in comments 2020-08-18 14:52:32 +01:00
fsl_dma.h
fsl_easrc.c ASoC: fsl: Fix PM disable depth imbalance in fsl_easrc_probe 2023-11-20 11:06:51 +01:00
fsl_easrc.h ASoC: fsl_easrc: use snd_pcm_format_t type for sample_format 2022-08-21 15:16:09 +02:00
fsl_esai.c ASoC: fsl_esai: Fix TDM slot setup for I2S mode 2021-04-21 13:00:52 +02:00
fsl_esai.h
fsl_micfil.c ASoC: fsl_micfil: register platform component before registering cpu dai 2024-03-01 13:16:46 +01:00
fsl_micfil.h
fsl_mqs.c ASoC: fsl_mqs: move of_node_put() to the correct location 2023-05-17 11:47:57 +02:00
fsl_sai.c ASoC: fsl_sai: Disable bit clock with transmitter 2023-07-27 08:44:36 +02:00
fsl_sai.h ASoC: fsl_sai: Disable bit clock with transmitter 2023-07-27 08:44:36 +02:00
fsl_spdif.c ASoC: fsl_spdif: Silence output on stop 2023-08-11 11:57:38 +02:00
fsl_spdif.h
fsl_ssi_dbg.c ASoC: fsl: fsl_ssi_dbg: remove spurious kernel-doc comment start 2020-07-03 16:09:24 +01:00
fsl_ssi.c ASoC: fsl_ssi: Rename AC'97 streams to avoid collisions with AC'97 CODEC 2023-02-01 08:23:17 +01:00
fsl_ssi.h ASoC: fsl: no need to check return value of debugfs_create functions 2019-06-14 16:37:48 +01:00
fsl_utils.c ASoC: fsl: mpc8610_hpcd/p1022_ds/p1022_rdk: use modern dai_link style 2019-06-06 21:42:35 +01:00
fsl_utils.h
fsl-asoc-card.c ASoC: fsl-asoc-card: Fix naming of AC'97 CODEC widgets 2023-02-01 08:23:17 +01:00
imx-audmix.c ASoC: imx-audmix: Fix return error with devm_clk_get() 2023-10-10 21:53:27 +02:00
imx-audmux.c ASoC: fsl: Replace HTTP links with HTTPS ones 2020-07-23 19:52:22 +01:00
imx-audmux.h
imx-es8328.c ASoC: imx-es8328: Fix error return code in imx_es8328_probe() 2022-04-08 14:40:11 +02:00
imx-mc13783.c ASoC: fsl: imx-mc13783: use devm_snd_soc_register_card() 2020-10-01 20:28:11 +01:00
imx-pcm-dma.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
imx-pcm-fiq.c ASoC: fsl: Drop superfluous ioctl PCM ops 2019-12-11 15:56:42 +00:00
imx-pcm.h
imx-sgtl5000.c ASoC: fsl: Fix refcount leak in imx_sgtl5000_probe 2022-06-09 10:21:07 +02:00
imx-spdif.c ASoC: fsl: imx-spdif: consider CPU-Platform possibility 2019-06-28 15:12:19 +01:00
imx-ssi.c ASoC: soc-core: remove bus_control 2020-01-21 17:07:08 +00:00
imx-ssi.h
Kconfig ASoC: fsl-asoc-card: add support for TLV320AIC32x4 codec 2020-08-21 15:24:40 +01:00
Makefile ASoC: fsl_easrc: Add EASRC ASoC CPU DAI drivers 2020-04-21 16:34:11 +01:00
mpc5200_dma.c ASoC: fsl: mpc5200_dma.c: Fix warning of Function parameter or member not described 2023-11-20 11:06:51 +01:00
mpc5200_dma.h
mpc5200_psc_ac97.c ASoC: soc-core: remove bus_control 2020-01-21 17:07:08 +00:00
mpc5200_psc_i2s.c ASoC: fsl: use asoc_substream_to_rtd() 2020-07-23 19:07:31 +01:00
mpc8610_hpcd.c ASoC: fsl: use asoc_substream_to_rtd() 2020-07-23 19:07:31 +01:00
mx27vis-aic32x4.c ASoC: fsl: mx27vis-aic32x4: use devm_snd_soc_register_card() 2020-10-01 20:28:16 +01:00
p1022_ds.c ASoC: fsl: use asoc_substream_to_rtd() 2020-07-23 19:07:31 +01:00
p1022_rdk.c ASoC: fsl: use asoc_substream_to_rtd() 2020-07-23 19:07:31 +01:00
pcm030-audio-fabric.c ASoC: fsl: Add missing error handling in pcm030_fabric_probe 2022-02-08 18:30:38 +01:00
phycore-ac97.c ASoC: fsl: phycore-ac97: use modern dai_link style 2019-06-06 21:41:47 +01:00
wm1133-ev1.c ASoC: fsl: use asoc_substream_to_rtd() 2020-07-23 19:07:31 +01:00