Linux bluetooth development
 help / color / mirror / Atom feed
From: Mikel Astiz <mikel.astiz.oss@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Mikel Astiz <mikel.astiz@bmw-carit.de>
Subject: [PATCH v3 0/5] Audio profile authorization
Date: Thu, 27 Sep 2012 10:07:47 +0200	[thread overview]
Message-ID: <1348733272-2117-1-git-send-email-mikel.astiz.oss@gmail.com> (raw)

From: Mikel Astiz <mikel.astiz@bmw-carit.de>

v3 is similar to v2 but rebased and adapter against the latest upstream
changes.

Patch v2 2/6 has been dropped since it was not intended to be part of this patchet.

>From original cover-letter:

The agent-based profile authorization makes a special consideration for audio profiles: they are processed as if they all belonged to one single profile. This includes several internal policies that are inconvenient for IVI use-cases.

This patchset removes this exception by making use of the conventional authorization mechanism also for audio profiles.

The new approach is not straightforward since devices might send several connection requets in parallel (i.e. HFP, A2DP, AVRCP). This cannot be neither automatically rejected (EBUSY) nor forwarded in parallel to the agent, so a queue was added to store the pending authorization requests. These will be sent to the agent sequentially.

Mikel Astiz (5):
  build: Update glib dependency to 2.32
  adapter: Replace device authorizing flag
  adapter: Use authorization id for cancelling
  adapter: Queue parallel authorization requests
  audio: Drop audio-specific authorization mechanism

 acinclude.m4            |   4 +-
 audio/avctp.c           |  30 ++++----
 audio/avdtp.c           |  25 +++++--
 audio/device.c          | 144 -----------------------------------
 audio/device.h          |  12 +--
 audio/manager.c         |  18 +++--
 plugins/service.c       |  18 +++--
 profiles/input/server.c |   2 +-
 src/adapter.c           | 194 +++++++++++++++++++++++++++++++-----------------
 src/adapter.h           |   2 +-
 src/device.c            |  11 ---
 src/device.h            |   2 -
 src/profile.c           |  24 +++---
 13 files changed, 190 insertions(+), 296 deletions(-)

-- 
1.7.11.4


             reply	other threads:[~2012-09-27  8:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-27  8:07 Mikel Astiz [this message]
2012-09-27  8:07 ` [PATCH v3 1/5] build: Update glib dependency to 2.32 Mikel Astiz
2012-09-27  8:07 ` [PATCH v3 2/5] adapter: Replace device authorizing flag Mikel Astiz
2012-09-27  8:07 ` [PATCH v3 3/5] adapter: Use authorization id for cancelling Mikel Astiz
2012-09-27  8:07 ` [PATCH v3 4/5] adapter: Queue parallel authorization requests Mikel Astiz
2012-09-27  8:07 ` [PATCH v3 5/5] audio: Drop audio-specific authorization mechanism Mikel Astiz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1348733272-2117-1-git-send-email-mikel.astiz.oss@gmail.com \
    --to=mikel.astiz.oss@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=mikel.astiz@bmw-carit.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox