public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Manuel Naranjo <naranjo.manuel@gmail.com>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] a2dp, sco and kernel version [Possible Solution]
Date: Thu, 02 Aug 2007 15:53:55 -0300	[thread overview]
Message-ID: <46B22843.909@gmail.com> (raw)
In-Reply-To: <46B1F5B9.6070107@gmail.com>

I finally could narrow the problem CONFIG_HIGH_RES_TIMERS is the one 
that makes a2dpd fail in certain circumstances. I'm not sure if my 
hardware has support for this feature or not, but anyway it's good to 
know what's causing the problem.
So to all those of you that have a kernel >= 2.6.21 and can't use a2dpd 
can disable CONFIG_HIGH_RES_TIMERS, recompile and reinstall your 
kernels, and should get a2dpd working again.

> With Frederic we have found the reason for the problem.
> My config had:
> CONFIG_NO_HZ=y
> CONFIG_HIGH_RES_TIMERS=y
>
> According to the kernel desc this options are:
> Tickless System (Dynamic Ticks) (NO_HZ)
> This option enables a tickless system: timer interrupts will
> only trigger on an as-needed basis both when the system is
> busy and when the system is idle.
>
> High Resolution Timer Support (HIGH_RES_TIMERS)
> This option enables high resolution timer support. If your
> hardware is not capable then this option only increases
> the size of the kernel image.
>
> I don't know yet if it's one or both options the one that makes 
> anything fail (I think NO_HZ is the problem) but the thing is that I 
> got a2dpd working on 2.6.22 again. I still couldn't get headsetd to 
> work, maybe I'm missing a step, headsetd is telling me:
> headsetd[9211]: unable to open SCO channel to headset: Function not 
> implemented
>
> And dmesg shows this lots of times:
> hci_scodata_packet: hci0 SCO packet for unknown connection handle 65533
> hci_scodata_packet: hci0 SCO packet for unknown connection handle 65023
> hci_scodata_packet: hci0 SCO packet for unknown connection handle 65533
> hci_scodata_packet: hci0 SCO packet for unknown connection handle 65023
> hci_scodata_packet: hci0 SCO packet for unknown connection handle 65533
> hci_scodata_packet: hci0 SCO packet for unknown connection handle 39795
> hci_scodata_packet: hci0 SCO packet for unknown connection handle 27894
> hci_scodata_packet: hci0 SCO packet for unknown connection handle 47
>
> I had tried making a2dpd connect before trying to use headset but it 
> keeps failing.
>
> Anyway, my next step is trying to find out which of both kernel 
> options is the one that makes a2dpd not work.
>
> Thanks,
> Manuel
>
>>> Can you please send me your kernel config file?
>>> And if anybody have (or not) the same problem, they can too saying 
>>> what they have.
>>>
>>> Cheers,
>>> Frederic
>>>
>>> On Thu, 2007-08-02 at 01:02 -0300, Manuel Naranjo wrote:
>>>    
>>>> I want to help, just tell me what you need and I get it to all for 
>>>> you.
>>>> I work for the company that builds the USB dongle [1], and I'm 
>>>> using the hifi headset we sell. So I have plenty access to almost 
>>>> every hardware detail. So please let me know what you need, logs, 
>>>> etc, and I get it.
>>>> Thanks,
>>>> Manuel
>>>>
>>>> [1] http://www.aircable.net/host-xr.html
>>>>
>>>>      
>>>>> Your bandwidth seems to be higher than expected,
>>>>> thought we dont know how much is your bitpool.
>>>>>
>>>>> Here using 53 the bandwidth used is about 350 kbps,
>>>>> using a value higher than 64 it starts to give me some
>>>>> buffer problems.
>>>>>
>>>>> On 8/1/07, Manuel Naranjo <naranjo.manuel@gmail.com> wrote:
>>>>>          
>>>>>>> Make sure your stream is 44.1khz stereo
>>>>>>>
>>>>>>>                   
>>>>>> That's the first thing I had checked
>>>>>>              
>>>>>>> Do you use the plug plugin?
>>>>>>>
>>>>>>> pcm.!default {
>>>>>>>         type plug
>>>>>>>         slave.pcm "a2dpdplug"
>>>>>>> }
>>>>>>>
>>>>>>> pcm.a2dpdplug {
>>>>>>>         type a2dpd
>>>>>>> }
>>>>>>>
>>>>>>> Also this variant may help :
>>>>>>>
>>>>>>> pcm.a2dpdplug {
>>>>>>>         type a2dpd
>>>>>>>       rateconstraint 44100
>>>>>>> }
>>>>>>>
>>>>>>>                   
>>>>>> Sorry but that didn't worked.
>>>>>>
>>>>>> Here's what mplayer is telling me:
>>>>>> alsa-play: trying to reset soundcard
>>>>>> alsa-play: write error: Broken pipe0)  2.3%
>>>>>> alsa-play: trying to reset soundcard
>>>>>> A:  80.9 (01:20.9) of 189.0 (03:09.0)  2.3%
>>>>>>
>>>>>> And this is what a2dpd says about it:
>>>>>> A2DPD[09:42:05.562]: display_daemon_state: [16,16|16,16] playing
>>>>>> connected clients=1 freq=1032 cnt=24833 (1032/0) poll=1048
>>>>>> latency=1185972125 sec.
>>>>>> A2DPD[09:42:05.616]: a2dp_transfer_raw: send (retry).
>>>>>> A2DPD[09:42:05.767]: a2dp_transfer_raw: Bandwith: 79488 (621 
>>>>>> kbps) 32,
>>>>>> latency=1185972125 sec.
>>>>>> A2DPD[09:42:05.826]: a2dp_transfer_raw: send (retry).
>>>>>> A2DPD[09:42:05.030]: a2dp_transfer_raw: send (retry).
>>>>>> A2DPD[09:42:06.234]: a2dp_transfer_raw: send (retry).
>>>>>> A2DPD[09:42:06.479]: a2dp_transfer_raw: send (retry).
>>>>>> A2DPD[09:42:06.631]: display_daemon_state: [16,16|16,16] playing
>>>>>> connected clients=1 freq=1144 cnt=25977 (1144/0) poll=1162
>>>>>> latency=1185972126 sec.
>>>>>> A2DPD[09:42:06.672]: a2dp_transfer_raw: send (retry).
>>>>>> A2DPD[09:42:06.836]: a2dp_transfer_raw: Bandwith: 85077 (664 
>>>>>> kbps) 32,
>>>>>> latency=1185972126 sec.
>>>>>> A2DPD[09:42:06.895]: a2dp_transfer_raw: send (retry).
>>>>>> A2DPD[09:42:06.103]: a2dp_transfer_raw: send (retry).
>>>>>> A2DPD[09:42:07.307]: a2dp_transfer_raw: send (retry).
>>>>>> A2DPD[09:42:07.508]: a2dp_transfer_raw: send (retry).
>>>>>>
>>>>>> Any ideas what can be wrong?
>>>>>>
>>>>>> Thanks,
>>>>>> Manuel
>>>>>>
>>>>>> ------------------------------------------------------------------------- 
>>>>>>
>>>>>> This SF.net email is sponsored by: Splunk Inc.
>>>>>> Still grepping through log files to find problems?  Stop.
>>>>>> Now Search log events and configuration files using AJAX and a 
>>>>>> browser.
>>>>>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>>>>>> _______________________________________________
>>>>>> Bluez-devel mailing list
>>>>>> Bluez-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>>>>>>
>>>>>>               
>>>>>           
>>>> ------------------------------------------------------------------------- 
>>>>
>>>> This SF.net email is sponsored by: Splunk Inc.
>>>> Still grepping through log files to find problems?  Stop.
>>>> Now Search log events and configuration files using AJAX and a 
>>>> browser.
>>>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>>>> _______________________________________________
>>>> Bluez-devel mailing list
>>>> Bluez-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>>>>       
>>> ------------------------------------------------------------------------- 
>>>
>>> This SF.net email is sponsored by: Splunk Inc.
>>> Still grepping through log files to find problems?  Stop.
>>> Now Search log events and configuration files using AJAX and a browser.
>>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>>> _______________________________________________
>>> Bluez-devel mailing list
>>> Bluez-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>>>     
>>
>> ------------------------------------------------------------------------- 
>>
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems?  Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>> _______________________________________________
>> Bluez-devel mailing list
>> Bluez-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>>
>>   
>
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2007-08-02 18:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-30 23:24 [Bluez-devel] a2dp, sco and kernel version Manuel Naranjo
2007-07-31  0:26 ` Brad Midgley
2007-07-31  0:34   ` Manuel Naranjo
2007-07-31  8:31 ` Frederic Dalleau
2007-07-31  8:52   ` Frederic Dalleau
2007-07-31 11:19     ` Manuel Naranjo
2007-07-31 16:29       ` Luiz Augusto von Dentz
2007-07-31 18:22         ` Manuel Naranjo
2007-08-01  7:38           ` Frederic Dalleau
2007-08-01 12:44             ` Manuel Naranjo
2007-08-02  3:22               ` Luiz Augusto von Dentz
2007-08-02  4:02                 ` Manuel Naranjo
2007-08-02 13:04                   ` Frederic Dalleau
2007-08-02 13:05                     ` Frederic Dalleau
2007-08-02 15:18                       ` Manuel Naranjo
2007-08-02 18:53                         ` Manuel Naranjo [this message]
2007-08-02 19:12                           ` [Bluez-devel] a2dp, sco and kernel version [Possible Solution] Brad Midgley
2007-08-02 19:24                             ` Manuel Naranjo

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=46B22843.909@gmail.com \
    --to=naranjo.manuel@gmail.com \
    --cc=bluez-devel@lists.sourceforge.net \
    /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