-
Notifications
You must be signed in to change notification settings - Fork 410
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
host/audio: move old LE Audio files to new directory #1714
Conversation
@MariuszSkamra PTAL |
5453517
to
6a63d3c
Compare
nimble/host/pkg.yml
Outdated
pkg.deps.BLE_ISO: | ||
- nimble/host/audio | ||
|
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.
I'm not sure I understand it correctly, this makes BLE_ISO dependent on nimble/host/audio.
If so, that does not seem right to me as you can have BLE_ISO without audio, but you cannot have audio without BLE_ISO.
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.
maybe we should have one common config for audio? I can add one here
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.
sounds good to me
apps/btshell/pkg.yml
Outdated
@@ -35,6 +35,7 @@ pkg.deps: | |||
- nimble/host/services/gatt | |||
- nimble/host/store/config | |||
- nimble/host/util | |||
- nimble/host/audio |
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 seems to be ordered, thus I'd place nimble/host/audio
right after nimble/host
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.
moved to deps of BLE_AUDIO
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.
dep should be added by package which defines BLE_AUDIO
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.
done
725b726
to
32cb19b
Compare
nimble/host/audio/syscfg.yml
Outdated
@@ -17,5 +17,8 @@ | |||
# | |||
|
|||
syscfg.defs: | |||
BLE_AUDIO: | |||
description: 'Indicates that a BLE Audio is present.' |
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.
I'd move this config to host/syscfg.yml
, similarly where BLE_MESH
is defined.
Plus, I'd suggest to describe this option like:
description: 'Indicates that a BLE Audio is present.' | |
description: 'This option enables Bluetooth LE Audio support.' |
Otherwise LGTM
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.
Fully agree :)
32cb19b
to
e328c7c
Compare
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.
LGTM
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.
split this to separate commits ( CI, apps, host)
@@ -440,6 +440,11 @@ syscfg.defs: | |||
that have been enabled in the stack, such as GATT support. | |||
value: 0 | |||
|
|||
BLE_AUDIO: | |||
description: 'This option enables Bluetooth LE Audio support' | |||
value: 0 |
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.
mark this as experimental
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.
done
746168d
to
7f1df8a
Compare
@sjanc as discussed offline, this refactor must be single-commit, because apps won't build otherwise |
apps/btshell/pkg.yml
Outdated
@@ -35,6 +35,7 @@ pkg.deps: | |||
- nimble/host/services/gatt | |||
- nimble/host/store/config | |||
- nimble/host/util | |||
- nimble/host/audio |
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.
dep should be added by package which defines BLE_AUDIO
This patch refactors BLE Audio library to conform to new directory tree introduced in a979570. LE Audio related files present in host/include, host/src and host/services were moved to corelated folders in host/audio. Experimental system config BLE_AUDIO enabling LE Audio feature was introduced. Naming convention for BLE Audio functions, structures and files was unified - replaced `bcst` shorthand with `broadcast`. For example, ble_audio_pub_bcst_announcement_feat was renamed to ble_audio_pub_broadcast_announcement_feat. Contents of host/include/ble_audio_common.h was incorporated into host/audio/include/audio/ble_audio.h. Apps and Auracast service were adjusted to new config and include paths. BLE_MAX_BIG and BLE_MAX_BIS renamed to BLE_ISO_MAX_BIGS and BLE_ISO_MAX_BISES, respectevaly.
LE Audio lives now in nimble/host/audio.