public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] media: Fix G.722 @ 16 kHz codec ID value reported by transport
@ 2026-01-28 10:38 Arkadiusz Bokowy
  2026-01-28 11:34 ` bluez.test.bot
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Arkadiusz Bokowy @ 2026-01-28 10:38 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Arkadiusz Bokowy

The G.722 @ 16 kHz codec ID is 0x01, not 0x02. The 0x02 value comes from
the ASHA ReadOnlyProperties GATT characteristic which is a bitmask with
bits corresponding to codec IDs - setting bit 1 gives bitmask value 0x02.
---
 profiles/audio/media.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/profiles/audio/media.c b/profiles/audio/media.c
index b68290aed..772af1014 100644
--- a/profiles/audio/media.c
+++ b/profiles/audio/media.c
@@ -3752,7 +3752,7 @@ const struct media_endpoint *media_endpoint_get_asha(void)
 	 */
 	static struct media_endpoint asha_endpoint =  {
 		.uuid = ASHA_PROFILE_UUID,
-		.codec = 0x2, /* Currently on G.722 is defined by the spec */
+		.codec = 0x1, /* Currently on G.722 is defined by the spec */
 	};
 
 	return &asha_endpoint;
-- 
2.51.0


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

end of thread, other threads:[~2026-01-29 16:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-28 10:38 [PATCH] media: Fix G.722 @ 16 kHz codec ID value reported by transport Arkadiusz Bokowy
2026-01-28 11:34 ` bluez.test.bot
2026-01-29 15:47 ` [PATCH] " Arun Raghavan
2026-01-29 15:53   ` Arun Raghavan
2026-01-29 16:30   ` patchwork-bot+bluetooth
2026-01-29 16:43   ` bluez.test.bot
2026-01-29 16:30 ` [PATCH] " 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