linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Frédéric DALLEAU" <frederic.dalleau@palmsource.com>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] a2pd btsco won't compile (FIX) plus xmms error (trials and tribulations) how cool is this!!!
Date: Fri, 04 Aug 2006 10:04:02 +0200	[thread overview]
Message-ID: <44D2FF72.6050309@palmsource.com> (raw)
In-Reply-To: <056BF200E9632F4285220E570FEED673D3ADC9@GBMDDMH202AMSX.gb001.siemens.net>

Hi,
Until today I've not even tried anything avrcp related.
I then executed your script and for my pleasure, it worked.
I patched a bit and integrated everything in a2dpd.

Now, the 10 seconds delay correspond to the delay used by a2dpd to close =

the bluetooth stream. No sound will disconnect bluetooth.

When after that you press the play button, you create an a2dp headset =

initiated connexion.
For now, it is not yet handled but you see the daemon receive a frame of =

the form 0x00 0x01 (AVDTP_DISCOVER).
I will try today reject the frame and system(xmms --play).

Fr=E9d=E9ric.


Waldram, Andrew (SBS UK) a =E9crit :

>Just thought I'd let you know of my success's and problems with my HP
>blutooth headphones (a2dpd & avrcp) and broadcom bcm2045 dongle
>
>Modified acrecv.c replacing the printk's with appropiate system("xmms
>-s") comands recompiled
>
>Ran this script
>
> #!/bin/sh -e
>#
># BTXMMS
>#
>
>sdptool add AVRTG
>
>
>if [ -x /usr/bin/a2dpd ]; then
>	/home/andy/blueheadphones/avrecv &
>	vlc &
>	xmms &
>	/usr/bin/a2dpd 00:0D:44:2A:5C:12 =

>fi
># fi
>			=

>
>exit 0
>
>Pressed play on the screen and sound in all it's beauty came from my
>speakers (this wasn't new) then press next on the headphones and viola
>the track jumped forward same for back and pause.
>
>Then the fly in the ointment
>
>If you press pause (either on xmms or headphones) wait 10 secs then
>press play again on headphones it appears the heaphones recreate a avrcp
>connection but no a2dpd (bugger bugger bugger) the only way out of this
>is switch off the headphones and restart.
>
>This is the log output
>
>PCM thread 0.5 started after
>DEBUG: a2dp_params: (errno=3D0:Success)a2dp 0x821d4e8
>DEBUG: a2dp_params: (errno=3D0:Success)format S16_LE rate 44100 channels 2
>DEBUG: a2dp_params: (errno=3D0:Success)frame_bytes 4 period_bytes 8192
>period_size 2048 buffer_size 4096
>DEBUG: a2dp_prepare: (errno=3D0:Success)a2dp 0x821d4e8
>Accepting incoming stream connection
>DEBUG: a2dp_prepare: (errno=3D4:Interrupted system call)a2dp 0x821d4e8
><--------------- PAUSE Pressed
>[1] Receiving failed on socket 0.5 error (-1/4 bytes) errno=3D11:Resource
>temporarily unavailable
>Client thread 0.5 ending: timeout
>Destroying lpA2dp, destroy_count is 5001
>DEBUG: a2dp_destroy: Begin
>DEBUG: a2dp_free: Begin
>DEBUG: a2dp_destroy: a2dp_destroy(0x8053090) OK
>Connectedreceived 0 bytes:
>
>transaction_label =3D 0
>packet_type =3D 0
>cr =3D 1
>ipid =3D 0
>pid =3D e11
>zeroes =3D 0
>ctype =3D 9
>subunit_type =3D 9
>subunit_id =3D 0
>opcode =3D 7c
>operand0 =3D 4b
>operand1 =3D 0
>accepting next connection
>DEBUG: a2dp_wait_connection: Begin
>DEBUG: a2dp_wait_connection: Connected [imtu 672, omtu 0, flush_to
>65535]
>
>socket 5: Connection from 12:5C:2A:44:0D:00, mtu=3D672
><----------------- Play Pressed on headphones
>socket 5: Received 2 bytes
>00000: 00 01
>
>
>This is with a  Broadcom BCM2045 usb dongle standars Ubuntu 6.06 kernel
>(checked looks like the patch is applied).
>HP fa303 headset =

> =

>
>------------------------------------------------------------------------
>---------- =

>
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share yo=
ur
>opinions on IT & business topics through brief surveys -- and earn cash
>http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DD=
EVDEV
>_______________________________________________
>Bluez-devel mailing list
>Bluez-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bluez-devel
>  =

>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2006-08-04  8:04 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-01  6:25 [Bluez-devel] a2pd btsco won't compile (FIX) plus xmms error Andrew Waldram
2006-08-01  8:41 ` Frédéric DALLEAU
2006-08-01  8:55   ` Frédéric DALLEAU
2006-08-01 12:39     ` Waldram, Andrew (SBS UK)
2006-08-01 13:09       ` Frédéric DALLEAU
2006-08-01 15:46         ` Brad Midgley
2006-08-02  8:45           ` Waldram, Andrew (SBS UK)
2006-08-03  7:49             ` [Bluez-devel] a2pd btsco won't compile (FIX) plus xmms error (trials and tribulations) how cool is this!!! Waldram, Andrew (SBS UK)
2006-08-04  8:04               ` Frédéric DALLEAU [this message]
2006-08-04  8:46                 ` Waldram, Andrew (SBS UK)
2006-08-04 15:09                   ` [Bluez-devel] a2pd btsco won't compile (FIX) plus xmms error (trials and tribulations) how cool is this!!! new patch Frédéric DALLEAU
2006-08-05 13:54                     ` Waldram, Andrew (SBS UK)
2006-08-05 15:03                       ` [Bluez-devel] a2pd btsco won't compile (FIX) plus xmms error(trials " Waldram, Andrew (SBS UK)
2006-08-08  7:59                         ` [Bluez-devel] a2pd btsco won't compile (FIX) plus xmmserror(trials " Waldram, Andrew (SBS UK)
2006-08-08  8:39                           ` Frédéric DALLEAU
2006-08-08 10:04                             ` Waldram, Andrew (SBS UK)
2006-08-08 14:48                               ` Frédéric DALLEAU
2006-08-08 15:07                                 ` Waldram, Andrew (SBS UK)
2006-08-08 16:37                                   ` Frédéric DALLEAU
2006-08-09  7:42                                     ` Waldram, Andrew (SBS UK)
2006-08-10  7:53                                       ` [Bluez-devel] a2pd btsco won'tcompile (FIX) plus xmmserror(trials and tribulations) howcool " Waldram, Andrew (SBS UK)
2006-08-10 16:05                                         ` Frédéric DALLEAU
2006-08-10 16:14                                           ` Brad Midgley
2006-08-11  7:53                                           ` Waldram, Andrew (SBS UK)
2006-08-12  9:31                                             ` [Bluez-devel] a2pdbtsco won'tcompile (FIX) plus xmmserror(trials andtribulations) " Waldram, Andrew (SBS UK)
2006-08-16 14:56                                               ` Frédéric DALLEAU
2006-08-17  7:37                                                 ` Waldram, Andrew (SBS UK)
2006-08-17  8:02                                                   ` Frédéric DALLEAU
2006-08-17  8:08                                                     ` Waldram, Andrew (SBS UK)
2006-08-17  8:18                                                       ` Frédéric DALLEAU
2006-08-17  8:32                                                         ` Waldram, Andrew (SBS UK)
2006-08-17 14:06                                                     ` Brad Midgley
2006-08-18  8:33                                                       ` Waldram, Andrew (SBS UK)
2006-08-18  9:59                                                         ` Frédéric DALLEAU
2006-08-18 12:24                                                           ` Waldram, Andrew (SBS UK)
2006-08-18 13:16                                                             ` Frédéric DALLEAU
2006-08-18 13:24                                                               ` Waldram, Andrew (SBS UK)
2006-08-08 15:13                                 ` [Bluez-devel] a2pd btsco won't compile (FIX) plus xmmserror(trials and tribulations) how cool " Peter Robinson
2006-08-08 16:39                                   ` Frédéric DALLEAU
2006-08-15 16:03                                     ` Steven Singer
2006-08-16 13:33                                       ` Frédéric DALLEAU
2006-08-16 14:35                                         ` Waldram, Andrew (SBS UK)
2006-08-16 15:28                                         ` Brad Midgley
2006-08-16 16:10                                           ` Frédéric DALLEAU
2006-08-16 16:22                                             ` Brad Midgley

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=44D2FF72.6050309@palmsource.com \
    --to=frederic.dalleau@palmsource.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;
as well as URLs for NNTP newsgroup(s).