-
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
nimble/audio: Add Audio Broadcast Sink initial implementation #1677
Conversation
40bc8f0
to
5746199
Compare
nimble/host/src/ble_hs_hci_evt.c
Outdated
static ble_hs_hci_evt_le_fn ble_hs_hci_evt_le_create_big_complete; | ||
static ble_hs_hci_evt_le_fn ble_hs_hci_evt_le_terminate_big_complete; | ||
#endif | ||
#if MYNEWT_VAL(BLE_ISO_BROADCAST_SINK) | ||
static ble_hs_hci_evt_le_fn ble_hs_hci_evt_le_big_sync_extablished; |
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.
static ble_hs_hci_evt_le_fn ble_hs_hci_evt_le_big_sync_extablished; | |
static ble_hs_hci_evt_le_fn ble_hs_hci_evt_le_big_sync_established; |
typo :)
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
enum ble_audio_bsnk_sync_state state; | ||
|
||
/** BIS Synchronization */ | ||
uint32_t bis_sync; |
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 think this should be an array - probably pointer with count of entries (subgroups)
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
5746199
to
048498a
Compare
048498a
to
8279cae
Compare
0b4efd2
to
e5fec9e
Compare
@@ -536,17 +536,8 @@ struct ble_audio_broadcast_name { | |||
/** BLE Audio event: BASS - Remote Scan Started */ | |||
#define BLE_AUDIO_EVENT_BASS_REMOTE_SCAN_STARTED 4 | |||
|
|||
/** BLE Audio event: BASS - Add Source */ |
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.
What's the reason to remove these events? I guess the upper layer knows that some actions were performed because the action callback will be called, but this callback is not mandatory. So if the operation was accepted autonomously, there will be no feedback for upper layer/app. For example, we could never enter here:
e5a346b#diff-b8c009ce2010b2473424d883cd93e8fe365b1c1af565ad8ba875280fd069133cR324
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.
not applicable
31b2fb7
to
e344999
Compare
e344999
to
cc423ad
Compare
3c15b4e
to
dcbc798
Compare
dcbc798
to
255892f
Compare
uint32_t presentation_delay; | ||
|
||
/** Pointer to Maximum Subevents value to initialize. */ | ||
uint8_t *out_mse; |
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.
We should add NSE and BN here so application has any means to choose out_MSE.
Also we should set default to 0x00 which means controller can choose up to NSE
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
uint8_t *out_mse; | ||
|
||
/** Pointer to Sync Timeout value to initialize. */ | ||
uint16_t *out_sync_timeout; |
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.
Lets add comment about minimum and also set default here:
BIG_Sync_Timeout set by the Host is less than 6 × ISO_Interval, the
Controller shall set the timeout to 6 × ISO_Interval
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
ea5fd34
to
d65b611
Compare
This adds initial implementation of audio broadcast sink.
this extends the btshell application with Audio Broadcast Sink functionality.
This enables PACS when Broadcast Sink role is enabled. By default the 16_2 and 24_2 mandatory settings are supported as per spec.
d65b611
to
218617d
Compare
Fixed missing |
|
||
rc = ble_iso_big_sync_create(&big_sync_create_params, &sink->big_handle); | ||
if (rc != 0) { | ||
BLE_HS_LOG_ERROR("big sync failed (%d)\n", rc); |
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.
Shouldn't there also be big_sync_state_set(sink, BIG_SYNC_STGATE_FAILED)
?
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
Depends on: #1691