hfp_hf_bluez5: Remove duplicated include
handsfree-audio: Add card driver

This patch adds a new handsfree audio driver abstration to allow
implementing the connect callbacks and other potential functions
specific of each HFP profile version. This approach also avoids
including dependency of hfpmodem in handsfree-audio, keeping the service
level handling inside the hfp_hf_bluez5 only.
hfp_hf_bluez5: Register handsfree audio driver

This patch registers the Handsfree Audio Card driver for devices
compliant with HFP 1.5.
hfp_hf_bluez5: Add extracting version

This patch parses and reads the profile "Version" that comes in the fd
dictionary of the NewConnection method. "Version" is input for Audio Card
registration.
handsfree-audio: Add version to card driver

This patch extends the Handsfree Audio Card driver adding the Handsfree
Profile version to allow switching different drivers to manage SCO
connections or any other specific action related to a given profile
version.
hfp_hf_bluez5: Pass version to card registration

Informs the HFP version of the remote device when the Audio Card is
created.
hfp_hf_bluez5: Add version to HFP 1.5 card driver
core: Add bt_str2ba() to bluetooth.h

This patch adds a utility Bluetooth function to convert Bluetooth
address from string to bdaddr_t.
hfp_hf_bluez5: Add HFP 1.5 connect implementation

This patch adds the Audio Card driver connect callback implementation
to handle SCO connection requested by the driver. This approach
addresses devices compliant with HFP 1.5
handsfree-audio: Add calling connect callback

This patch adds the call of the connect callback implemented in the
driver when "Connect" method of the Audio Card gets called.
handsfree-audio: Add connect GIOChannel watch

This patch adds the GIOChannel watch of the SCO socket. For HF initiated
connections, when the audio connection is established the reply for the
Card "Connect" method should be sent.
handsfree-audio: Add sending SCO fd

This patch adds the call of NewConnection method when the SCO connection
is established for HF initiated scenarios.
handsfree-audio: Return NotAvailable on "Connect"

Returns "Operation currently not available" if "Connect" method of the
Handsfree Audio Card gets called and there isn't an agent registered.
handsfree-audio: Return InProgress on Connect

This patch returns "Operation already in progress" if there is a
pending Handsfree Audio Card "Connect" method call pending.
handsfree-audio: Check agent before sending fd

This patch avoids sending the SCO fd when the connection is established
and the agent left the bus. This check covers the scenario when the
agent leaves the bus between "Connect" method call until the SCO
GIOChannel watch gets called.
doc: Add Handsfree Audio Card "Connect" errors
handsfree-audio: Add card driver for HFP 1.6

This patch registers the Handsfree Audio Card driver for devices
compliant with HFP 1.6.
handsfree-audio: Add user data to card driver

For hfp_hf_bluez5 plugin, the modem reference needs to be passed using
the user data. Access to service level connection is required to send
AT commands.

FIXME: Split it

hfp_hf_bluez5: Pass modem as user data

This patch adds the modem reference as user data when the Handsfree
Audio Card is created, allowing to access the service level connection
in the connect callback.
handsfree-audio: Add user data to connect callback

This patch adds the user data in the Handsfree Audio driver connect
callback declaration.

FIXME: Split

hfp_hf_bluez5: Add user data to connect callback

This patch adds the user data in the Handsfree Audio driver connect
implementation to allow accessing modem reference.
hfp_hf_bluez5: Add HFP 1.6 connect implementation

This patch implements the HF initiate SCO connection for devices
compliant with HFP 1.6. HF sends AT+BCC to inform the AG that audio
connection is required.