linux/sound/soc
Charles Keepax 5c74c9d34a
ASoC: soc-core: Fix regression causing sysfs entries to disappear
The allocation order of things in soc_new_pcm_runtime was changed to
move the device_register before the allocation of the rtd structure.
This was to allow the rtd allocation to be managed by devm. However
currently the sysfs entries are added by device_register and their
visibility depends on variables within the rtd structure, this causes
the pmdown_time and dapm_widgets sysfs entries to be missing for all
rtds.

Correct this issue by manually calling device_add_groups after the
appropriate information is available.

Fixes: d918a37610 ("ASoC: soc-core: tidyup soc_new_pcm_runtime() alloc order")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20200730120715.637-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-07-30 19:57:09 +01:00
..
adi
amd ASoC: amd: Rectifying Unbalanced pm_runtime_enable! issue 2020-07-01 14:20:00 +01:00
atmel ASoC: atomel: use snd_soc_xxx_active() 2020-05-18 16:15:04 +01:00
au1x ASoC: au1x: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:32 +00:00
bcm ASoC: bcm: use snd_soc_xxx_active() 2020-05-18 16:15:05 +01:00
cirrus ASoC: cirrus: use snd_soc_xxx_active() 2020-05-18 16:15:06 +01:00
codecs ASoC: max98390: Fix dac event dapm mixer. 2020-07-24 14:24:14 +01:00
dwc ASoC: dwc: use snd_soc_xxx_active() 2020-05-18 16:15:15 +01:00
fsl ASoC: fsl_mqs: Fix unchecked return value for clk_prepare_enable 2020-06-23 11:14:22 +01:00
generic ASoC: soc-dai: set dai_link dpcm_ flags with a helper 2020-07-08 13:51:35 +01:00
hisilicon ASoC: hisilicon: Use the defined variable to clean code 2020-04-27 14:08:44 +01:00
img ASoC: img-i2s-out: Fix runtime PM imbalance on error 2020-05-29 13:30:04 +01:00
intel ASoC: Intel: kbl_rt5663_rt5514_max98927: Fix kabylake_ssp_fixup function 2020-07-23 17:16:11 +01:00
jz4740 ASoC: ingenic: Unconditionally depend on devicetree 2020-05-28 13:20:17 +01:00
kirkwood ASoC: kirkwood: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:39 +00:00
mediatek ASoC: mediatek: use snd_soc_xxx_active() 2020-05-18 16:15:11 +01:00
meson ASoC: meson: fixes the missed kfree() for axg_card_add_tdm_loopback 2020-07-17 13:58:30 +01:00
mxs ASoC: mxs-saif: Fix unused assignment 2020-04-29 14:23:19 +01:00
pxa ASoC: mmp-sspa: Fix return value check in asoc_mmp_sspa_probe() 2020-05-27 14:48:56 +01:00
qcom ASoC: qcom: Drop HAS_DMA dependency to fix link failure 2020-06-29 17:52:22 +01:00
rockchip ASoC: rockchip: add format and rate constraints on rk3399 2020-07-01 14:20:01 +01:00
samsung ASoC: samsung: s3c24xx-i2s: Fix build after removal of DAI suspend/resume 2020-04-14 12:16:22 +01:00
sh SoC: rsnd: add interrupt support for SSI BUSIF buffer 2020-05-12 10:56:21 +01:00
sirf
sof Merge series "ASoC: more fixes for dpcm checks" from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>: 2020-07-08 15:02:06 +01:00
spear
sprd ASoC: sprd: use snd_compress_ops 2020-04-21 19:01:59 +01:00
sti ASoC: sti: sti_uniperif: move .suspend/.resume to component 2020-01-21 17:04:37 +00:00
stm ASoC: stm32: sai: fix sai probe 2020-04-17 19:37:14 +01:00
sunxi ASoC: sunxi: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:50 +00:00
tegra ASoC: tegra: tegra_wm8903: Use devm_snd_soc_register_card() 2020-04-28 16:40:36 +01:00
ti ASoC: ti: Fix runtime PM imbalance in omap2_mcbsp_set_clks_src 2020-05-26 17:20:22 +01:00
txx9 ASoC: txx9: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:53 +00:00
uniphier ASoC: uniphier: use snd_soc_xxx_active() 2020-05-18 16:15:14 +01:00
ux500 ASoC: ux500: mop500: Fix some refcounted resources issues 2020-05-12 17:14:34 +01:00
xilinx ASoC: xilinx: Use managed buffer allocation 2019-12-11 16:43:25 +00:00
xtensa ASoC: xtensa: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:55 +00:00
zte ASoC: zte: zx-tdm: remove redundant variables dev 2020-03-11 17:59:49 +00:00
Kconfig
Makefile ASoC: add soc-card.c 2020-05-30 02:11:27 +01:00
soc-ac97.c
soc-acpi.c
soc-card.c ASoC: soc-card: add snd_soc_card_remove_dai_link() 2020-05-30 02:11:42 +01:00
soc-component.c ASoC: soc-component: tidyup snd_soc_pcm_component_sync_stop() 2020-02-28 17:06:09 +00:00
soc-compress.c ASoC: soc-link: add snd_soc_link_compr_set_params() 2020-05-25 14:22:14 +01:00
soc-core.c ASoC: soc-core: Fix regression causing sysfs entries to disappear 2020-07-30 19:57:09 +01:00
soc-dai.c ASoC: soc-dai: set dai_link dpcm_ flags with a helper 2020-07-08 13:51:35 +01:00
soc-dapm.c ASoC: soc-card: add snd_soc_card_set_bias_level_post() 2020-05-30 02:11:40 +01:00
soc-devres.c ASoC: core: Remove only the registered component in devm functions 2020-07-07 11:55:46 +01:00
soc-generic-dmaengine-pcm.c ASoC: core: Remove only the registered component in devm functions 2020-07-07 11:55:46 +01:00
soc-io.c
soc-jack.c ASoC: soc-card: move snd_soc_card_jack_new() to soc-card 2020-05-30 02:11:28 +01:00
soc-link.c ASoC: reduce verbosity of error messages for sof-dai and sof-link 2020-05-29 14:21:45 +01:00
soc-ops.c ASoC: fix regwmask 2020-03-30 18:22:36 +01:00
soc-pcm.c ASoC: soc-pcm: fix checks for multi-cpu FE dailinks 2020-06-15 15:18:30 +01:00
soc-topology.c ASoC: topology: fix tlvs in error handling for widget_dmixer 2020-07-08 14:25:19 +01:00
soc-utils.c ASoC: utils: Drop superfluous ioctl PCM ops 2019-12-11 16:00:48 +00:00