Message ID | 20241212161445.298083-1-frederic.danis@collabora.com |
---|---|
State | New |
Headers | show |
Series | [BlueZ] lib: Add constant for 16 bits transparent voice setting | expand |
Hi Frédéric, On Thu, Dec 12, 2024 at 11:38 AM Frédéric Danis <frederic.danis@collabora.com> wrote: > > Add 16 bits, 2s complement, transparent air coding format for mSBC. > Corresponding commit implements functionality on kernel side. > > 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. > --- > lib/bluetooth.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/bluetooth.h b/lib/bluetooth.h > index 073ed875d..32e58678b 100644 > --- a/lib/bluetooth.h > +++ b/lib/bluetooth.h > @@ -111,6 +111,7 @@ struct bt_voice { > > #define BT_VOICE_TRANSPARENT 0x0003 > #define BT_VOICE_CVSD_16BIT 0x0060 > +#define BT_VOICE_TRANSPARENT_16BIT 0x0063 > > #define BT_PHY 14 Are you planning on adding support for sco-tester as well? > -- > 2.34.1 > >
Hello: This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>: On Thu, 12 Dec 2024 17:14:45 +0100 you wrote: > Add 16 bits, 2s complement, transparent air coding format for mSBC. > Corresponding commit implements functionality on kernel side. > > 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. > > [...] Here is the summary with links: - [BlueZ] lib: Add constant for 16 bits transparent voice setting https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=9b631e09e943 You are awesome, thank you!
diff --git a/lib/bluetooth.h b/lib/bluetooth.h index 073ed875d..32e58678b 100644 --- a/lib/bluetooth.h +++ b/lib/bluetooth.h @@ -111,6 +111,7 @@ struct bt_voice { #define BT_VOICE_TRANSPARENT 0x0003 #define BT_VOICE_CVSD_16BIT 0x0060 +#define BT_VOICE_TRANSPARENT_16BIT 0x0063 #define BT_PHY 14