WSL2-Linux-Kernel/sound/soc
Robert Hancock f0344f0aee ASoC: simple-card-utils: Set sysclk on all components
[ Upstream commit ce2f7b8d42 ]

If an mclk-fs value was provided in the device tree configuration, the
calculated MCLK was fed into the downstream codec DAI and CPU DAI,
however set_sysclk was not being called on the platform device. Some
platform devices such as the Xilinx Audio Formatter need to know the MCLK
as well.

Call snd_soc_component_set_sysclk on each component in the stream to set
the proper sysclk value in addition to the existing call of
snd_soc_dai_set_sysclk on the codec DAI and CPU DAI. This may end up
resulting in redundant calls if one of the snd_soc_dai_set_sysclk calls
ends up calling snd_soc_component_set_sysclk itself, but that isn't
expected to cause any significant harm.

Fixes: f48dcbb6d4 ("ASoC: simple-card-utils: share asoc_simple_hw_param()")
Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Reviewed-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/20220120195832.1742271-5-robert.hancock@calian.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:13 +02:00
..
adi
amd
atmel
au1x
bcm
cirrus
codecs ASoC: codecs: Check for error pointer after calling devm_regmap_init_mmio 2022-04-08 14:23:13 +02:00
dwc
fsl ASoC: fsl: Add missing error handling in pcm030_fabric_probe 2022-02-08 18:34:10 +01:00
generic ASoC: simple-card-utils: Set sysclk on all components 2022-04-08 14:23:13 +02:00
hisilicon
img
intel ASoC: Intel: catpt: Test dmaengine_submit() result before moving on 2022-01-27 11:04:14 +01:00
jz4740
kirkwood
mediatek ASoC: mediatek: mt8183: fix device_node leak 2022-01-27 11:05:04 +01:00
meson ASoC: meson: aiu: Move AIU_I2S_MISC hold setting to aiu-fifo-i2s 2021-12-29 12:28:52 +01:00
mxs
pxa
qcom ASoC: qcom: Actually clear DMA interrupt register for HDMI 2022-02-23 12:03:15 +01:00
rockchip
samsung ASoC: samsung: idma: Check of ioremap return value 2022-01-27 11:04:17 +01:00
sh ASoC: sh: rz-ssi: Drop calling rz_ssi_pio_recv() recursively 2022-04-08 14:23:13 +02:00
sof ASoC: SOF: Intel: Fix NULL ptr dereference when ENOMEM 2022-04-08 14:22:58 +02:00
spear
sprd
sti ASoC: sti: Fix deadlock via snd_pcm_stop_xrun() call 2022-03-28 09:58:43 +02:00
stm ASoC: stm32: i2s: fix 32 bits channel length without mclk 2021-12-01 09:04:47 +01:00
sunxi
tegra ASoC: tegra: Restore headphones jack name on Nyan Big 2021-12-29 12:28:52 +01:00
ti
uniphier ASoC: uniphier: drop selecting non-existing SND_SOC_UNIPHIER_AIO_DMA 2022-01-27 11:04:06 +01:00
ux500
xilinx ASoC: xilinx: xlnx_formatter_pcm: Handle sysclk setting 2022-04-08 14:23:13 +02:00
xtensa
Kconfig
Makefile
soc-ac97.c
soc-acpi.c
soc-card.c
soc-component.c
soc-compress.c
soc-core.c ASoC: soc-core: fix null-ptr-deref in snd_soc_del_component_unlocked() 2021-10-11 13:19:14 +01:00
soc-dai.c
soc-dapm.c ASoC: DAPM: Cover regression by kctl change notification fix 2021-11-25 09:49:07 +01:00
soc-devres.c
soc-generic-dmaengine-pcm.c
soc-jack.c
soc-link.c
soc-ops.c ASoC: ops: Shift tested values in snd_soc_put_volsw() by +min 2022-03-08 19:12:43 +01:00
soc-pcm.c
soc-topology-test.c
soc-topology.c ASoC: topology: Add missing rwsem around snd_ctl_remove() calls 2021-12-01 09:04:46 +01:00
soc-utils.c