-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Bluetooth: Audio: Update BT_BAP_SCAN_DELEGATOR dependency to GATT_DYN… #79360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bluetooth: Audio: Update BT_BAP_SCAN_DELEGATOR dependency to GATT_DYN… #79360
Conversation
I guess mesh changed by coincidence? |
@@ -41,6 +41,7 @@ CONFIG_BT_ISO_TX_BUF_COUNT=4 | |||
CONFIG_BT_BAP_BROADCAST_ASSISTANT=y | |||
|
|||
# Broadcast Sink | |||
CONFIG_BT_GATT_DYNAMIC_DB=y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is already set in prj.conf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok.
I believe this is very relevant for mesh since we change services at run-time after provisioning (removal of Mesh Provisioning Service and exposing Mesh Proxy Service). I also compiled 'light' sample on NCSv2.6.0 and I see |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good for mesh.
No need for explicit selection of Kconfig options that have been enabled by default for ages: zephyr/subsys/bluetooth/mesh/Kconfig Lines 37 to 40 in d022d31
|
From what I see this doesn't depend on whether mesh enabled or not:
This should be explained in the issue more clearly. |
At the moment, I don’t have a ready-to-submit alternative solution. However, I believe there should be more alternatives for this issue. I think the current solution here is the simplest because I have mostly changed the configs which select |
I think it's worth investigating alternative solutions that doesn't affect mesh (and preferably nothing else besides the LE Audio stack). If you do get something else working, please submit that as a separate commit, either in this PR or another for comparison |
Perhaps you want something like this: 39eb100 ? All audio and mesh upstream samples compile with this change. But as you see now you (and all who use audio) need explicitly enable BT_GATT_DYNAMIC_DB and some other Bluetooth options. If you want to proceed with this, I'd recommend go through audio Kconfigs and replace "select BT_" to "depends on BT_" for all upper Bluetooth Kconfig options. |
It is not a bad idea, though it will make all "prj.conf" look quite big and littered with many KConfig options. Then I think, may be it is worth to not introduce this change everywhere and do it only at a place where it actually creates a problem (like proposed in this PR). This could be middle ground even though it is not so pure and pious. |
That's closer to the result I had expected from fixing the issue as well. Ideally we want to replace all
I think this is a subjective matter. For example enabling |
Thanks. Although it involves a considerable number of changes in the config symbols within the Kconfig files, I think it could be a good solution since it only affects the BT_Audio area. As I still haven’t had time to investigate it and possibly find a better solution, I can cherry-pick it and push an update to this PR... |
As mentioned earlier, these changes are likely ones we want in the future anyways. We should be able to replace all |
Indeed |
samples/bluetooth/hci_ipc/nrf5340_cpunet_iso-bt_ll_sw_split.conf
Outdated
Show resolved
Hide resolved
samples/bluetooth/hci_uart_3wire/overlay-all-bt_ll_sw_split.conf
Outdated
Show resolved
Hide resolved
tests/bsim/bluetooth/ll/cis/sysbuild/hci_ipc/nrf5340_cpunet_iso_acl_group-bt_ll_sw_split.conf
Outdated
Show resolved
Hide resolved
@babrsn needs a rebase for the CCID changes I believe :) |
Changed dependency of the BT_BAP_SCAN_DELEGATOR to GATT_DYNAMIC_DB from 'select' to 'depends on' and solved all loop dependencies caused by this change. Fixes #79108 Signed-off-by: Babak Arisian <bbaa@demant.com>
I have contributed the following PRs: zephyrproject-rtos/zephyr#80000 zephyrproject-rtos/zephyr#79360 zephyrproject-rtos/zephyr#78846 zephyrproject-rtos/zephyr#78751 zephyrproject-rtos/zephyr#74950 zephyrproject-rtos/zephyr#74946 zephyrproject-rtos/zephyr#73845 zephyrproject-rtos/zephyr#72849 and am attending the weekly LE Audio Zephyr meetings. (cherry picked from commit c903013) Original-Signed-off-by: Babak Arisian <bbaa@demant.com> GitOrigin-RevId: c903013 Cr-Build-Id: 8732568629207591185 Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8732568629207591185 Copybot-Job-Name: zephyr-main-copybot-downstream Change-Id: Iab40058a1cc005e6454c07b4156fc271c0b84fca Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5982745 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
…AMIC_DB
Changed dependency of the BT_BAP_SCAN_DELEGATOR to GATT_DYNAMIC_DB from 'select' to 'depends on' and solved all loop dependencies caused by this change.
Fixes #79108