diff options
author | Lukasz Majczak <[email protected]> | 2021-04-15 14:43:47 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2021-04-15 18:01:05 +0100 |
commit | a523ef731ac6674dc07574f31bf44cc5bfa14e4d (patch) | |
tree | 3f2cf1c9c62f2fc26a09bfd8223c16e3187d8dd5 /scripts/gdb/linux/timerlist.py | |
parent | 858066864a6383d1eecd2fa96a0b8e69935632f8 (diff) |
ASoC: Intel: kbl_da7219_max98927: Fix kabylake_ssp_fixup function
kabylake_ssp_fixup function uses snd_soc_dpcm to identify the
codecs DAIs. The HW parameters are changed based on the codec DAI of the
stream. The earlier approach to get snd_soc_dpcm was using container_of()
macro on snd_pcm_hw_params.
The structures have been modified over time and snd_soc_dpcm does not have
snd_pcm_hw_params as a reference but as a copy. This causes the current
driver to crash when used.
This patch changes the way snd_soc_dpcm is extracted. snd_soc_pcm_runtime
holds 2 dpcm instances (one for playback and one for capture). 2 codecs
on the SSP are dmic (capture) and speakers (playback). Based on the
stream direction, snd_soc_dpcm is extracted from snd_soc_pcm_runtime.
Tested for all use cases of the driver.
Based on similar fix in kbl_rt5663_rt5514_max98927.c
from Harsha Priya <[email protected]> and
Vamshi Krishna Gopal <[email protected]>
Cc: <[email protected]> # 5.4+
Signed-off-by: Lukasz Majczak <[email protected]>
Acked-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions