]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:13:20 +0000 (18:13 +0100)
commitd0f4a51246e29358783135897909a2da0a165c08
tree7a902c1386160be710f6380fa77326c0e0a95b51
parent827f30b1dfaf30438168c7f5b0da45d48aa7acdd
Bluetooth: SCO: Add support for 16 bits transparent voice setting

[ Upstream commit 29a651451e6c264f58cd9d9a26088e579d17b242 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/bluetooth/bluetooth.h
net/bluetooth/sco.c