]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: intel_hdmi: Fix reference to PCM buffer address
authorZhen Ni <nizhen@uniontech.com>
Wed, 2 Mar 2022 07:42:41 +0000 (15:42 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 2 Mar 2022 08:25:37 +0000 (09:25 +0100)
commitf620b1b1cadb8e70e8a95125bdd2de603216923a
tree76f93ef959ba6fc672e9ac40e8c2c128dbc4378c
parentccca2f236fdb0a04a690f15b20090136580c6f74
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: 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>
sound/x86/intel_hdmi_audio.c