ALSA: compress_offload: introduce accel operation mode
authorJaroslav Kysela <perex@perex.cz>
Wed, 2 Oct 2024 09:39:04 +0000 (11:39 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 25 Oct 2024 08:53:20 +0000 (10:53 +0200)
commit04177158cf98a79744937893b100020d77e6f9ac
tree0cd5bcd84b412d20185af3998d5eba167492ae26
parent42f7652d3eb527d03665b09edac47f85fb600924
ALSA: compress_offload: introduce accel operation mode

There is a requirement to expose the audio hardware that accelerates various
tasks for user space such as sample rate converters, compressed
stream decoders, etc.

This is description for the API extension for the compress ALSA API which
is able to handle "tasks" that are not bound to real-time operations
and allows for the serialization of operations.

For details, refer to "compress-accel.rst" document.

Cc: Mark Brown <broonie@kernel.org>
Cc: Shengjiu Wang <shengjiu.wang@gmail.com>
Cc: Nicolas Dufresne <nicolas@ndufresne.ca>
Cc: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Cc: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Tested-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20241002093904.1809799-1-perex@perex.cz
Documentation/sound/designs/compress-accel.rst [new file with mode: 0644]
include/sound/compress_driver.h
include/uapi/sound/compress_offload.h
sound/core/Kconfig
sound/core/compress_offload.c