mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
spa: bluez: fix whitespaces
This commit is contained in:
parent
5bb2224da3
commit
0b87144d26
3 changed files with 12 additions and 12 deletions
|
|
@ -408,11 +408,11 @@ static int media_codec_to_endpoint(const struct media_codec *codec,
|
||||||
|
|
||||||
if (direction == SPA_BT_MEDIA_SOURCE)
|
if (direction == SPA_BT_MEDIA_SOURCE)
|
||||||
endpoint = codec->bap ? BAP_SOURCE_ENDPOINT : A2DP_SOURCE_ENDPOINT;
|
endpoint = codec->bap ? BAP_SOURCE_ENDPOINT : A2DP_SOURCE_ENDPOINT;
|
||||||
else if (direction == SPA_BT_MEDIA_SINK)
|
else if (direction == SPA_BT_MEDIA_SINK)
|
||||||
endpoint = codec->bap ? BAP_SINK_ENDPOINT : A2DP_SINK_ENDPOINT;
|
endpoint = codec->bap ? BAP_SINK_ENDPOINT : A2DP_SINK_ENDPOINT;
|
||||||
else if (direction == SPA_BT_MEDIA_SOURCE_BROADCAST)
|
else if (direction == SPA_BT_MEDIA_SOURCE_BROADCAST)
|
||||||
endpoint = BAP_BROADCAST_SOURCE_ENDPOINT;
|
endpoint = BAP_BROADCAST_SOURCE_ENDPOINT;
|
||||||
else if (direction == SPA_BT_MEDIA_SINK_BROADCAST)
|
else if (direction == SPA_BT_MEDIA_SINK_BROADCAST)
|
||||||
endpoint = BAP_BROADCAST_SINK_ENDPOINT;
|
endpoint = BAP_BROADCAST_SINK_ENDPOINT;
|
||||||
|
|
||||||
*object_path = spa_aprintf("%s/%s", endpoint,
|
*object_path = spa_aprintf("%s/%s", endpoint,
|
||||||
|
|
@ -2540,7 +2540,7 @@ static struct spa_bt_remote_endpoint *remote_endpoint_find(struct spa_bt_monitor
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct spa_bt_device *create_bcast_device(struct spa_bt_monitor *monitor, const char *object_path)
|
static struct spa_bt_device *create_bcast_device(struct spa_bt_monitor *monitor, const char *object_path)
|
||||||
{
|
{
|
||||||
struct spa_bt_device *d;
|
struct spa_bt_device *d;
|
||||||
struct spa_bt_adapter *adapter;
|
struct spa_bt_adapter *adapter;
|
||||||
|
|
||||||
|
|
@ -2607,7 +2607,7 @@ static int remote_endpoint_update_props(struct spa_bt_remote_endpoint *remote_en
|
||||||
if (device == NULL) {
|
if (device == NULL) {
|
||||||
/*
|
/*
|
||||||
* If a broadcast sink endpoint is detected (over DBus) a new device
|
* If a broadcast sink endpoint is detected (over DBus) a new device
|
||||||
* will be created. This device will be our simulated remote device.
|
* will be created. This device will be our simulated remote device.
|
||||||
* This is done because BlueZ sets the adapter as the device
|
* This is done because BlueZ sets the adapter as the device
|
||||||
* that is connected to for a broadcast sink endpoint/transport.
|
* that is connected to for a broadcast sink endpoint/transport.
|
||||||
*/
|
*/
|
||||||
|
|
@ -4863,7 +4863,7 @@ static DBusHandlerResult object_manager_handler(DBusConnection *c, DBusMessage *
|
||||||
codec_id, caps, caps_size);
|
codec_id, caps, caps_size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (endpoint_should_be_registered(monitor, codec, SPA_BT_MEDIA_SINK_BROADCAST)) {
|
if (endpoint_should_be_registered(monitor, codec, SPA_BT_MEDIA_SINK_BROADCAST)) {
|
||||||
caps_size = codec->fill_caps(codec, MEDIA_CODEC_FLAG_SINK, caps);
|
caps_size = codec->fill_caps(codec, MEDIA_CODEC_FLAG_SINK, caps);
|
||||||
if (caps_size < 0)
|
if (caps_size < 0)
|
||||||
|
|
@ -5064,7 +5064,7 @@ static bool have_codec_endpoints(struct spa_bt_monitor *monitor, bool bap)
|
||||||
continue;
|
continue;
|
||||||
if (endpoint_should_be_registered(monitor, codec, SPA_BT_MEDIA_SINK) ||
|
if (endpoint_should_be_registered(monitor, codec, SPA_BT_MEDIA_SINK) ||
|
||||||
endpoint_should_be_registered(monitor, codec, SPA_BT_MEDIA_SOURCE) ||
|
endpoint_should_be_registered(monitor, codec, SPA_BT_MEDIA_SOURCE) ||
|
||||||
endpoint_should_be_registered(monitor, codec, SPA_BT_MEDIA_SOURCE_BROADCAST) ||
|
endpoint_should_be_registered(monitor, codec, SPA_BT_MEDIA_SOURCE_BROADCAST) ||
|
||||||
endpoint_should_be_registered(monitor, codec, SPA_BT_MEDIA_SINK_BROADCAST))
|
endpoint_should_be_registered(monitor, codec, SPA_BT_MEDIA_SINK_BROADCAST))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1779,8 +1779,8 @@ static struct spa_pod *build_profile(struct impl *this, struct spa_pod_builder *
|
||||||
case DEVICE_PROFILE_BAP:
|
case DEVICE_PROFILE_BAP:
|
||||||
{
|
{
|
||||||
uint32_t profile = device->connected_profiles &
|
uint32_t profile = device->connected_profiles &
|
||||||
(SPA_BT_PROFILE_BAP_SINK | SPA_BT_PROFILE_BAP_SOURCE
|
(SPA_BT_PROFILE_BAP_SINK | SPA_BT_PROFILE_BAP_SOURCE
|
||||||
| SPA_BT_PROFILE_BAP_BROADCAST_SOURCE
|
| SPA_BT_PROFILE_BAP_BROADCAST_SOURCE
|
||||||
| SPA_BT_PROFILE_BAP_BROADCAST_SINK);
|
| SPA_BT_PROFILE_BAP_BROADCAST_SINK);
|
||||||
size_t idx;
|
size_t idx;
|
||||||
const struct media_codec *media_codec;
|
const struct media_codec *media_codec;
|
||||||
|
|
@ -1792,10 +1792,10 @@ static struct spa_pod *build_profile(struct impl *this, struct spa_pod_builder *
|
||||||
if (profile == 0)
|
if (profile == 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if ((profile & (SPA_BT_PROFILE_BAP_SINK)) ||
|
if ((profile & (SPA_BT_PROFILE_BAP_SINK)) ||
|
||||||
(profile & (SPA_BT_PROFILE_BAP_BROADCAST_SINK)))
|
(profile & (SPA_BT_PROFILE_BAP_BROADCAST_SINK)))
|
||||||
n_sink++;
|
n_sink++;
|
||||||
if ((profile & (SPA_BT_PROFILE_BAP_SOURCE)) ||
|
if ((profile & (SPA_BT_PROFILE_BAP_SOURCE)) ||
|
||||||
(profile & (SPA_BT_PROFILE_BAP_BROADCAST_SOURCE)))
|
(profile & (SPA_BT_PROFILE_BAP_BROADCAST_SOURCE)))
|
||||||
n_source++;
|
n_source++;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -325,7 +325,7 @@ static struct stream *stream_create(struct spa_bt_transport *t, struct group *gr
|
||||||
struct spa_audio_info format = { 0 };
|
struct spa_audio_info format = { 0 };
|
||||||
int res;
|
int res;
|
||||||
bool sink;
|
bool sink;
|
||||||
if((t->profile == SPA_BT_PROFILE_BAP_SINK) ||
|
if((t->profile == SPA_BT_PROFILE_BAP_SINK) ||
|
||||||
(t->profile == SPA_BT_PROFILE_BAP_BROADCAST_SINK)) {
|
(t->profile == SPA_BT_PROFILE_BAP_BROADCAST_SINK)) {
|
||||||
sink = true;
|
sink = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue