All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: [Bluez-devel] Comments about the Logitech/HP stereo headphones
Date: Sun, 24 Apr 2005 14:18:32 +0200	[thread overview]
Message-ID: <1114345112.10706.64.camel@pegasus> (raw)

Hi Folks,

since the progress on the A2DP support stalled and because the problems
with the Logitech/HP headphones still exists, I thought that it is time
to buy one of these by myself. I now have the Aiptek, Bluewalker and the
HP headphones at home for testing. The first two are GCT based and the
last one is Zeevo based.

All GCT based headphones are working fine and they have the nice SBC
over RFCOMM support for testing. They are not picky about any timing
related transfers and they cache the SBC stream. To deal with the Zeevo
based headphones you can only talk AVDTP and you need to get the timing
right. Otherwise the sound is messed up.

So what I have done so far is that I extended the pcm_a2dp ALSA plugin
in the utils CVS repository with the ability to cache the connection.
This is needed, because players like xmms and bmp close the PCM every
time they change the track. If we close the AVDTP channel it results
into closing the ACL link and this is not what we want. The only problem
at the moment is that this plugin only supports SBC over RFCOMM and it
doesn't care about the timing. This means that if you change a track it
can take 1 or 2 seconds before the headphones reacts, because parts are
already cached. This is a problem (or feature) of the GCT based devices.

To fully support all A2DP headphones (including Logitech/HP) this plugin
needs a AVDTP implementation. I have a hacked one on my development
system and it works fine with the GCT headphones. The code is a little
bit messy, but in general it works. It is fully event driven and so it
deprecates the idea of the AVDTP library. It is a lot easier to do it
directly inside the plugin. I need to cleanup the code and submit it to
the CVS when there is a little bit more time.

I also got first results with the HP headphone by adding an usleep(2500)
for every SBC frame. It is also needed to pack as most SBC frames into
an AVDTP frame as possible. In my case this was up to eight. So this is
all about the timing. The perfect thing now would be if we can tell ALSA
to time everything for us. Problem is that I am not an audio expert and
also not an ALSA expert. Maybe the SBC encoder should return/store the
time the SBC frame is encoded for.

Comments? Ideas?

And btw for testing the pcm_a2dp plugin you need ALSA 1.0.9-rc2 and
an .asoundrc config file like this:

	pcm.bluewalker {
	        type a2dp
	        bdaddr "00:0B:0D:xx:xx:xx"
	}

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

             reply	other threads:[~2005-04-24 12:18 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-24 12:18 Marcel Holtmann [this message]
2005-04-24 13:47 ` [Bluez-devel] Comments about the Logitech/HP stereo headphones Guylhem Aznar
2005-04-24 14:28   ` Brad Midgley
2005-04-24 15:23     ` Marcel Holtmann
2005-04-24 15:16   ` Marcel Holtmann
2005-04-24 17:11     ` Guylhem Aznar
2005-04-24 18:09       ` Marcel Holtmann
2005-04-24 20:28       ` Brad Midgley
2005-04-24 16:19   ` Henryk Plötz
2005-04-24 16:48     ` Guylhem Aznar
2005-04-24 18:15       ` Marcel Holtmann
2005-04-24 18:12     ` Marcel Holtmann
2005-04-24 14:04 ` Brad Midgley
2005-04-24 14:34   ` Brad Midgley
2005-04-24 15:30   ` Marcel Holtmann
2005-04-25 17:39     ` Brad Midgley
  -- strict thread matches above, loose matches on Subject: below --
2005-04-24 15:16 Mayank Batra
2005-04-24 15:35 ` Marcel Holtmann
2005-04-26 12:46 Mayank Batra
2005-04-26 13:28 ` Marcel Holtmann
2005-04-28 12:10 Mayank Batra
2005-04-29  9:51 ` 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=1114345112.10706.64.camel@pegasus \
    --to=marcel@holtmann.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.