All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ v2 0/2] transport: distinguish BAP mic and playback volumes
@ 2026-01-05 21:07 Pauli Virtanen
  2026-01-05 21:07 ` [PATCH BlueZ v2 1/2] transport: clean up volume set/get for A2DP and VCP Pauli Virtanen
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Pauli Virtanen @ 2026-01-05 21:07 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Pauli Virtanen

v2:
- Drop the bt_bap_stream_is_server() function. The direction can be
  found based on bt_bap_stream_get_dir(), which for BAP Client indicates
  the remote endpoint, and for BAP Server the local endpoint direction.

  Its return value is a bit strange for broadcast, as
  lpac BCAST_SINK -> dir BCAST_SOURCE.

***

Currently we are confusing VCP and MICP volumes.

We are also mixing up AVRCP and VCP volumes.

As microphone volumes are commonly 100% and sound server may set them,
we end up with spurious 100% playback volumes.

Fix this, and also do some cleanup of #ifdefs in the volume code.

Pauli Virtanen (2):
  transport: clean up volume set/get for A2DP and VCP
  transport: distinguish BAP mic and playback volumes

 profiles/audio/avrcp.c     |  10 +--
 profiles/audio/media.c     |   2 +-
 profiles/audio/media.h     |  10 +++
 profiles/audio/transport.c | 133 +++++++++++++++++++++----------------
 profiles/audio/transport.h |  10 +--
 profiles/audio/vcp.c       |  12 ++--
 profiles/audio/vcp.h       |  21 +++++-
 7 files changed, 121 insertions(+), 77 deletions(-)

-- 
2.52.0


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

end of thread, other threads:[~2026-01-08 19:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-05 21:07 [PATCH BlueZ v2 0/2] transport: distinguish BAP mic and playback volumes Pauli Virtanen
2026-01-05 21:07 ` [PATCH BlueZ v2 1/2] transport: clean up volume set/get for A2DP and VCP Pauli Virtanen
2026-01-05 22:04   ` transport: distinguish BAP mic and playback volumes bluez.test.bot
2026-01-05 21:07 ` [PATCH BlueZ v2 2/2] " Pauli Virtanen
2026-01-08 19:50 ` [PATCH BlueZ v2 0/2] " 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.