]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ALSA: x86: Simplify with dma_set_mask_and_coherent()
authorTakashi Iwai <tiwai@suse.de>
Thu, 14 Jan 2021 12:54:12 +0000 (13:54 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 15 Jan 2021 10:17:19 +0000 (11:17 +0100)
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>
sound/x86/intel_hdmi_audio.c

index 5b351f4ca543b1f08630dc2d63fceb193a993817..1d66c3a4fb107e6e65bd6e8452226f4b65b50708 100644 (file)
@@ -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();