linux/sound/soc/intel/boards
Harsha Priya 5c5f1baee8
ASoC: Intel: kbl_rt5663_rt5514_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.

Signed-off-by: Harsha Priya <harshapriya.n@intel.com>
Signed-off-by: Vamshi Krishna Gopal <vamshi.krishna.gopal@intel.com>
Tested-by: Lukasz Majczak <lma@semihalf.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/1595432147-11166-1-git-send-email-harshapriya.n@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-07-23 17:16:11 +01:00
..
bdw-rt5650.c ASoC: bdw-rt5650: add channel constraint 2020-04-28 14:58:50 +01:00
bdw-rt5677.c ASoC: Intel: bdw-rt5677: fix non BE conversion 2020-07-08 13:51:36 +01:00
broadwell.c Merge branch 'for-5.7' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-5.8 2020-05-12 16:12:47 +01:00
bxt_da7219_max98357a.c ASoC: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:38 +00:00
bxt_rt298.c ASoC: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:38 +00:00
byt-max98090.c ASoC: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:38 +00:00
byt-rt5640.c ASoC: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:38 +00:00
bytcht_cx2072x.c ASoC: Intel: byt/cht: add .pm_ops 2020-05-27 14:06:56 +01:00
bytcht_da7213.c ASoC: Intel: byt/cht: add .pm_ops 2020-05-27 14:06:56 +01:00
bytcht_es8316.c ASoC: Intel: bytcht_es8316: Add missed put_device() 2020-07-16 20:29:08 +01:00
bytcht_nocodec.c ASoC: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:38 +00:00
bytcr_rt5640.c ASoC: Intel: bytcr_rt5640: Add quirk for Toshiba Encore WT10-A tablet 2020-06-09 15:46:18 +01:00
bytcr_rt5651.c ASoC: Intel: byt/cht: add .pm_ops 2020-05-27 14:06:56 +01:00
cht_bsw_max98090_ti.c ASoC: Intel: byt/cht: add .pm_ops 2020-05-27 14:06:56 +01:00
cht_bsw_nau8824.c ASoC: Intel: byt/cht: add .pm_ops 2020-05-27 14:06:56 +01:00
cht_bsw_rt5645.c ASoC: Intel: byt/cht: add .pm_ops 2020-05-27 14:06:56 +01:00
cht_bsw_rt5672.c ASoC: Intel: cht_bsw_rt5672: Change bus format to I2S 2 channel 2020-06-29 20:37:18 +01:00
cml_rt1011_rt5682.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
ehl_rt5660.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
glk_rt5682_max98357a.c ASoC: Intel: boards: replace capture_only by dpcm_capture 2020-06-09 15:29:00 +01:00
haswell.c ASoC: Intel: haswell: Remove ignore_suspend flag from SSP0 dai link 2020-03-30 18:03:07 +01:00
hda_dsp_common.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
hda_dsp_common.h ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
kbl_da7219_max98357a.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
kbl_da7219_max98927.c ASoC: Intel: boards: replace capture_only by dpcm_capture 2020-06-09 15:29:00 +01:00
kbl_rt5660.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
kbl_rt5663_max98927.c ASoC: Intel: boards: replace capture_only by dpcm_capture 2020-06-09 15:29:00 +01:00
kbl_rt5663_rt5514_max98927.c ASoC: Intel: kbl_rt5663_rt5514_max98927: Fix kabylake_ssp_fixup function 2020-07-23 17:16:11 +01:00
Kconfig ASoC: Intel: SOF: merge COMETLAKE_LP and COMETLAKE_H 2020-06-17 20:01:00 +01:00
Makefile ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
skl_hda_dsp_common.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
skl_hda_dsp_common.h ASoC: intel/skl/hda - fix probe regression on systems without i915 2020-07-22 13:34:24 +01:00
skl_hda_dsp_generic.c ASoC: intel/skl/hda - fix probe regression on systems without i915 2020-07-22 13:34:24 +01:00
skl_nau88l25_max98357a.c ASoC: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:38 +00:00
skl_nau88l25_ssm4567.c ASoC: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:38 +00:00
skl_rt286.c ASoC: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:38 +00:00
sof_da7219_max98373.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
sof_maxim_common.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
sof_maxim_common.h ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
sof_pcm512x.c ASoC: sof_pcm512x: remove CONFIG_SND_HDA_CODEC_HDMI condition 2020-05-29 21:23:51 +01:00
sof_rt5682.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
sof_sdw_common.h ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
sof_sdw_dmic.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
sof_sdw_hdmi.c ASoC: sof-sdw: remove CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC condition 2020-05-29 21:23:50 +01:00
sof_sdw_rt700.c ASoC: Intel: sof_sdw_rt700: remap buttons 2020-05-18 14:01:47 +01:00
sof_sdw_rt711.c ASoC: Intel: sof_sdw_rt711: remap buttons 2020-05-18 14:01:46 +01:00
sof_sdw_rt715.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
sof_sdw_rt1308.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
sof_sdw_rt5682.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
sof_sdw.c ASoC: sof-sdw: remove CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC condition 2020-05-29 21:23:50 +01:00
sof_wm8804.c ASoC: Intel: boards: sof-wm8804: support for Hifiberry Digiplus boards 2020-05-01 17:45:22 +01:00