]> www.infradead.org Git - users/dwmw2/linux.git/commit
Bluetooth: SCO: Add support for 16 bits transparent voice setting
authorFrédéric Danis <frederic.danis@collabora.com>
Thu, 5 Dec 2024 15:51:59 +0000 (16:51 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 12 Dec 2024 14:24:35 +0000 (09:24 -0500)
commit29a651451e6c264f58cd9d9a26088e579d17b242
tree7d5990699308d68946a22af62d462640c02665a9
parent9bde7c3b3ad0e1f39d6df93dd1c9caf63e19e50f
Bluetooth: SCO: Add support for 16 bits transparent voice setting

The voice setting is used by sco_connect() or sco_conn_defer_accept()
after being set by sco_sock_setsockopt().

The PCM part of the voice setting is used for offload mode through PCM
chipset port.
This commits add support for mSBC 16 bits offloading, i.e. audio data
not transported over HCI.

The BCM4349B1 supports 16 bits transparent data on its I2S port.
If BT_VOICE_TRANSPARENT is used when accepting a SCO connection, this
gives only garbage audio while using BT_VOICE_TRANSPARENT_16BIT gives
correct audio.
This has been tested with connection to iPhone 14 and Samsung S24.

Fixes: ad10b1a48754 ("Bluetooth: Add Bluetooth socket voice option")
Signed-off-by: Frédéric Danis <frederic.danis@collabora.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/bluetooth.h
net/bluetooth/sco.c