Skip to content

Commit 915183b

Browse files
committed
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/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 669f65e commit 915183b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sound/x86/intel_hdmi_audio.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,8 +1770,7 @@ static int hdmi_lpe_audio_probe(struct platform_device *pdev)
17701770
card_ctx->irq = irq;
17711771

17721772
/* only 32bit addressable */
1773-
dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
1774-
dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32));
1773+
dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
17751774

17761775
init_channel_allocations();
17771776

0 commit comments

Comments
 (0)