linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ v3 0/7] mcp: support multiple MCP and implement local GMCS
@ 2025-12-10 16:13 Pauli Virtanen
  2025-12-10 16:13 ` [PATCH BlueZ v3 1/7] shared/mcp: support multiple MCP, and add non-stub MCS server Pauli Virtanen
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Pauli Virtanen @ 2025-12-10 16:13 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Pauli Virtanen

v3:
- add missing #include to fix build in the test environment

v2:
- fix compilation issues
- remove unnecessary code in get_media_cp_op_supported

***

For Media Control Client, add support for multiple GMCS / MCS services
on the server. Revise the API accordingly.

For Media Control Server, make it a non-stub implementation (OTS still
missing), and add an API the profile can use.

Add tests.

This changes the design of the previous MCP code, so it's mostly a
rewrite.

The shared/mcp: commit doesn't fix the API in profiles/audio, that's
done in the later mcp: commit, as it's a rewrite of the API.

TODO (for later): OTP/OTS parts -- requires design for OTP/OTS
implementation first

TODO (for later): MPRIS integration to GMCS server -- this needs some
redesign in media.c as it's hardcoded to AVRCP there.

Pauli Virtanen (7):
  shared/mcp: support multiple MCP, and add non-stub MCS server
  test-mcp: add tests for MCP / MCS
  mcp: adapt to new MCP API to support multiple remote MCS services
  avctp: move uinput utilities to uinput-util.c
  uinput-util: fix compiler complaint about strncpy usage
  mcp: add local GMCS service that emits uinput media keys
  shared/gatt-client: fix notify_data leak in notify_data_write_ccc

 .gitignore                   |    1 +
 Makefile.am                  |    6 +
 Makefile.plugins             |    4 +-
 lib/bluetooth/uuid.h         |   27 +-
 profiles/audio/avctp.c       |  119 +-
 profiles/audio/mcp.c         |  802 ++++++---
 profiles/audio/uinput-util.c |  148 ++
 profiles/audio/uinput-util.h |   23 +
 src/shared/gatt-client.c     |    3 +
 src/shared/mcp.c             | 3216 ++++++++++++++++++++--------------
 src/shared/mcp.h             |  186 +-
 src/shared/mcs.h             |   51 +-
 unit/test-mcp.c              | 1807 +++++++++++++++++++
 13 files changed, 4652 insertions(+), 1741 deletions(-)
 create mode 100644 profiles/audio/uinput-util.c
 create mode 100644 profiles/audio/uinput-util.h
 create mode 100644 unit/test-mcp.c

-- 
2.51.1


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

end of thread, other threads:[~2025-12-10 17:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-10 16:13 [PATCH BlueZ v3 0/7] mcp: support multiple MCP and implement local GMCS Pauli Virtanen
2025-12-10 16:13 ` [PATCH BlueZ v3 1/7] shared/mcp: support multiple MCP, and add non-stub MCS server Pauli Virtanen
2025-12-10 17:21   ` mcp: support multiple MCP and implement local GMCS bluez.test.bot
2025-12-10 16:13 ` [PATCH BlueZ v3 2/7] test-mcp: add tests for MCP / MCS Pauli Virtanen
2025-12-10 16:13 ` [PATCH BlueZ v3 3/7] mcp: adapt to new MCP API to support multiple remote MCS services Pauli Virtanen
2025-12-10 16:13 ` [PATCH BlueZ v3 4/7] avctp: move uinput utilities to uinput-util.c Pauli Virtanen
2025-12-10 16:25   ` Luiz Augusto von Dentz
2025-12-10 16:13 ` [PATCH BlueZ v3 5/7] uinput-util: fix compiler complaint about strncpy usage Pauli Virtanen
2025-12-10 16:13 ` [PATCH BlueZ v3 6/7] mcp: add local GMCS service that emits uinput media keys Pauli Virtanen
2025-12-10 16:13 ` [PATCH BlueZ v3 7/7] shared/gatt-client: fix notify_data leak in notify_data_write_ccc Pauli Virtanen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).