]> www.infradead.org Git - users/willy/pagecache.git/commit
ALSA: compress_offload: improve file descriptors installation for dma-buf
authorJaroslav Kysela <perex@perex.cz>
Tue, 17 Dec 2024 10:07:26 +0000 (11:07 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 20 Dec 2024 08:52:15 +0000 (09:52 +0100)
commit3d3f43fab4cfb9cf245e3dbffa1736ce925bb54a
tree2f8a7f472e66952bade24e03028b05968615ffa4
parentf25a51b47c61540585a9e8a4e16f91677ebcbbc4
ALSA: compress_offload: improve file descriptors installation for dma-buf

Avoid to use single dma_buf_fd() call for both directions. This code
ensures that both file descriptors are allocated before fd_install().

Link: https://lore.kernel.org/linux-sound/6a923647-4495-4cff-a253-b73f48cfd0ea@stanley.mountain/
Fixes: 04177158cf98 ("ALSA: compress_offload: introduce accel operation mode")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Cc: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20241217100726.732863-1-perex@perex.cz
sound/core/compress_offload.c