package/pipewire: compress-offload needs kernel >= 5.7
PATCH 1/1 package/pipewire: compress-offload needs kernel >= 5.7
SND_AUDIOCODEC_A{LAC,PE} are only available since kernel 5.7 and
https://github.com/torvalds/linux/commit/0f546d6f0292fb624b4cf0cc70096ddb9ea070e6
resulting in the following build failure since bump to version 0.3.65 in commit 247e2d0eb1e60f483044d58bed58c5ed321528f7 and
https://git.buildroot.net/buildroot/commit/?id=247e2d0eb1e60f483044d58bed58c5ed321528f7:
../spa/plugins/alsa/alsa-compress-offload-sink.c:183:11: error: 'SND_AUDIOCODEC_ALAC' undeclared here (not in a function); did you mean 'SND_AUDIOCODEC_AAC'?
183 | { SND_AUDIOCODEC_ALAC, },
| ^~~~~~~~~~~~~~~~~~~
| SND_AUDIOCODEC_AACMoreover, flac_d is also only available since kernel 5.5 and
https://github.com/torvalds/linux/commit/d2522335c92c090bf58531a2b696d7fe80ab2a7a
Fixes:
- http://autobuild.buildroot.org/results/9ecd9aca5edc3756154da59573157954f06e6537
--- package/pipewire/Config.in | 12 ++++++++++++ package/pipewire/pipewire.mk | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-)
package/pipewire/Config.in +12 -0
@@ -15,6 +15,18 @@ config BR2_PACKAGE_PIPEWIRE if BR2_PACKAGE_PIPEWIRE +config BR2_PACKAGE_PIPEWIRE_COMPRESS_OFFLOAD + bool "pipewire Compress-Offload" + depends on !BR2_STATIC_LIBS # tinycompress + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7 + select BR2_PACKAGE_TINYCOMPRESS + help + Enable ALSA Compress-Offload support + +comment "pipewire Compress-Offload needs a toolchain w/ dynamic library, headers >= 5.7" + depends on BR2_STATIC_LIBS || \ + !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7 + config BR2_PACKAGE_PIPEWIRE_EXAMPLES bool "pipewire examples" help
package/pipewire/pipewire.mk +1 -1
@@ -215,7 +215,7 @@ else PIPEWIRE_CONF_OPTS += -Dsdl2=disabled endif -ifeq ($(BR2_PACKAGE_TINYCOMPRESS),y) +ifeq ($(BR2_PACKAGE_PIPEWIRE_COMPRESS_OFFLOAD),y) PIPEWIRE_CONF_OPTS += -Dcompress-offload=enabled PIPEWIRE_DEPENDENCIES += tinycompress else
Signature · 6 lines
2.39.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Arnout Vandecappelle
AppliedQuoted 11 lines · Fabrice Fontaine
SND_AUDIOCODEC_A{LAC,PE} are only available since kernel 5.7 and
https://github.com/torvalds/linux/commit/0f546d6f0292fb624b4cf0cc70096ddb9ea070e6
resulting in the following build failure since bump to version 0.3.65 in commit247e2d0eb1e60f483044d58bed58c5ed321528f7and
https://git.buildroot.net/buildroot/commit/?id=247e2d0eb1e60f483044d58bed58c5ed321528f7:
../spa/plugins/alsa/alsa-compress-offload-sink.c:183:11: error: 'SND_AUDIOCODEC_ALAC' undeclared here (not in a function); did you mean 'SND_AUDIOCODEC_AAC'?183 | { SND_AUDIOCODEC_ALAC, }, | ^~~~~~~~~~~~~~~~~~~ | SND_AUDIOCODEC_AAC
Quoted 7 lines
Moreover,
flac_dis also only available since kernel 5.5 and
https://github.com/torvalds/linux/commit/d2522335c92c090bf58531a2b696d7fe80ab2a7aFixes:
- http://autobuild.buildroot.org/results/9ecd9aca5edc3756154da59573157954f06e6537Signed-off-by Fabrice Fontaine <[email protected]>
Applied to master, thanks.
Regards,
Arnout
Quoted 33 lines
--- package/pipewire/Config.in | 12 ++++++++++++ package/pipewire/pipewire.mk | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-)package/pipewire/Config.in +12
-0@@ -15,6 +15,18 @@ config BR2_PACKAGE_PIPEWIRE if BR2_PACKAGE_PIPEWIRE +config BR2_PACKAGE_PIPEWIRE_COMPRESS_OFFLOAD + bool "pipewire Compress-Offload" + depends on !BR2_STATIC_LIBS # tinycompress + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7 + select BR2_PACKAGE_TINYCOMPRESS + help + Enable ALSA Compress-Offload support + +comment "pipewire Compress-Offload needs a toolchain w/ dynamic library, headers >= 5.7" + depends on BR2_STATIC_LIBS || \ + !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7 + config BR2_PACKAGE_PIPEWIRE_EXAMPLES bool "pipewire examples" helppackage/pipewire/pipewire.mk +0
-0
package/pipewire/pipewire.mk else · line 221
Quoted 8 lines
package/pipewire/pipewire.mk +1
-1@@ -215,7 +215,7 @@ else PIPEWIRE_CONF_OPTS += -Dsdl2=disabled endif -ifeq ($(BR2_PACKAGE_TINYCOMPRESS),y) +ifeq ($(BR2_PACKAGE_PIPEWIRE_COMPRESS_OFFLOAD),y) PIPEWIRE_CONF_OPTS += -Dcompress-offload=enabled PIPEWIRE_DEPENDENCIES += tinycompress else
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot