[pulseaudio-discuss] [PATCH v1 1/4] bluetooth: Minor style fixes
Mikel Astiz
mikel.astiz.oss at gmail.com
Thu Jul 26 05:32:45 PDT 2012
From: Mikel Astiz <mikel.astiz at bmw-carit.de>
Fix some minor style fixes to be consistent with the project coding
style.
---
src/modules/bluetooth/module-bluetooth-device.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c
index b72726a..95cde7b 100644
--- a/src/modules/bluetooth/module-bluetooth-device.c
+++ b/src/modules/bluetooth/module-bluetooth-device.c
@@ -227,8 +227,8 @@ static void a2dp_set_bitpool(struct userdata *u, uint8_t bitpool)
pa_log_debug("Bitpool has changed to %u", a2dp->sbc.bitpool);
u->block_size =
- (u->link_mtu - sizeof(struct rtp_header) - sizeof(struct rtp_payload))
- / a2dp->frame_length * a2dp->codesize;
+ (u->link_mtu - sizeof(struct rtp_header) - sizeof(struct rtp_payload))
+ / a2dp->frame_length * a2dp->codesize;
pa_sink_set_max_request_within_thread(u->sink, u->block_size);
pa_sink_set_fixed_latency_within_thread(u->sink,
@@ -1701,9 +1701,8 @@ static int bt_transport_config_a2dp(struct userdata *u) {
a2dp->frame_length = sbc_get_frame_length(&a2dp->sbc);
u->block_size =
- ((u->link_mtu - sizeof(struct rtp_header) - sizeof(struct rtp_payload))
- / a2dp->frame_length
- * a2dp->codesize);
+ (u->link_mtu - sizeof(struct rtp_header) - sizeof(struct rtp_payload))
+ / a2dp->frame_length * a2dp->codesize;
pa_log_info("SBC parameters:\n\tallocation=%u\n\tsubbands=%u\n\tblocks=%u\n\tbitpool=%u\n",
a2dp->sbc.allocation, a2dp->sbc.subbands, a2dp->sbc.blocks, a2dp->sbc.bitpool);
--
1.7.7.6
More information about the pulseaudio-discuss
mailing list