ASoC: SOF: Intel: hda-loader: use SOF helper for consistency
Subsystems (3)
Peter Ujfalusi
maintainerPATCH RESEND 1/1 ASoC: SOF: Intel: hda-loader: use SOF helper for consistency
From: Pierre-Louis Bossart <[email protected]>
Update code to remove mix between legacy and SOF definitions. No functionality change.
---
Hi Mark,
for some reason the original patch got missed:
https://lore.kernel.org/alsa-devel/[email protected]/
Resending it after placing it on top of you for-next to be sure that it still applies cleanly.
Regards,
Peter
sound/soc/sof/intel/hda-loader.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
sound/soc/sof/intel/hda-loader.c +4 -3
@@ -321,13 +321,13 @@ int hda_cl_copy_fw(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_streamint hda_dsp_cl_boot_firmware_iccmax (struct snd_sof_dev *sdev) {struct hdac_ext_stream *iccmax_stream; -struct hdac_bus *bus =sof_to_bus (sdev);struct snd_dma_buffer dmab_bdl;int ret, ret1;u8 original_gb;/* save the original LTRP guardband value */ - original_gb =snd_hdac_chip_readb (bus,VS_LTRP ) &HDA_VS_INTEL_LTRP_GB_MASK ; + original_gb =snd_sof_dsp_read8 (sdev,HDA_DSP_HDA_BAR ,HDA_VS_INTEL_LTRP ) & +HDA_VS_INTEL_LTRP_GB_MASK ;/* * Prepare capture stream for ICCMAX. We do not need to store
@@ -356,7 +356,8 @@ int hda_dsp_cl_boot_firmware_iccmax(struct snd_sof_dev *sdev) }/* restore the original guardband value after FW boot */ -snd_hdac_chip_updateb (bus,VS_LTRP ,HDA_VS_INTEL_LTRP_GB_MASK , original_gb); +snd_sof_dsp_update8 (sdev,HDA_DSP_HDA_BAR ,HDA_VS_INTEL_LTRP , +HDA_VS_INTEL_LTRP_GB_MASK , original_gb);return ret; }
Signature · 1 line
2.39.2
Mark Brown
maintainerQuoted 4 lines · Peter Ujfalusi
Update code to remove mix between legacy and SOF definitions. No functionality change.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: SOF: Intel: hda-loader: use SOF helper for consistency
commit: 1d045d77756d07495ce379343455b1f829fe737d
All 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