Re: [pulseaudio-discuss] Assertion '(size_t) decoded == a2dp-frame_length' failed at modules/bluetooth/module-bluetooth-device

2011-05-19 Thread h.patil
Hi Luiz,
 Thanks a lot for you reply, please find the below hcidump output
/home # ./hcidump -x
HCI sniffer - Bluetooth packet analyzer ver 2.0
device: hci0 snap_len: 1028 filter: 0x
 HCI Event: Vendor (0xff) plen 3
  CF 07 78
 HCI Event: Vendor (0xff) plen 3
  CF 06 F9
 HCI Command: Write Scan Enable (0x03|0x001a) plen 1
enable 2
 HCI Event: Command Complete (0x0e) plen 4
Write Scan Enable (0x03|0x001a) ncmd 2
status 0x00
 HCI Command: Read Scan Enable (0x03|0x0019) plen 0
 HCI Event: Command Complete (0x0e) plen 5
Read Scan Enable (0x03|0x0019) ncmd 2
status 0x00 enable 2
 HCI Command: Write Scan Enable (0x03|0x001a) plen 1
enable 1
 HCI Command: Write Scan Enable (0x03|0x001a) plen 1
enable 3
 HCI Event: Command Complete (0x0e) plen 4
Write Scan Enable (0x03|0x001a) ncmd 2
status 0x00
 HCI Command: Read Scan Enable (0x03|0x0019) plen 0
 HCI Event: Command Complete (0x0e) plen 5
Read Scan Enable (0x03|0x0019) ncmd 2
status 0x00 enable 3
 HCI Event: Vendor (0xff) plen 3
  CF 07 78
 HCI Event: Vendor (0xff) plen 3
  CF 06 F9
 HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr C8:DF:7C:24:27:21 ptype 0xcc18 rswitch 0x01 clkoffset 0x
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
 HCI Event: Command Status (0x0f) plen 4
Create Connection (0x01|0x0005) status 0x00 ncmd 1
 HCI Event: Connect Complete (0x03) plen 11
status 0x04 handle 65535 bdaddr C8:DF:7C:24:27:21 type ACL encrypt 0x00
Error: Page Timeout
 HCI Event: Vendor (0xff) plen 3
  CF 07 78
 HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr C8:DF:7C:24:27:21 ptype 0xcc18 rswitch 0x01 clkoffset 0x
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
 HCI Event: Command Status (0x0f) plen 4
Create Connection (0x01|0x0005) status 0x00 ncmd 1
 HCI Event: Connect Complete (0x03) plen 11
status 0x00 handle 256 bdaddr C8:DF:7C:24:27:21 type ACL encrypt 0x00
 HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
handle 256
 HCI Event: Command Status (0x0f) plen 4
Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
 HCI Event: Max Slots Change (0x1b) plen 3
handle 256 slots 5
 HCI Event: Read Remote Supported Features (0x0b) plen 11
status 0x00 handle 256
Features: 0xbf 0xee 0x0f 0x4e 0x98 0x19 0x00 0x00
 HCI Command: Authentication Requested (0x01|0x0011) plen 2
handle 256
 HCI Event: Command Status (0x0f) plen 4
Authentication Requested (0x01|0x0011) status 0x00 ncmd 1
 HCI Event: Link Key Request (0x17) plen 6
bdaddr C8:DF:7C:24:27:21
 HCI Command: Link Key Request Negative Reply (0x01|0x000c) plen 6
bdaddr C8:DF:7C:24:27:21
 HCI Event: Command Complete (0x0e) plen 10
Link Key Request Negative Reply (0x01|0x000c) ncmd 1
status 0x00 bdaddr C8:DF:7C:24:27:21
 HCI Event: PIN Code Request (0x16) plen 6
bdaddr C8:DF:7C:24:27:21
 HCI Command: PIN Code Request Reply (0x01|0x000d) plen 23
bdaddr C8:DF:7C:24:27:21 len 4 pin ''
 HCI Event: Command Complete (0x0e) plen 10
PIN Code Request Reply (0x01|0x000d) ncmd 1
status 0x00 bdaddr C8:DF:7C:24:27:21
 HCI Event: Link Key Notification (0x18) plen 23
bdaddr C8:DF:7C:24:27:21 key DF6EC334B7940662BB567316DAEA93FF type 0
Type: Combination Key
 HCI Event: Auth Complete (0x06) plen 3
status 0x00 handle 256
 ACL data: handle 256 flags 0x00 dlen 10
06 00 01 00 0A 01 02 00 02 00
 HCI Event: Number of Completed Packets (0x13) plen 5
handle 256 packets 1
 ACL data: handle 256 flags 0x02 dlen 16
L2CAP(s): Info rsp: type 2 result 0
  Extended feature mask 0x0003
Flow control mode
Retransmission mode
 ACL data: handle 256 flags 0x00 dlen 12
08 00 01 00 02 02 04 00 01 00 40 00
 HCI Event: Number of Completed Packets (0x13) plen 5
handle 256 packets 1
 ACL data: handle 256 flags 0x02 dlen 28
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 2
  Connection pending - Authorization pending
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
  Connection successful
 ACL data: handle 256 flags 0x02 dlen 10
L2CAP(s): Info req: type 2
 ACL data: handle 256 flags 0x00 dlen 12
08 00 01 00 04 03 04 00 40 00 00 00
 ACL data: handle 256 flags 0x00 dlen 16
0C 00 01 00 0B 01 08 00 02 00 00 00 B8 00 00 00
 HCI Event: Number of Completed Packets (0x13) plen 5
handle 256 packets 1
 HCI Event: Number of Completed Packets (0x13) plen 5
handle 256 packets 1
 ACL data: handle 256 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4
  MTU 672
 ACL data: handle 256 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
  MTU 65535
 ACL data: handle 256 flags 0x00 dlen 18
0E 00 01 00 05 02 0A 00 40 00 00 00 00 00 01 02 FF FF
 ACL data: handle 256 flags 0x00 dlen 24
14 00 40 00 06 00 00 00 0F 35 03 19 01 00 FF FF 35 05 0A 00
00 FF FF 00
 HCI Event: Number of Completed Packets (0x13) plen 5
   

Re: [pulseaudio-discuss] Assertion '(size_t) decoded == a2dp-frame_length' failed at modules/bluetooth/module-bluetooth-device

2011-05-18 Thread h.patil
My audio.conf looks as below.

Configuration file for the audio service

# This section contains options which are not specific to any
# particular interface
[General]
Enable=Source
# Switch to master role for incoming connections (defaults to true)
#Master=true

# If we want to disable support for specific services
# Defaults to supporting all implemented services
#Disable=Control,Source

# SCO routing. Either PCM or HCI (in which case audio is routed to/from ALSA)
# Defaults to HCI
#SCORouting=PCM

# Automatically connect both A2DP and HFP/HSP profiles for incoming
# connections. Some headsets that support both profiles will only connect the
# other one automatically so the default setting of true is usually a good
# idea.
#AutoConnect=true

# Headset interface specific options (i.e. options which affect how the audio
# service interacts with remote headset devices)
[Headset]

# Set to true to support HFP, false means only HSP is supported
# Defaults to true
HFP=true

# Maximum number of connected HSP/HFP devices per adapter. Defaults to 1
MaxConnected=1

# Just an example of potential config options for the other interfaces
#[A2DP]
#SBCSources=1
#MPEG12Sources=0

Regards,

patil


-Original Message-
From: Patil, H.
Sent: Wednesday, May 18, 2011 4:04 PM
To: 'General PulseAudio Discussion'
Subject: RE: [pulseaudio-discuss] Assertion '(size_t) decoded == 
a2dp-frame_length' failed at modules/bluetooth/module-bluetooth-device

Hi Luiz Augusto,


Thanks a lot for your reply

Please find the attached logs for --We are able to run pulseaudio and establish 
service connection for A2DP
(BlueZ). Once the mobile phone starts streaming the audio, pulse audio
 encounters following error

 module-bluetooth-device.c: Received error condition: Input/output error..

Please suggest.

Thanks
Patil


-Original Message-
From: pulseaudio-discuss-boun...@mail.0pointer.de 
[mailto:pulseaudio-discuss-boun...@mail.0pointer.de] On Behalf Of Luiz Augusto 
von Dentz
Sent: Sunday, May 15, 2011 1:43 PM
To: General PulseAudio Discussion
Subject: Re: [pulseaudio-discuss] Assertion '(size_t) decoded == 
a2dp-frame_length' failed at modules/bluetooth/module-bluetooth-device

Hi,

On Thu, May 12, 2011 at 5:17 PM,  h.pa...@accenture.com wrote:
 Hello Becker,

 Thanks for the reply.



 I am getting the following error if I remove --system



 ~ # pulseaudio -n -F /etc/pulse/default.pa

 W: main.c: Couldn't canonicalize binary path, cannot self execute.

 W: main.c: This program is not intended to be run as root (unless --system
 is specified).

 W: main.c: Unable to contact D-Bus:
 org.freedesktop.DBus.Error.Spawn.ExecFailed: /bin/dbus-launch terminated
 abnormally with the following error: Autolaunch error: X11 initialization
 failed.



 Are you sure you are running Pulseaudio optimized for an ARM target?

SBC code should already have the necessary optimization for ARM, BlueZ
should take care of a2dp signalling.



 For ARM:



 I have cross compiled PulseAudio for arm. Is there any specific optimization
 needs to be done for PulseAudio for ARM?



 Is there any configuration needs to be done for PulseAudio for ARM?



 We are able to run pulseaudio and establish service connection for A2DP
 (BlueZ). Once the mobile phone starts streaming the audio, pulse audio
 encounters following error



 module-bluetooth-device.c: Received error condition: Input/output error

This is probably endpoint configuration problem, could you please have
bluetoothd run with debug and send us the output? You can enable debug
by either do killall -USR2 bluetoothd or start it using -d. Also what
API are you using in the system, how your audio.conf looks like?

--
Luiz Augusto von Dentz
Computer Engineer
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Assertion '(size_t) decoded == a2dp-frame_length' failed at modules/bluetooth/module-bluetooth-device

2011-05-17 Thread h.patil
Hi Colin,

As per your below comments I downloaded the src for pulseaudio optimized for 
arm, while running on arm on target I am getting the following error messages.


/home/patil # pulseaudio --system -n -F /etc/pulse/default.pa
W: main.c: Running in system mode, but --disallow-exit not set!
W: main.c: Running in system mode, but --disallow-module-loading not set!
N: main.c: Running in system mode, forcibly disabling SHM mode!
N: main.c: Running in system mode, forcibly disabling exit idle time!
W: main.c: Home directory of user 'root' is not '/var/run/pulse', ignoring.
W: main.c: OK, so you are running PA in system mode. Please note that you most 
likely shouldn't be doing that.
W: main.c: If you do it nonetheless then it's your own fault if things don't 
work as expected.
W: main.c: Please read http://pulseaudio.org/wiki/WhatIsWrongWithSystemMode for 
an explanation why system mode is usually a bad idea.
W: pid.c: Stale PID file, overwriting.
E: bluetooth-util.c: Error from RegisterEndpoint reply: 
org.freedesktop.DBus.Error.UnknownMethod
E: bluetooth-util.c: Error from RegisterEndpoint reply: 
org.freedesktop.DBus.Error.UnknownMethod
E: bluetooth-util.c: Error from RegisterEndpoint reply: 
org.freedesktop.DBus.Error.UnknownMethod


Please let me know why I am getting the error E: bluetooth-util.c: Error from 
RegisterEndpoint reply: org.freedesktop.DBus.Error.UnknownMethod 




Thanks,
Patil

-Original Message-
From: pulseaudio-discuss-boun...@mail.0pointer.de 
[mailto:pulseaudio-discuss-boun...@mail.0pointer.de] On Behalf Of Colin Guthrie
Sent: Thursday, May 12, 2011 9:15 PM
To: pulseaudio-discuss@mail.0pointer.de
Subject: Re: [pulseaudio-discuss] Assertion '(size_t) decoded == 
a2dp-frame_length' failed at modules/bluetooth/module-bluetooth-device

Hiya

'Twas brillig, and h.pa...@accenture.com at 12/05/11 07:41 did gyre and
gimble:
I am using pulse audio 0.9.21(Tried 0.9.22 also)  on arm with
 bluez-4.89(Tried 4.93 also) but getting the following error.

I am running pulseaudio in system mode as i am having only
 root user on my target.


I've a funny feeling this is perhaps fixed in git master. Please try that :)

This previous thread seems relevant:

http://thread.gmane.org/gmane.comp.audio.pulseaudio.general/8859


And these two  commits might be the winners for you:


commit b676f89d8579c7ec1629892342a330f1e4c35657
Author: Colin Guthrie cguth...@mandriva.org
Date:   Sun Mar 20 11:44:53 2011 +

bluetooth: Run 'make update-sbc'

Note that changes to ipc.h from 8f3ef04b had to be manually reapplied.




commit 0bed5caf3b9fedfce2100cc85de344670ddbb386
Author: Paul Menzel paulepan...@users.sourceforge.net
Date:   Tue Mar 29 12:14:27 2011 +0200

bluetooth: run `make update-sbc` to pull in build fix for thumb mode

This update pulls in commit c495077c [1] to fix a build error.

commit c495077cf8a8c37afd90875ec5a5b16b294be15e
Author: Siarhei Siamashka siarhei.siamas...@nokia.com
Date:   Tue Mar 29 01:57:39 2011 +0300

sbc: better compatibility with ARM thumb/thumb2

ARM assembly optimizations fail to compile in thumb
mode, but are fine
for thumb2. Update ifdefs in the code to make use of ARM
assembly only
when it is safe and also make sure that no optimizations
are missed
when compiling for thumb2.

The problem was reported by Paul Menzel:

https://tango.0pointer.de/pipermail/pulseaudio-discuss/2011-February/009022.html

This patch is tested with OpenEmbedded using `minimal-uclibc` for
`MACHINE = at91sam9260ek`.

Note that changes to ipc.h from 8f3ef04b had to be manually reapplied.

[1]
http://git.kernel.org/?p=bluetooth/bluez.git;a=commit;h=c495077cf8a8c37afd90875ec5a5b16b294be15e




PS, the disclaimer doesn't make any sense :D
--

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mageia Contributor [http://www.mageia.org/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] Assertion '(size_t) decoded == a2dp-frame_length' failed at modules/bluetooth/module-bluetooth-device

2011-05-12 Thread h.patil
Hi All,
   I am using pulse audio 0.9.21(Tried 0.9.22 also)  on arm with 
bluez-4.89(Tried 4.93 also) but getting the following error.
   I am running pulseaudio in system mode as i am having only root user 
on my target.


~ # pulseaudio --system -n -F /etc/pulse/default.pa
W: main.c: Couldn't canonicalize binary path, cannot self execute.
W: main.c: Running in system mode, but --disallow-exit not set!
W: main.c: Running in system mode, but --disallow-module-loading not set!
N: main.c: Running in system mode, forcibly disabling SHM mode!
N: main.c: Running in system mode, forcibly disabling exit idle time!
W: main.c: Home directory of user 'root' is not '/home/mmes/op/var/run/pulse', 
ignoring.
W: main.c: OK, so you are running PA in system mode. Please note that you most 
likely shouldn't be doing that.
W: main.c: If you do it nonetheless then it's your own fault if things don't 
work as expected.
W: main.c: Please read http://pulseaudio.org/wiki/WhatIsWrongWithSystemMode for 
an explanation why system mode is usually a bad idea.
E: module-bluetooth-device.c: Assertion '(size_t) decoded == 
a2dp-frame_length' failed at modules/bluetooth/module-bluetooth-device.c:1375, 
function a2dp_process_push(). Aborting.
Aborted
~ #


Please let me know whether it works on on system mode or its bug in pulse audio 
for arm.

Thanks

Patil



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the email by you is prohibited.
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] Assertion '(size_t) decoded == a2dp-frame_length' failed at modules/bluetooth/module-bluetooth-device

2011-05-12 Thread h.patil
Hello Becker,
Thanks for the reply.

I am getting the following error if I remove --system

~ # pulseaudio -n -F /etc/pulse/default.pa
W: main.c: Couldn't canonicalize binary path, cannot self execute.
W: main.c: This program is not intended to be run as root (unless --system is 
specified).
W: main.c: Unable to contact D-Bus: 
org.freedesktop.DBus.Error.Spawn.ExecFailed: /bin/dbus-launch terminated 
abnormally with the following error: Autolaunch error: X11 initialization 
failed.

Are you sure you are running Pulseaudio optimized for an ARM target?

For ARM:

I have cross compiled PulseAudio for arm. Is there any specific optimization 
needs to be done for PulseAudio for ARM?

Is there any configuration needs to be done for PulseAudio for ARM?

We are able to run pulseaudio and establish service connection for A2DP 
(BlueZ). Once the mobile phone starts streaming the audio, pulse audio 
encounters following error

module-bluetooth-device.c: Received error condition: Input/output error


For X86:

We are able to Run the PulseAudio on Ubuntu (X86). Connect A2DP (BlueZ). 
Streaming of Audio from Mobile works fine.

Regards,

patil


From: pulseaudio-discuss-boun...@mail.0pointer.de 
[mailto:pulseaudio-discuss-boun...@mail.0pointer.de] On Behalf Of Becker, 
VincentX
Sent: Thursday, May 12, 2011 5:48 PM
To: General PulseAudio Discussion
Subject: Re: [pulseaudio-discuss] Assertion '(size_t) decoded == 
a2dp-frame_length' failed at modules/bluetooth/module-bluetooth-device

From: pulseaudio-discuss-boun...@mail.0pointer.de 
[mailto:pulseaudio-discuss-boun...@mail.0pointer.de] On Behalf Of 
h.pa...@accenture.com
Sent: Thursday, May 12, 2011 8:41 AM
To: pulseaudio-discuss@mail.0pointer.de
Subject: [pulseaudio-discuss] Assertion '(size_t) decoded == 
a2dp-frame_length' failed at modules/bluetooth/module-bluetooth-device

Hi All,
   I am using pulse audio 0.9.21(Tried 0.9.22 also)  on arm with 
bluez-4.89(Tried 4.93 also) but getting the following error.
   I am running pulseaudio in system mode as i am having only root user 
on my target.


~ # pulseaudio --system -n -F /etc/pulse/default.pa
W: main.c: Couldn't canonicalize binary path, cannot self execute.
W: main.c: Running in system mode, but --disallow-exit not set!
W: main.c: Running in system mode, but --disallow-module-loading not set!
N: main.c: Running in system mode, forcibly disabling SHM mode!
N: main.c: Running in system mode, forcibly disabling exit idle time!
W: main.c: Home directory of user 'root' is not '/home/mmes/op/var/run/pulse', 
ignoring.
W: main.c: OK, so you are running PA in system mode. Please note that you most 
likely shouldn't be doing that.
W: main.c: If you do it nonetheless then it's your own fault if things don't 
work as expected.
W: main.c: Please read http://pulseaudio.org/wiki/WhatIsWrongWithSystemMode for 
an explanation why system mode is usually a bad idea.
E: module-bluetooth-device.c: Assertion '(size_t) decoded == 
a2dp-frame_length' failed at modules/bluetooth/module-bluetooth-device.c:1375, 
function a2dp_process_push(). Aborting.
Aborted
~ #


Please let me know whether it works on on system mode or its bug in pulse audio 
for arm.

You should launch pulseaudio simply under user mode or root without the -system 
option.
Pulseaudio runs on x86 and Arm. For A2DP, you are using an sbc  interface which 
is very dependant on the target as assembly instructions are used.

Are you sure you are running Pulseaudio optimized for an ARM target ?


Thanks

Patil



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the email by you is prohibited.
-
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: Les Montalets- 2, rue de Paris,
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss