linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Suraj Sumangala <suraj@Atheros.com>
To: "Gustavo F. Padovan" <padovan@profusion.mobi>
Cc: Suraj Sumangala <Suraj.Sumangala@Atheros.com>,
	"linux-bluetooth@vger.kernel.org"
	<linux-bluetooth@vger.kernel.org>,
	Jothikumar Mothilal <Jothikumar.Mothilal@Atheros.com>
Subject: Re: [PATCH] Bluetooth: Support SCO over HCI for Atheros AR300x Bluetooth device
Date: Wed, 2 Feb 2011 22:01:59 +0530	[thread overview]
Message-ID: <4D4986FF.2070309@Atheros.com> (raw)
In-Reply-To: <20110202161641.GC2273@joana>

Hi Gustavo,

On 2/2/2011 9:46 PM, Gustavo F. Padovan wrote:
> Hi Suraj,
>
> * Suraj Sumangala<suraj@atheros.com>  [2011-01-28 16:19:04 +0530]:
>
>> This patch adds SCO over HCI support to Atheros AR300x HCI transport
>> driver.
>>
>> Signed-off-by: Suraj Sumangala<suraj@atheros.com>
>> ---
>>   drivers/bluetooth/hci_ath.c |   18 +++++++++---------
>>   1 files changed, 9 insertions(+), 9 deletions(-)
>>
>> diff --git a/drivers/bluetooth/hci_ath.c b/drivers/bluetooth/hci_ath.c
>> index 6a160c1..161bd20 100644
>> --- a/drivers/bluetooth/hci_ath.c
>> +++ b/drivers/bluetooth/hci_ath.c
>> @@ -162,11 +162,6 @@ static int ath_enqueue(struct hci_uart *hu, struct sk_buff *skb)
>>   {
>>   	struct ath_struct *ath = hu->priv;
>>
>> -	if (bt_cb(skb)->pkt_type == HCI_SCODATA_PKT) {
>> -		kfree_skb(skb);
>> -		return 0;
>> -	}
>> -
>>   	/*
>>   	 * Update power management enable flag with parameters of
>>   	 * HCI sleep enable vendor specific HCI command.
>> @@ -183,10 +178,15 @@ static int ath_enqueue(struct hci_uart *hu, struct sk_buff *skb)
>>   	/* Prepend skb with frame type */
>>   	memcpy(skb_push(skb, 1),&bt_cb(skb)->pkt_type, 1);
>>
>> -	skb_queue_tail(&ath->txq, skb);
>> -	set_bit(HCI_UART_SENDING,&hu->tx_state);
>> -
>> -	schedule_work(&ath->ctxtsw);
>> +	if (bt_cb(skb)->pkt_type == HCI_SCODATA_PKT) {
>> +		skb_queue_head(&ath->txq, skb);
>> +		clear_bit(HCI_UART_SENDING,&hu->tx_state);
>> +		hci_uart_tx_wakeup(hu);
>
> Seems you are giving priority to SCO packets, right? why?
>

Yes, There was some degradation in audio quality which improved when we 
gave priority to SCO.

Do you see any potential problem with that? I will re-verify this anyway.

Regards
Suraj




  reply	other threads:[~2011-02-02 16:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-28 10:49 [PATCH] Bluetooth: Support SCO over HCI for Atheros AR300x Bluetooth device Suraj Sumangala
2011-01-31 17:28 ` Suraj Sumangala
2011-02-02 16:16 ` Gustavo F. Padovan
2011-02-02 16:31   ` Suraj Sumangala [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-05-20  8:06 Suraj Sumangala
2011-05-30 19:02 ` Gustavo F. Padovan
2011-05-31  5:07   ` Sumangala, Suraj
2011-05-31  5:16     ` Marcel Holtmann

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=4D4986FF.2070309@Atheros.com \
    --to=suraj@atheros.com \
    --cc=Jothikumar.Mothilal@Atheros.com \
    --cc=Suraj.Sumangala@Atheros.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=padovan@profusion.mobi \
    /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).