Commit 970c43d1 authored by Zhu Yingjiang's avatar Zhu Yingjiang Committed by Mark Brown

ASoC: SOF: Intel: hda: use the defined ppcap functions

There are already defined ppcap and ppcap interrupt functions, use
the already defined functions for easy code read.

Fixes: 8a300c8f ("ASoC: SOF: Intel: Add HDA controller for Intel DSP")
Reviewed-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarZhu Yingjiang <yingjiang.zhu@linux.intel.com>
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 79b3b7c4
...@@ -544,13 +544,9 @@ int hda_dsp_probe(struct snd_sof_dev *sdev) ...@@ -544,13 +544,9 @@ int hda_dsp_probe(struct snd_sof_dev *sdev)
if (ret < 0) if (ret < 0)
goto free_ipc_irq; goto free_ipc_irq;
/* enable DSP features */ /* enable ppcap interrupt */
snd_sof_dsp_update_bits(sdev, HDA_DSP_PP_BAR, SOF_HDA_REG_PP_PPCTL, hda_dsp_ctrl_ppcap_enable(sdev, true);
SOF_HDA_PPCTL_GPROCEN, SOF_HDA_PPCTL_GPROCEN); hda_dsp_ctrl_ppcap_int_enable(sdev, true);
/* enable DSP IRQ */
snd_sof_dsp_update_bits(sdev, HDA_DSP_PP_BAR, SOF_HDA_REG_PP_PPCTL,
SOF_HDA_PPCTL_PIE, SOF_HDA_PPCTL_PIE);
/* initialize waitq for code loading */ /* initialize waitq for code loading */
init_waitqueue_head(&sdev->waitq); init_waitqueue_head(&sdev->waitq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment