linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@tieto.com>
To: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 1/3] android/health: Handle incoming streaming data channel request
Date: Wed, 02 Jul 2014 12:26:56 +0200	[thread overview]
Message-ID: <1873266.EFIL8yoYrB@uw000953> (raw)
In-Reply-To: <1404293522-7220-1-git-send-email-ravikumar.veeramally@linux.intel.com>

Hi Ravi,

On Wednesday 02 of July 2014 12:32:00 Ravi kumar Veeramally wrote:
> First data channel should be reliable data channel when remote device
> in sink role request data channel with option any.
> ---
>  android/health.c | 13 +++++++++----
>  1 file changed, 9 insertions(+), 4 deletions(-)
> 
> diff --git a/android/health.c b/android/health.c
> index 1943ced..2d80365 100644
> --- a/android/health.c
> +++ b/android/health.c
> @@ -1423,7 +1423,8 @@ static uint8_t mcap_mdl_conn_req_cb(struct mcap_mcl *mcl, uint8_t mdepid,
>  	struct health_app *app;
>  	struct mdep_cfg *mdep;
>  
> -	DBG("Data channel request: mdepid %u mdlid %u", mdepid, mdlid);
> +	DBG("Data channel request: mdepid %u mdlid %u conf %u",
> +							mdepid, mdlid, *conf);
>  
>  	if (mdepid == MDEP_ECHO)
>  		/* For echo service take last app */
> @@ -1478,10 +1479,14 @@ static uint8_t mcap_mdl_conn_req_cb(struct mcap_mcl *mcl, uint8_t mdepid,
>  
>  	switch (*conf) {
>  	case CHANNEL_TYPE_ANY:
> -		if (mdep->role == HAL_HEALTH_MDEP_ROLE_SINK)
> +		if (mdep->role == HAL_HEALTH_MDEP_ROLE_SINK) {
>  			return MCAP_CONFIGURATION_REJECTED;
> -		else
> -			*conf = CHANNEL_TYPE_RELIABLE;
> +		} else {
> +			if (queue_length(channel->dev->channels) <= 1)
> +				*conf = CHANNEL_TYPE_RELIABLE;
> +			else
> +				*conf = CHANNEL_TYPE_STREAM;
> +		}
>  		break;
>  	case CHANNEL_TYPE_STREAM:
>  		if (mdep->role == HAL_HEALTH_MDEP_ROLE_SOURCE)
> 

All patches applied, thanks.

-- 
Best regards, 
Szymon Janc

      parent reply	other threads:[~2014-07-02 10:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-02  9:32 [PATCH 1/3] android/health: Handle incoming streaming data channel request Ravi kumar Veeramally
2014-07-02  9:32 ` [PATCH 2/3] android/client/health: Change multi dimension array to struct mode Ravi kumar Veeramally
2014-07-02  9:32 ` [PATCH 3/3] android/health: Update PTS result for TC_SRC_CC_BV_09_C Ravi kumar Veeramally
2014-07-02 10:26 ` Szymon Janc [this message]

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=1873266.EFIL8yoYrB@uw000953 \
    --to=szymon.janc@tieto.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=ravikumar.veeramally@linux.intel.com \
    /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;
as well as URLs for NNTP newsgroup(s).