alistair23-linux/sound/soc
Hui Wang ccff7bd468
ASoC: amd: renoir: restore two more registers during resume
Recently we found an issue about the suspend and resume. If dmic is
recording the sound, and we run suspend and resume, after the resume,
the dmic can't work well anymore. we need to close the app and reopen
the app, then the dmic could record the sound again.

For example, we run "arecord -D hw:CARD=acp,DEV=0 -f S32_LE -c 2
-r 48000 test.wav", then suspend and resume, after the system resume
back, we speak to the dmic. then stop the arecord, use aplay to play
the test.wav, we could hear the sound recorded after resume is weird,
it is not what we speak to the dmic.

I found two registers are set in the dai_hw_params(), if the two
registers are set during the resume, this issue could be fixed.
Move the code of the dai_hw_params() into the pdm_dai_trigger(), then
these two registers will be set during resume since pdm_dai_trigger()
will be called during resume. And delete the empty function
dai_hw_params().

Signed-off-by: Hui Wang <hui.wang@canonical.com>
Reviewed-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200730123138.5659-1-hui.wang@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-08-03 14:17:34 +01:00
..
adi
amd ASoC: amd: renoir: restore two more registers during resume 2020-08-03 14:17:34 +01:00
atmel ASoC: atmel: use asoc_substream_to_rtd() 2020-07-23 19:07:33 +01:00
au1x ASoC: au1x: use asoc_substream_to_rtd() 2020-07-23 19:07:36 +01:00
bcm ASoC: bcm2835: Silence clk_get() error on -EPROBE_DEFER 2020-07-28 17:04:07 +01:00
cirrus ASoC: cirrus: use asoc_substream_to_rtd() 2020-07-23 19:07:28 +01:00
codecs ASoC: wm8962: Do not remove ADDITIONAL_CONTROL_4 from readable register list 2020-08-03 14:17:33 +01:00
dwc ASoC: dwc: use asoc_substream_to_rtd() 2020-07-23 19:07:34 +01:00
fsl ASoC: fsl-asoc-card: Remove fsl_asoc_card_set_bias_level function 2020-08-03 14:17:32 +01:00
generic ASoC: generic: use asoc_substream_to_rtd() 2020-07-23 19:07:39 +01:00
hisilicon
img
intel ASoC: Intel: drop unnecessary list_empty 2020-07-30 22:38:39 +01:00
jz4740
kirkwood ASoC: kirkwood: use asoc_substream_to_rtd() 2020-07-23 19:07:41 +01:00
mediatek ASoC: mediatek: use asoc_substream_to_rtd() 2020-07-23 19:07:32 +01:00
meson Merge series "ASoC: meson: tdm fixes" from Jerome Brunet <jbrunet@baylibre.com>: 2020-07-30 21:00:36 +01:00
mxs ASoC: mxs: use asoc_substream_to_rtd() 2020-07-23 19:07:43 +01:00
pxa ASoC: pxa: use asoc_substream_to_rtd() 2020-07-23 19:07:27 +01:00
qcom ASoC: dt-bindings: q6asm: Add Q6ASM_DAI_{TX_RX, TX, RX} defines 2020-07-27 14:21:09 +01:00
rockchip ASoC: rk3399_gru_sound: Add DAPM pins, kcontrols for jack detection 2020-07-30 22:54:39 +01:00
samsung ASoC: samsung: Add sound support for Midas boards 2020-07-30 21:00:29 +01:00
sh ASoC: sh: Replace 'select' DMADEVICES 'with depends on' 2020-07-31 19:17:02 +01:00
sirf
sof ASoC: SOF: imx: use resource_size 2020-07-30 22:54:37 +01:00
spear ASoC: spear: merge .digital_mute() into .mute_stream() 2020-07-16 23:06:08 +01:00
sprd ASoC: sprd: use asoc_substream_to_rtd() 2020-07-23 19:07:40 +01:00
sti ASoC: sti: uniperif: fix 'defined by not used' warning 2020-07-10 15:13:44 +01:00
stm ASoC: core: Two step component registration 2020-07-31 19:35:59 +01:00
sunxi ASoC: sunxi: use asoc_substream_to_rtd() 2020-07-23 19:07:23 +01:00
tegra Merge series "ASoC: add asoc_substream_to_rtd() macro" from Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>: 2020-07-23 19:52:30 +01:00
ti Merge series "ASoC: add asoc_substream_to_rtd() macro" from Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>: 2020-07-23 19:52:30 +01:00
txx9
uniphier ASoC: uniphier: use asoc_substream_to_rtd() 2020-07-23 19:07:43 +01:00
ux500 ASoC: ux500: use asoc_substream_to_rtd() 2020-07-23 19:07:20 +01:00
xilinx
xtensa ASoC: xtensa: use asoc_substream_to_rtd() 2020-07-23 19:07:42 +01:00
zte
Kconfig
Makefile
soc-ac97.c ASoC: soc-ac97: fix kernel-doc 2020-07-03 17:33:46 +01:00
soc-acpi.c
soc-card.c
soc-component.c ASoC: core: Relocate and expose snd_soc_component_initialize 2020-07-31 19:35:57 +01:00
soc-compress.c
soc-core.c ASoC: core: Two step component registration 2020-07-31 19:35:59 +01:00
soc-dai.c ASoC: soc-xxx: add asoc_substream_to_rtd() 2020-07-23 19:07:19 +01:00
soc-dapm.c ASoC: dapm: don't call pm_runtime_* on card device 2020-07-24 17:27:53 +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: Two step component registration 2020-07-31 19:35:59 +01:00
soc-jack.c
soc-link.c ASoC: soc-xxx: add asoc_substream_to_rtd() 2020-07-23 19:07:19 +01:00
soc-ops.c
soc-pcm.c ASoC: soc-xxx: add asoc_substream_to_rtd() 2020-07-23 19:07:19 +01:00
soc-topology.c ASoC: topology: add more logs when topology load fails. 2020-07-08 14:25:22 +01:00
soc-utils.c ASoC: soc-xxx: add asoc_substream_to_rtd() 2020-07-23 19:07:19 +01:00