Skip to content
Commit 0aa6b294 authored by Zhen Ni's avatar Zhen Ni Committed by Takashi Iwai
Browse files

ALSA: intel_hdmi: Fix reference to PCM buffer address



PCM buffers might be allocated dynamically when the buffer
preallocation failed or a larger buffer is requested, and it's not
guaranteed that substream->dma_buffer points to the actually used
buffer.  The driver needs to refer to substream->runtime->dma_addr
instead for the buffer address.

Signed-off-by: default avatarZhen Ni <nizhen@uniontech.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220302074241.30469-1-nizhen@uniontech.com


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent ce345f1e
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