diff options
author | Zhu Yingjiang <yingjiang.zhu@linux.intel.com> | 2019-05-24 14:09:25 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-30 16:51:27 +0100 |
commit | 970c43d1783539b75a5e234ff5e51fc5c888112f (patch) | |
tree | d8e1e8fe73c6d60030d9163d36139cb62bd8ba9f /sound/soc | |
parent | 79b3b7c4a396b9fa1963ac70e853998633e8151d (diff) | |
download | linux-970c43d1783539b75a5e234ff5e51fc5c888112f.tar.gz linux-970c43d1783539b75a5e234ff5e51fc5c888112f.tar.bz2 linux-970c43d1783539b75a5e234ff5e51fc5c888112f.zip |
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: 8a300c8fb17 ("ASoC: SOF: Intel: Add HDA controller for Intel DSP")
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/sof/intel/hda.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sound/soc/sof/intel/hda.c b/sound/soc/sof/intel/hda.c index b1f4db0a6895..92c546e93400 100644 --- a/sound/soc/sof/intel/hda.c +++ b/sound/soc/sof/intel/hda.c @@ -544,13 +544,9 @@ int hda_dsp_probe(struct snd_sof_dev *sdev) if (ret < 0) goto free_ipc_irq; - /* enable DSP features */ - snd_sof_dsp_update_bits(sdev, HDA_DSP_PP_BAR, SOF_HDA_REG_PP_PPCTL, - SOF_HDA_PPCTL_GPROCEN, SOF_HDA_PPCTL_GPROCEN); - - /* 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); + /* enable ppcap interrupt */ + hda_dsp_ctrl_ppcap_enable(sdev, true); + hda_dsp_ctrl_ppcap_int_enable(sdev, true); /* initialize waitq for code loading */ init_waitqueue_head(&sdev->waitq); |