All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/1] avctp: Set browsing channel connection for ct
@ 2013-01-22 10:34 Alexandros Antonopoulos
  2013-01-22 10:34 ` [RFC 1/1] " Alexandros Antonopoulos
  0 siblings, 1 reply; 3+ messages in thread
From: Alexandros Antonopoulos @ 2013-01-22 10:34 UTC (permalink / raw)
  To: linux-bluetooth

A few comments:
Handling channel creation for AVRCP:
  For AVRCP >= 1.4 the browsing channel can be connected after the
control channel is connected successfully.
  It's not clear for me what bluez should do in case the browsing
channel connection fails. There is nothing stopping bluez for still
providing avrcp 1.3 functionality over the control channel.
  If the choice is to allow the use of the control channel even if the
browsing one fails then bluez needs the logic in
avrcp.c:state_changed(). If not then both channels must be destroyed
and the session must not be initialized.
State AVCTP_STATE_CONNECTED in state_changed has also to differentiate
between AVRCP <= 1.3 and AVRCP >= 1.4. In AVRCP <= 1.3 after the
control channel is created the avrcp session can be initialized.
In AVRCP >= 1.4 we need first to try and connect the browsing channel.
The session can be created if:
- The state is AVCTP_STATE_BROWSING_CONNECTED (if the browsing channel
was connected successfully),
- The state is AVCTP_STATE_CONNECTED and old_state is
AVCTP_STATE_BROWSING_CONNECTING (if the browsing channel connection
failed),
- The state is AVCTP_STATE_CONNECTED but avctp_connect_browsing fails.

Handling the feature mask:
Since bluez will support AVRCP 1.5 is the AVRCP_FEATURE_BROWSING
actually required? It was checked on the target side during the session
init.

Alexandros Antonopoulos (1):
  avctp: Set browsing channel connection for ct

 profiles/audio/avctp.c  | 11 +++++++++++
 profiles/audio/avctp.h  |  4 +++-
 profiles/audio/avrcp.c  | 28 +++++++++++++++++++++++-----
 profiles/audio/device.c |  4 ++++
 4 files changed, 41 insertions(+), 6 deletions(-)

-- 
1.8.1


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

end of thread, other threads:[~2013-01-22 16:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-22 10:34 [RFC 0/1] avctp: Set browsing channel connection for ct Alexandros Antonopoulos
2013-01-22 10:34 ` [RFC 1/1] " Alexandros Antonopoulos
2013-01-22 16:01   ` Luiz Augusto von Dentz

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.