diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-01-14 15:54:12 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-01-15 13:17:19 +0300 |
commit | 915183b62276191ef767e00e683f4c085c4cc325 (patch) | |
tree | 694cdb48fee17e46b42ea958bba0e6bb0efe2bf0 /sound/x86 | |
parent | 669f65eaeb969ef60811939a5811479d3e8087af (diff) | |
download | linux-915183b62276191ef767e00e683f4c085c4cc325.tar.xz |
ALSA: x86: Simplify with dma_set_mask_and_coherent()
LPE driver still has explicit calls of dma_set_mask() and
dma_set_coherent_mask().
Let's simplify with dma_set_mask_and_coherent().
Link: https://lore.kernel.org/r/20210114125412.993-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/x86')
-rw-r--r-- | sound/x86/intel_hdmi_audio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/x86/intel_hdmi_audio.c b/sound/x86/intel_hdmi_audio.c index 5b351f4ca543..1d66c3a4fb10 100644 --- a/sound/x86/intel_hdmi_audio.c +++ b/sound/x86/intel_hdmi_audio.c @@ -1770,8 +1770,7 @@ static int hdmi_lpe_audio_probe(struct platform_device *pdev) card_ctx->irq = irq; /* only 32bit addressable */ - dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); - dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); + dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); init_channel_allocations(); |