All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ v2 0/2] Add constant for 16 bits transparent voice
@ 2024-12-16 18:46 Frédéric Danis
  2024-12-16 18:46 ` [PATCH BlueZ v2 1/2] lib: Add constant for 16 bits transparent voice setting Frédéric Danis
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Frédéric Danis @ 2024-12-16 18:46 UTC (permalink / raw)
  To: linux-bluetooth

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.

This also adds a test to checks that BT_VOICE_TRANSPARENT_16BIT voice
settings can be set and get using [set|get]sockopt().

v1 -> v2: Add test to tools/sco-tester

Frédéric Danis (2):
  lib: Add constant for 16 bits transparent voice setting
  sco-tester: Add test for BT_VOICE_TRANSPARENT_16BIT constant

 lib/bluetooth.h    |  1 +
 tools/sco-tester.c | 28 ++++++++++++++++++++++++++++
 2 files changed, 29 insertions(+)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-12-16 21:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-16 18:46 [PATCH BlueZ v2 0/2] Add constant for 16 bits transparent voice Frédéric Danis
2024-12-16 18:46 ` [PATCH BlueZ v2 1/2] lib: Add constant for 16 bits transparent voice setting Frédéric Danis
2024-12-16 20:07   ` Add constant for 16 bits transparent voice bluez.test.bot
2024-12-16 18:46 ` [PATCH BlueZ v2 2/2] sco-tester: Add test for BT_VOICE_TRANSPARENT_16BIT constant Frédéric Danis
2024-12-16 21:50 ` [PATCH BlueZ v2 0/2] Add constant for 16 bits transparent voice patchwork-bot+bluetooth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.