Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ] lib: Add constant for 16 bits transparent voice setting
@ 2024-12-12 16:14 Frédéric Danis
  2024-12-12 16:46 ` Luiz Augusto von Dentz
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Frédéric Danis @ 2024-12-12 16:14 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.
---
 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
 
-- 
2.34.1


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

* Re: [PATCH BlueZ] lib: Add constant for 16 bits transparent voice setting
  2024-12-12 16:14 [PATCH BlueZ] lib: Add constant for 16 bits transparent voice setting Frédéric Danis
@ 2024-12-12 16:46 ` Luiz Augusto von Dentz
  2024-12-12 17:15 ` [BlueZ] " bluez.test.bot
  2024-12-16 21:50 ` [PATCH BlueZ] " patchwork-bot+bluetooth
  2 siblings, 0 replies; 4+ messages in thread
From: Luiz Augusto von Dentz @ 2024-12-12 16:46 UTC (permalink / raw)
  To: Frédéric Danis; +Cc: linux-bluetooth

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
>
>


-- 
Luiz Augusto von Dentz

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

* RE: [BlueZ] lib: Add constant for 16 bits transparent voice setting
  2024-12-12 16:14 [PATCH BlueZ] lib: Add constant for 16 bits transparent voice setting Frédéric Danis
  2024-12-12 16:46 ` Luiz Augusto von Dentz
@ 2024-12-12 17:15 ` bluez.test.bot
  2024-12-16 21:50 ` [PATCH BlueZ] " patchwork-bot+bluetooth
  2 siblings, 0 replies; 4+ messages in thread
From: bluez.test.bot @ 2024-12-12 17:15 UTC (permalink / raw)
  To: linux-bluetooth, frederic.danis

[-- Attachment #1: Type: text/plain, Size: 1260 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=917289

---Test result---

Test Summary:
CheckPatch                    PENDING   0.35 seconds
GitLint                       PENDING   0.29 seconds
BuildEll                      PASS      20.44 seconds
BluezMake                     PASS      1517.29 seconds
MakeCheck                     PASS      13.29 seconds
MakeDistcheck                 PASS      158.94 seconds
CheckValgrind                 PASS      214.78 seconds
CheckSmatch                   PASS      272.15 seconds
bluezmakeextell               PASS      98.84 seconds
IncrementalBuild              PENDING   0.33 seconds
ScanBuild                     PASS      851.99 seconds

Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:

##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:

##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:



---
Regards,
Linux Bluetooth


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

* Re: [PATCH BlueZ] lib: Add constant for 16 bits transparent voice setting
  2024-12-12 16:14 [PATCH BlueZ] lib: Add constant for 16 bits transparent voice setting Frédéric Danis
  2024-12-12 16:46 ` Luiz Augusto von Dentz
  2024-12-12 17:15 ` [BlueZ] " bluez.test.bot
@ 2024-12-16 21:50 ` patchwork-bot+bluetooth
  2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+bluetooth @ 2024-12-16 21:50 UTC (permalink / raw)
  To: =?utf-8?b?RnLDqWTDqXJpYyBEYW5pcyA8ZnJlZGVyaWMuZGFuaXNAY29sbGFib3JhLmNvbT4=?=
  Cc: linux-bluetooth

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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-12 16:14 [PATCH BlueZ] lib: Add constant for 16 bits transparent voice setting Frédéric Danis
2024-12-12 16:46 ` Luiz Augusto von Dentz
2024-12-12 17:15 ` [BlueZ] " bluez.test.bot
2024-12-16 21:50 ` [PATCH BlueZ] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox