Commit 915183b6 authored by Takashi Iwai's avatar Takashi Iwai

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.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 669f65ea
...@@ -1770,8 +1770,7 @@ static int hdmi_lpe_audio_probe(struct platform_device *pdev) ...@@ -1770,8 +1770,7 @@ static int hdmi_lpe_audio_probe(struct platform_device *pdev)
card_ctx->irq = irq; card_ctx->irq = irq;
/* only 32bit addressable */ /* only 32bit addressable */
dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32));
init_channel_allocations(); init_channel_allocations();
......
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