ASoC: SOF: minor updates for 5.20
Subsystems (3)
cover ASoC: SOF: minor updates for 5.20
One sanity check for SSP index reported by NHLT/BIOS and two updates for Mediatek and Intel Chromebooks related to already-merged firmware changes.
Ideally this should go in 5.20, time-permitting.
Brent Lu (1):
ASoC: SOF: dai-intel: add SOF_DAI_INTEL_SSP_CLKCTRL_MCLK_AON bit
Pierre-Louis Bossart (1):
ASoC: SOF: Intel: hda: add sanity check on SSP index reported by NHLT
YC Hung (1):
ASoC: SOF: Add cont_update_posn to platform parameters
include/sound/sof/dai-intel.h | 2 ++ include/uapi/sound/sof/abi.h | 2 +- sound/soc/sof/intel/hda.c | 7 +++++++ sound/soc/sof/ipc3-pcm.c | 3 +++ sound/soc/sof/sof-priv.h | 1 + 5 files changed, 14 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1
PATCH 1/3 ASoC: SOF: Intel: hda: add sanity check on SSP index reported by NHLT
We should have a limited trust in the BIOS and verify that the SSP index reported in NHLT is valid for each platform.
--- sound/soc/sof/intel/hda.c | 7 +++++++ 1 file changed, 7 insertions(+)
sound/soc/sof/intel/hda.c +7 -0
@@ -1527,6 +1527,7 @@ struct snd_soc_acpi_mach *hda_machine_select(struct snd_sof_dev *sdev)if (tplg_fixup && mach->tplg_quirk_mask &SND_SOC_ACPI_TPLG_INTEL_SSP_NUMBER && mach->mach_params.i2s_link_mask) { +const struct sof_intel_dsp_desc *chip =get_chip_info (sdev->pdata);int ssp_num; if (hweight_long(mach->mach_params.i2s_link_mask) > 1 &&
@@ -1536,6 +1537,12 @@ struct snd_soc_acpi_mach *hda_machine_select(struct snd_sof_dev *sdev)/* fls returns 1-based results, SSPs indices are 0-based */ ssp_num =fls (mach->mach_params.i2s_link_mask) -1 ; +if (ssp_num >= chip->ssp_count) { +dev_err (sdev->dev,"Invalid SSP %d, max on this platform is %d\n" , + ssp_num, chip->ssp_count); +return NULL ; + } + tplg_filename = devm_kasprintf(sdev->dev, GFP_KERNEL, "%s%s%d", sof_pdata->tplg_filename,
Signature · 1 line
2.34.1
PATCH 2/3 ASoC: SOF: Add cont_update_posn to platform parameters
In reply to Pierre-Louis BossartFrom: YC Hung <[email protected]>
Add cont_update_posn to platform parameters to support continue update position for platform.
--- sound/soc/sof/ipc3-pcm.c | 3 +++ sound/soc/sof/sof-priv.h | 1 + 2 files changed, 4 insertions(+)
sound/soc/sof/ipc3-pcm.c +3 -0
@@ -115,6 +115,9 @@ static int sof_ipc3_pcm_hw_params(struct snd_soc_component *component, pcm.params.no_stream_position =1 ; } +if (platform_params->cont_update_posn) + pcm.params.cont_update_posn =1 ; +dev_dbg (component->dev,"stream_tag %d" , pcm.params.stream_tag);/* send hw_params IPC to the DSP */
sound/soc/sof/sof-priv.h +1 -0
@@ -126,6 +126,7 @@ struct snd_sof_platform_stream_params {bool use_phy_address;u32 phy_addr;bool no_ipc_position; +bool cont_update_posn; };/*
Signature · 1 line
2.34.1
PATCH 3/3 ASoC: SOF: dai-intel: add SOF_DAI_INTEL_SSP_CLKCTRL_MCLK_AON bit
In reply to Pierre-Louis BossartFrom: Brent Lu <[email protected]>
Update definition for mclk always-on feature and increase the SOF_ABI_MINOR number for interface change.
--- include/sound/sof/dai-intel.h | 2 ++ include/uapi/sound/sof/abi.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
include/sound/sof/dai-intel.h +2 -0
@@ -52,6 +52,8 @@#define SOF_DAI_INTEL_SSP_CLKCTRL_MCLK_ES BIT(6)/* bclk early start */ #define SOF_DAI_INTEL_SSP_CLKCTRL_BCLK_ES BIT(7) +/* mclk always on */ +#define SOF_DAI_INTEL_SSP_CLKCTRL_MCLK_AON BIT(8)/* DMIC max. four controllers for eight microphone channels */ #define SOF_DAI_INTEL_DMIC_NUM_CTRL 4
include/uapi/sound/sof/abi.h +1 -1
@@ -28,7 +28,7 @@/* SOF ABI version major, minor and patch numbers */ #define SOF_ABI_MAJOR 3 -#define SOF_ABI_MINOR 22 +#define SOF_ABI_MINOR 23#define SOF_ABI_PATCH 0/* SOF ABI version number. Format within 32bit word is MMmmmppp */
Signature · 1 line
2.34.1
Mark Brown
maintainerQuoted 10 lines · Pierre-Louis Bossart
One sanity check for SSP index reported by NHLT/BIOS and two updates for Mediatek and Intel Chromebooks related to already-merged firmware changes.
Ideally this should go in 5.20, time-permitting.
Brent Lu (1):
ASoC: SOF: dai-intel: addSOF_DAI_INTEL_SSP_CLKCTRL_MCLK_AONbit[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/3] ASoC: SOF: Intel: hda: add sanity check on SSP index reported by NHLT
commit: e51699505042fb365df3a0ce68b850ccd9ad0108
[2/3] ASoC: SOF: Add cont_update_posn to platform parameters
commit: d95610a1832993c539be22f0ec3ea8e34a29acff
[3/3] ASoC: SOF: dai-intel: add SOF_DAI_INTEL_SSP_CLKCTRL_MCLK_AON bit
commit: af468aadf00485a2f5e804fe97db4731bc7a9c24All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark