zephyr/samples/bluetooth/hap_ha
Emil Gydesen c6cc034b5c Bluetooth: Audio: Add fallback to get_chan_allocation
Added a fallback parameter to
bt_audio_codec_cfg_get_chan_allocation as absence of
channel allocation in BAP implicitly means Mono.
In the case that it is absent,
BT_AUDIO_LOCATION_MONO_AUDIO is the returned value.

This commit also fixes the implementation of
bt_audio_codec_cfg_get_frame_blocks_per_sdu as it only applies to
LC3 (as per the BAP spec). It also adds additional testing of it

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-06-13 05:41:47 -04:00
..
boards samples/bluetooth/hap_ha: Enable in native_sim 2023-11-14 09:52:34 +02:00
src Bluetooth: Audio: Add fallback to get_chan_allocation 2024-06-13 05:41:47 -04:00
banded.conf Bluetooth: has: Make HAS registration dynamic 2022-12-20 17:04:45 +00:00
binaural.conf Bluetooth: has: Make HAS registration dynamic 2022-12-20 17:04:45 +00:00
CMakeLists.txt Bluetooth: has: Make HAS registration dynamic 2022-12-20 17:04:45 +00:00
Kconfig Bluetooth: has: Make HAS registration dynamic 2022-12-20 17:04:45 +00:00
prj.conf Bluetooth: BAP: Unicast server depend on PACS 2024-04-30 14:30:45 -04:00
README.rst Bluetooth: samples: Add HAP Hearing Aid sample application 2022-08-01 18:10:34 +01:00
sample.yaml samples/bluetooth/hap_ha: Enable in native_sim 2023-11-14 09:52:34 +02:00

.. _bluetooth_hap_ha:

Bluetooth: HAP Hearing Aid (HA)
###############################

Overview
********

Application demonstrating the LE Audio Hearing Aid sample functionality.
Starts advertising and awaits connection from a Hearing Aid Unicast Client (HAUC)
or Hearing Aid Remote Controller (HARC).

Requirements
************

* BlueZ running on the host, or
* A board with Bluetooth Low Energy 5.2 support

Building and Running
********************
This sample can be found under
:zephyr_file:`samples/bluetooth/hap_ha` in the Zephyr tree.

See :ref:`bluetooth samples section <bluetooth-samples>` for details.