summaryrefslogtreecommitdiff
path: root/sound/soc/soc-generic-dmaengine-pcm.c
diff options
context:
space:
mode:
authorZhen Ni <nizhen@uniontech.com>2022-03-02 15:42:41 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-03-08 19:07:46 +0100
commit75a471401b1097bf8f53f88fa2fd4482ac57e70f (patch)
tree99b2ad698ec4c9f5b9f7f18d41adadadfdebeee2 /sound/soc/soc-generic-dmaengine-pcm.c
parente28372b295d888225c69fa74c3c36a2a8cafe231 (diff)
ALSA: intel_hdmi: Fix reference to PCM buffer address
commit 0aa6b294b312d9710804679abd2c0c8ca52cc2bc upstream. 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: Zhen Ni <nizhen@uniontech.com> Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20220302074241.30469-1-nizhen@uniontech.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/soc/soc-generic-dmaengine-pcm.c')
0 files changed, 0 insertions, 0 deletions