Skip to content

hfp-hf: Enhance HFP Hands-Free profile support

Frédéric Danis linux-bluetooth 2 versions – Applied

Status from this message: This series was applied to bluetooth/bluez.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 1 replyApplied
  2. v112 patches 1 replySuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/12audio/hfp-hf: Add HFP HF server and SDP recordprofiles/audio/hfp-hf.c+253 -01 reply
2/12audio/hfp-hf: Add MediaEndpoint for HFP codecsMakefile.plugins profiles/audio/hfp-hf.c profiles/audio/hfp-hf.h +3 more+686 -10 replies
3/12client/player: Add MediaEndpoints for HFP HF codecsclient/player.c+16 -20 replies
4/12shared/hfp: Add hangup all calls supportsrc/shared/hfp.c src/shared/hfp.h+50 -00 replies
5/12audio/hfp-hf: Add hangup all calls supportprofiles/audio/hfp-hf.c+15 -00 replies
6/12shared/hfp: Add send tones supportsrc/shared/hfp.c src/shared/hfp.h+21 -00 replies
7/12audio/hfp-hf: Add Send Tones supportprofiles/audio/hfp-hf.c+21 -00 replies
8/12client/telephony: Add Send Tones menu entryclient/telephony.c+47 -00 replies
9/12audio/hfp-hf: Add multi calls supportprofiles/audio/hfp-hf.c+142 -00 replies
10/12client/telephony: Add multi calls supportclient/telephony.c+190 -00 replies
11/12shared/hfp: Add codecs supportsrc/shared/hfp.c src/shared/hfp.h+166 -50 replies
12/12audio/hfp-hf: Add codecs supportprofiles/audio/hfp-hf.c+152 -190 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH BlueZ v2 00/12] hfp-hf: Enhance HFP Hands-Free profile support

This series enhanced the HFP Hands-Free (HF) role support in BlueZ:

- Registration:
- Register the HFP HF profile with an SDP record so BlueZ is discoverable/connectable as a Hands-Free device.

- Audio path:
- Register a MediaEndpoint1 per supported HFP codec and wire up MediaTransport creation/configuration so SCO audio is exposed through the standard Media API instead of a bespoke interface.
- Extend bluetoothctl (client/player) with matching menu entries to select/manage the HFP HF MediaEndpoints.

- Codec negotiation:
- Implement AT+BAC / +BCS handling in shared/hfp so the supported codec list is advertised during SLC setup and codec selection from the AG is honored (or renegotiated when unavailable).

- Multi-call handling:
- Implement SwapCalls, ReleaseAndAnswer, ReleaseAndSwap and HoldAndAnswer on org.bluez.Telephony1, plus corresponding bluetoothctl menu entries.
- Add support for releasing all calls except waiting ones (including multiparty calls), both in shared/hfp and audio/hfp-hf.

- DTMF:
- Add AT+VTS-based Send Tones support in shared/hfp and audio/hfp-hf, with a bluetoothctl menu entry to trigger it.

New related PipeWire BlueZ backend draft can be found at:
https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/2978

v1->v2: Fix make distcheck

Frédéric Danis (12):
audio/hfp-hf: Add HFP HF server and SDP record audio/hfp-hf: Add MediaEndpoint for HFP codecs client/player: Add MediaEndpoints for HFP HF codecs shared/hfp: Add hangup all calls support audio/hfp-hf: Add hangup all calls support shared/hfp: Add send tones support audio/hfp-hf: Add Send Tones support client/telephony: Add Send Tones menu entry audio/hfp-hf: Add multi calls support client/telephony: Add multi calls support shared/hfp: Add codecs support audio/hfp-hf: Add codecs support

 Makefile.plugins           |   6 +-
 client/player.c            |  18 +-
 client/telephony.c         | 237 +++++++++
 profiles/audio/hfp-hf.c    | 979 +++++++++++++++++++++++++++++++++++++
 profiles/audio/hfp-hf.h    |  26 +
 profiles/audio/media.c     |  76 +++
 profiles/audio/media.h     |   6 +
 profiles/audio/transport.c | 158 ++++++
 src/shared/hfp.c           | 229 ++++++++-
 src/shared/hfp.h           |  13 +
 10 files changed, 1740 insertions(+), 8 deletions(-)
 create mode 100644 profiles/audio/hfp-hf.h
Signature · 1 line
2.43.0