[pulseaudio-discuss] [PATCH next v1 0/4] Bluetooth cleanup & refactoring

Mikel Astiz mikel.astiz.oss at gmail.com
Thu Dec 6 01:35:16 PST 2012


From: Mikel Astiz <mikel.astiz at bmw-carit.de>

Disclaimer: these patches are intended for the next branch and they don't even apply to the current upstream master.

v1 includes the changes proposed by Tanu:
- Cosmetic changes
- Volume-rounding code improved
- Transport hashmap updated outside transport_new()/transport_free()

Consider squashing patches v1 3/4 and 4/4 since they're very related.

>From original cover-letter:

There are two main changes in the bluetooth roadmap:
1. Refactor the hooks to centralize them in a similar way that the PA core does.
2. Refactor the Bluetooth code so that the transition to BlueZ 5 is easier.

Before addressing these changes, this patchset proposes some code cleanup.

Mikel Astiz (4):
  bluetooth: Use round() to convert PA<->BT volumes
  bluetooth: Add transport hashmap to discovery
  bluetooth: Use transport array instead of hashmap for devices
  bluetooth: Remove pa_bluetooth_device_get_transport()

 src/modules/bluetooth/bluetooth-util.c          | 67 +++++++++++--------------
 src/modules/bluetooth/bluetooth-util.h          |  5 +-
 src/modules/bluetooth/module-bluetooth-device.c | 40 ++++-----------
 3 files changed, 42 insertions(+), 70 deletions(-)

-- 
1.7.11.7



More information about the pulseaudio-discuss mailing list