From: Marcel Holtmann <marcel@holtmann.org>
To: Jonathan Paisley <jp-www@dcs.gla.ac.uk>
Cc: Lars Grunewaldt <lgw@dark-reality.de>,
BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] snd-bt-sco development teamup...
Date: Tue, 10 Aug 2004 15:11:45 +0200 [thread overview]
Message-ID: <1092143505.4564.117.camel@pegasus> (raw)
In-Reply-To: <Pine.LNX.4.59.9999.0408101355310.22497@brava.dcs.gla.ac.uk>
Hi Jonathan,
> > and the snd-bt-sco driver uses socket programming from within a kernel
> > thread. If we remove that and include it directly into the SCO driver I
> > think we have all what we need ;)
>
> I'll chime in here to say that I agree with this too! (as the original
> author of the snd-bt-sco hack).
>
> I'd also mention that I didn't find latency to be a problem, but I know
> that there are issues resulting from lack of buffering that cause audio
> dropouts for the listener. This lack of buffering, however, is a result of
> the design of the driver and not a fundamental limitation in bluez.
the point is that dropping packets and generating zero packets is
already part of the Bluetooth chip. This means we will get a correct
stream from the hardware and we must only make sure that we deliver our
packets in time as long as the hardware is able to buffer it.
> > Lets connect the SCO channel throught the socket interface and then tell
> > the kernel via an IOCTL to change this into an ALSA device. We do the
> > same for RFCOMM where we convert a socket into a TTY.
> >
> > Most of the snd-bt-sco source will be useless, because it handles the in
> > kernel socket programming and you don't need that inside the SCO module.
>
> Again, this sounds like a reasonable way to do things. I'd imagine that
> the ALSA device will have to hang around in the absence of an active SCO
> connection in order that programs using the device can keep it open while
> a headset comes and goes. Therefore it'd be necessary to have a mechanism
> to dynamically create ALSA devices, and another for binding active SCO
> sockets to those devices.
>
> As far as the existing snd-bt-sco source goes, I think there's a
> significant amount of code that can be saved. Most of the code is dealing
> with the ALSA integration, management of the mixer and pcm interfaces etc.
> The kernel thread that does the socket programming can be ripped out
> (along with the ioctl handlers that set it up) and replaced with
> timer-driven code which talks directly to the SCO module.
I prefer the ALSA integration would be written from scratch, because the
original driver was written for a 2.4 kernel and we must concentrate on
the 2.6 series. The ALSA subsytem will be cleaned up in the next kernel
releases and the magic casting stuff they do is still wrong.
Regards
Marcel
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2004-08-10 13:11 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-09 16:51 [Bluez-devel] snd-bt-sco development teamup Lars Grunewaldt
2004-08-09 17:09 ` Marcel Holtmann
2004-08-09 17:12 ` Lars Grunewaldt
2004-08-09 17:39 ` Marcel Holtmann
2004-08-09 18:21 ` James Courtier-Dutton
2004-08-09 22:26 ` Marcel Holtmann
2004-08-09 23:53 ` Lars Grunewaldt
2004-08-10 12:14 ` Marcel Holtmann
2004-08-10 12:53 ` James Courtier-Dutton
2004-08-10 13:39 ` Jonathan Paisley
2004-08-10 14:26 ` Carl Orsborn
2004-08-10 14:48 ` Marcel Holtmann
2004-08-10 15:31 ` Jonathan Paisley
2004-08-11 8:58 ` Roderick Taylor
2004-08-11 6:40 ` Marcel Holtmann
2004-08-10 15:51 ` James Courtier-Dutton
2004-08-10 18:43 ` Jonathan Paisley
2004-08-10 19:22 ` Carl Orsborn
2004-08-10 12:56 ` [Bluez-devel] snd-bt-sco development teamup | ALSA connection Lars Grunewaldt
2004-08-10 13:45 ` Marcel Holtmann
2004-08-10 13:53 ` [snd-bt-sco] " Jonathan Paisley
2004-08-10 14:36 ` Marcel Holtmann
2004-08-10 14:39 ` Jonathan Paisley
2004-08-10 14:21 ` Lars Grunewaldt
2004-08-10 15:01 ` Marcel Holtmann
2004-08-10 16:02 ` Lars Grunewaldt
2004-08-10 14:53 ` James Courtier-Dutton
2004-08-10 13:03 ` [Bluez-devel] snd-bt-sco development teamup Jonathan Paisley
2004-08-10 13:11 ` Marcel Holtmann [this message]
2004-08-10 13:18 ` Lars Grunewaldt
2004-08-10 13:20 ` Jonathan Paisley
2004-08-10 13:22 ` Lars Grunewaldt
2004-08-10 13:54 ` James Courtier-Dutton
2004-08-10 13:28 ` Marcel Holtmann
2004-08-10 13:40 ` James Courtier-Dutton
2004-08-10 13:49 ` Marcel Holtmann
2004-08-10 14:07 ` James Courtier-Dutton
2004-08-10 14:34 ` Marcel Holtmann
2004-08-10 15:15 ` James Courtier-Dutton
2004-08-10 15:25 ` Marcel Holtmann
2004-08-10 16:46 ` James Courtier-Dutton
2004-08-10 22:58 ` Marcel Holtmann
2004-08-10 11:48 ` Lars Grunewaldt
2004-08-10 12:08 ` Marcel Holtmann
2004-08-10 12:40 ` Lars Grunewaldt
2004-08-10 13:03 ` Marcel Holtmann
2004-08-10 13:10 ` Lars Grunewaldt
2004-08-10 13:30 ` 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=1092143505.4564.117.camel@pegasus \
--to=marcel@holtmann.org \
--cc=bluez-devel@lists.sourceforge.net \
--cc=jp-www@dcs.gla.ac.uk \
--cc=lgw@dark-reality.de \
/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