diff options
| -rw-r--r-- | meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa/0001-meson-add-option-to-enable-disable-plugin-support.patch | 45 | ||||
| -rw-r--r-- | meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa_2.0.0.bb | 3 |
2 files changed, 47 insertions, 1 deletions
diff --git a/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa/0001-meson-add-option-to-enable-disable-plugin-support.patch b/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa/0001-meson-add-option-to-enable-disable-plugin-support.patch new file mode 100644 index 0000000000..57312ac63a --- /dev/null +++ b/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa/0001-meson-add-option-to-enable-disable-plugin-support.patch | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | From 66b2158f80e03d144f192b0be997c813b3f1d00e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Sairamreddy Bojja <sbojja@qti.qualcomm.com> | ||
| 3 | Date: Tue, 9 Sep 2025 17:15:19 +0530 | ||
| 4 | Subject: [PATCH] FROMLIST: meson: add option to enable/disable plugin | ||
| 5 | support | ||
| 6 | |||
| 7 | Default is enabled to support Tinyalsa plugin. | ||
| 8 | |||
| 9 | ref:https://github.com/tinyalsa/tinyalsa/pull/261 | ||
| 10 | |||
| 11 | Signed-off-by: Sairamreddy Bojja <sbojja@qti.qualcomm.com> | ||
| 12 | Upstream-Status: Submitted [https://github.com/tinyalsa/tinyalsa/pull/269] | ||
| 13 | --- | ||
| 14 | meson.build | 4 ++++ | ||
| 15 | meson_options.txt | 2 ++ | ||
| 16 | 2 files changed, 6 insertions(+) | ||
| 17 | |||
| 18 | diff --git a/meson.build b/meson.build | ||
| 19 | index 213f8c8..df4e95a 100644 | ||
| 20 | --- a/meson.build | ||
| 21 | +++ b/meson.build | ||
| 22 | @@ -9,6 +9,10 @@ cc = meson.get_compiler('c') | ||
| 23 | # Dependency on libdl | ||
| 24 | dl_dep = cc.find_library('dl') | ||
| 25 | |||
| 26 | +if get_option('tinyalsa_uses_plugins') | ||
| 27 | + add_project_arguments('-DTINYALSA_USES_PLUGINS', language: 'c') | ||
| 28 | +endif | ||
| 29 | + | ||
| 30 | tinyalsa = library('tinyalsa', | ||
| 31 | 'src/mixer.c', 'src/pcm.c', 'src/pcm_hw.c', 'src/pcm_plugin.c', 'src/snd_card_plugin.c', 'src/mixer_hw.c', 'src/mixer_plugin.c', | ||
| 32 | include_directories: tinyalsa_includes, | ||
| 33 | diff --git a/meson_options.txt b/meson_options.txt | ||
| 34 | index f2e2bc2..dad0242 100644 | ||
| 35 | --- a/meson_options.txt | ||
| 36 | +++ b/meson_options.txt | ||
| 37 | @@ -4,3 +4,5 @@ option('examples', type: 'feature', value: 'auto', yield: true, | ||
| 38 | description : 'Build examples') | ||
| 39 | option('utils', type: 'feature', value: 'auto', yield: true, | ||
| 40 | description : 'Build utility tools') | ||
| 41 | +option('tinyalsa_uses_plugins', type: 'boolean', value: true, | ||
| 42 | + description : 'Enable plugin support') | ||
| 43 | -- | ||
| 44 | 2.34.1 | ||
| 45 | |||
diff --git a/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa_2.0.0.bb b/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa_2.0.0.bb index 8965c8ee75..a34317c819 100644 --- a/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa_2.0.0.bb +++ b/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa_2.0.0.bb | |||
| @@ -8,7 +8,8 @@ LIC_FILES_CHKSUM = "file://NOTICE;md5=d2918795d9185efcbf430b9ad5cda46d" | |||
| 8 | 8 | ||
| 9 | PV .= "+git" | 9 | PV .= "+git" |
| 10 | SRCREV = "f78ed25aced2dfea743867b8205a787bfb091340" | 10 | SRCREV = "f78ed25aced2dfea743867b8205a787bfb091340" |
| 11 | SRC_URI = "git://github.com/tinyalsa/tinyalsa;branch=master;protocol=https" | 11 | SRC_URI = "git://github.com/tinyalsa/tinyalsa;branch=master;protocol=https \ |
| 12 | file://0001-meson-add-option-to-enable-disable-plugin-support.patch" | ||
| 12 | 13 | ||
| 13 | 14 | ||
| 14 | inherit meson | 15 | inherit meson |
