public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] a2dp choppy sound problem
@ 2007-12-21  6:33 Benson Dong
  2007-12-21 15:52 ` Brad Midgley
  0 siblings, 1 reply; 8+ messages in thread
From: Benson Dong @ 2007-12-21  6:33 UTC (permalink / raw)
  To: Bluez-user

[-- Attachment #1: Type: text/plain, Size: 703 bytes --]


Hi all,
    I get very choppy sound when playback audio through A2DP. Even the application shows playback ends,the headset could still hear the intermittent choppy sound for a few seconds.

Here are some tests:
# aplay -D bluetooth /1.wav
result:choppy
#play --device=bluetooth /1.wav
result:choppy
#mplayer -ao alsa:device=bluetooth
result:choppy

So i think it's possible not audio application problems.
Could some one who knows about this problem give me some help?

Thanks in advance!
Benson


_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] a2dp choppy sound problem
  2007-12-21  6:33 [Bluez-users] a2dp choppy sound problem Benson Dong
@ 2007-12-21 15:52 ` Brad Midgley
  2007-12-24  2:09   ` Benson Dong
  0 siblings, 1 reply; 8+ messages in thread
From: Brad Midgley @ 2007-12-21 15:52 UTC (permalink / raw)
  To: BlueZ users

Benson

>     I get very choppy sound when playback audio through A2DP. Even the application shows playback ends,the headset could still hear the intermittent choppy sound for a few seconds.

can tell us what you get when you run 'hcitool con' while the audio is
playing? Does it show slave connections?

-- 
Brad

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] a2dp choppy sound problem
  2007-12-21 15:52 ` Brad Midgley
@ 2007-12-24  2:09   ` Benson Dong
  2007-12-24  2:36     ` Brad Midgley
  0 siblings, 1 reply; 8+ messages in thread
From: Benson Dong @ 2007-12-24  2:09 UTC (permalink / raw)
  To: BlueZ users

[-- Attachment #1: Type: text/plain, Size: 1365 bytes --]



Hi Brad,

I get info as follows when i run 'hcitool con' while the audio is playing.

# hcitool con
Connections:
< ACL 00:0D:3C:EB:53:F0 handle 1 state 1 lm SLAVE ENCRYPT

It do show slave connections.What shall i do next?
Thank you for your help!

--
Benson

> Date: Fri, 21 Dec 2007 08:52:43 -0700
> From: bmidgley@gmail.com
> To: bluez-users@lists.sourceforge.net
> Subject: Re: [Bluez-users] a2dp choppy sound problem
>
> Benson
>
>> I get very choppy sound when playback audio through A2DP. Even the application shows playback ends,the headset could still hear the intermittent choppy sound for a few seconds.
>
> can tell us what you get when you run 'hcitool con' while the audio is
> playing? Does it show slave connections?
>
> --
> Brad
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] a2dp choppy sound problem
  2007-12-24  2:09   ` Benson Dong
@ 2007-12-24  2:36     ` Brad Midgley
  2007-12-24  3:26       ` Benson Dong
  0 siblings, 1 reply; 8+ messages in thread
From: Brad Midgley @ 2007-12-24  2:36 UTC (permalink / raw)
  To: BlueZ users

Benson,

Can you try these in /etc/bluetooth/hcid.conf one at a time,
restarting hcid each time and tell us if anything improves the
choppiness?

put "master" in hcid.conf's lm setting
take "rswitch" out of the lp setting
take "sniff" out of the lp setting

Brad

On Dec 23, 2007 7:09 PM, Benson Dong <dongas86.dev@hotmail.com> wrote:
>
>
> Hi Brad,
>
> I get info as follows when i run 'hcitool con' while the audio is playing.
>
> # hcitool con
> Connections:
> < ACL 00:0D:3C:EB:53:F0 handle 1 state 1 lm SLAVE ENCRYPT
>
> It do show slave connections.What shall i do next?
> Thank you for your help!
>
> --
> Benson
>
> > Date: Fri, 21 Dec 2007 08:52:43 -0700
> > From: bmidgley@gmail.com
> > To: bluez-users@lists.sourceforge.net
> > Subject: Re: [Bluez-users] a2dp choppy sound problem
>
> >
> > Benson
> >
> >> I get very choppy sound when playback audio through A2DP. Even the application shows playback ends,the headset could still hear the intermittent choppy sound for a few seconds.
> >
> > can tell us what you get when you run 'hcitool con' while the audio is
> > playing? Does it show slave connections?
> >
> > --
> > Brad
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Bluez-users mailing list
> > Bluez-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>



-- 
Brad

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] a2dp choppy sound problem
  2007-12-24  2:36     ` Brad Midgley
@ 2007-12-24  3:26       ` Benson Dong
  2007-12-24  4:26         ` Brad Midgley
  0 siblings, 1 reply; 8+ messages in thread
From: Benson Dong @ 2007-12-24  3:26 UTC (permalink / raw)
  To: BlueZ users

[-- Attachment #1: Type: text/plain, Size: 1238 bytes --]


Hi Brad,

Here's the test:
1.put "master" in hcid.conf's lm setting
lm accept,master; choppy sound
# hcitool con
Connections:
< ACL 00:0D:3C:EB:53:F0 handle 1 state 1 lm SLAVE ENCRYPT

2.take "rswitch" out of the lp setting
lp hold,sniff,park; choppy sound
# hcitool con
Connections:
< ACL 00:0D:3C:EB:53:F0 handle 1 state 1 lm MASTER ENCRYPT

3.take "sniff" out of the lp setting
lp hold,park; choppy sound
# hcitool con
Connections:
< ACL 00:0D:3C:EB:53:F0 handle 1 state 1 lm MASTER ENCRYPT

It seems no difference and chopyy as before.
Anything else could do ?

Thanks!

--
Benson

> Date: Sun, 23 Dec 2007 19:36:34 -0700
> From: bmidgley@gmail.com
> To: bluez-users@lists.sourceforge.net
> Subject: Re: [Bluez-users] a2dp choppy sound problem
>
> Benson,
>
> Can you try these in /etc/bluetooth/hcid.conf one at a time,
> restarting hcid each time and tell us if anything improves the
> choppiness?
>
> put "master" in hcid.conf's lm setting
> take "rswitch" out of the lp setting
> take "sniff" out of the lp setting
>
> Brad

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] a2dp choppy sound problem
  2007-12-24  3:26       ` Benson Dong
@ 2007-12-24  4:26         ` Brad Midgley
  2007-12-24  6:54           ` Benson Dong
  0 siblings, 1 reply; 8+ messages in thread
From: Brad Midgley @ 2007-12-24  4:26 UTC (permalink / raw)
  To: BlueZ users

Benson

> It seems no difference and chopyy as before.
> Anything else could do ?

you can try all three config changes above together.

what version of bluez-utils is this? Have you tried cvs head?

are you getting interference? If it's a 1.2 or newer bt adapter, you
could check the afh map to see if it's detecting and trying to avoid
interference:

hcitool afh 00:0D:3C:EB:53:F0

If the adapter on your computer is bt 1.2+ and the headset is older
than 1.2, afh might be another advantage to run the computer's adapter
as master.

is it running on a slow computer or an embedded computer?

-- 
Brad

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] a2dp choppy sound problem
  2007-12-24  4:26         ` Brad Midgley
@ 2007-12-24  6:54           ` Benson Dong
  2007-12-24 10:47             ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Benson Dong @ 2007-12-24  6:54 UTC (permalink / raw)
  To: BlueZ users

[-- Attachment #1: Type: text/plain, Size: 2330 bytes --]


Hi Brad,

> Date: Sun, 23 Dec 2007 21:26:20 -0700
> From: bmidgley@gmail.com
> To: bluez-users@lists.sourceforge.net
> Subject: Re: [Bluez-users] a2dp choppy sound problem
> 
> Benson
> 
>> It seems no difference and chopyy as before.
>> Anything else could do ?
> 
> you can try all three config changes above together.

I have tried ,still choppy sound.

> what version of bluez-utils is this? Have you tried cvs head?

I have not tried cvs head  and the version of bluez-utils i use is 3.22.

> are you getting interference? If it's a 1.2 or newer bt adapter, you
> could check the afh map to see if it's detecting and trying to avoid
> interference:
> 
> hcitool afh 00:0D:3C:EB:53:F0

I could not check the afh map ,
I got this:

#hcitool afh 00:0D:3C:EB:53:F0
HCI read AFH map request failed: Connection timed out

It seems there's some errors,is it?

> If the adapter on your computer is bt 1.2+ and the headset is older
> than 1.2, afh might be another advantage to run the computer's adapter
> as master.

The adapter is bt 1.2 and the headset is 2.0.

> is it running on a slow computer or an embedded computer?

It is running on CentOS 5.0(VMware) on x86 , 1G Mem ,PD3.2GHz .
I just compiled and installed bluez-libs 3.22 and bluez-utils 3.22 .

Then ,

#hcid -s -n -f /etc/bluetooth/hcid.conf

#aplay -D bluetooth 1.wav

Got choppy sound.

Configure Option:
bluez-libs 3.22
./configure --prefix=/usr

bluez-utils 3.22
configure --prefix=/usr --enable-test --enable-usb --enable-input --enable-serial --enable-initscripts --enable-bccmd --enable-cups --disable-pcmia --enable-alsa --enable-audio --enable-shared PKG_CONFIG=pkg-config --enable-obex --enable-avctrl --enable-network


> -- 
> Brad
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users






_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] a2dp choppy sound problem
  2007-12-24  6:54           ` Benson Dong
@ 2007-12-24 10:47             ` Marcel Holtmann
  0 siblings, 0 replies; 8+ messages in thread
From: Marcel Holtmann @ 2007-12-24 10:47 UTC (permalink / raw)
  To: BlueZ users

Hi Benson,

> > is it running on a slow computer or an embedded computer?
> 
> It is running on CentOS 5.0(VMware) on x86 , 1G Mem ,PD3.2GHz .
> I just compiled and installed bluez-libs 3.22 and bluez-utils 3.22 .

if you run this inside VMware then it is not guaranteed to work at all.
The latency that the USB emulation of VMware imposes makes it impossible
to use it properly. We have seen this with VMware Fusion on MacBooks
already.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2007-12-24 10:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-21  6:33 [Bluez-users] a2dp choppy sound problem Benson Dong
2007-12-21 15:52 ` Brad Midgley
2007-12-24  2:09   ` Benson Dong
2007-12-24  2:36     ` Brad Midgley
2007-12-24  3:26       ` Benson Dong
2007-12-24  4:26         ` Brad Midgley
2007-12-24  6:54           ` Benson Dong
2007-12-24 10:47             ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox