From: Fredrik Tolf <fredrik@dolda2000.com>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] Re: [Patch] Some btsco modifications
Date: Mon, 14 Mar 2005 14:51:26 +0100 [thread overview]
Message-ID: <1110808286.5056.87.camel@pc7.dolda2000.com> (raw)
In-Reply-To: <42357B08.7020009@dark-reality.de>
On Mon, 2005-03-14 at 12:52 +0100, Lars Grunewaldt wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> |>>On the bad side, the coding is pretty unelegant in its places, and I've
> |>>completely violated your coding style. Also, backward compatibility for
> |>>userspace communication is broken since I had to extend the structure
> |>>for incorporating usage status. I haven't updated the btsco2 program
> |>>either.
>
> I really like the changes you made in this patch, but why don't you
> simply follow the coding style and send in a patch that's actually
> usefull to the community? It's not that hard to comply to coding
> style...? *scratchinghishead*
>
> maybe you could fix the coding style and send it in again :)
Well, to be honest, it's because I didn't understand the coding style.
There are lots of linebreaks that I neither see the meaning of nor any
pattern in. So I just didn't know what to do. :)
> Is it possible to have the headset buttons work as they did without the
> patch, like, switching between both behaviours? there are scenarios for
> both methods, and even the BT specs cover both of them.
Well, at first I was thinking that one could simply code a config file
that opens the corresponding DSP or ALSA device with a cat process or
something. I realized later, though, that that would make the next
access block, since the ALSA driver can only handle one open at a time
(since there's just one substream). So right now, I have no obvious
answer to this, except possibly that one could have a signal interface
to the btsco daemon (send SIGUSR1 to connect and SIGUSR2 to disconnect,
for example), but since I used SIGUSR1 to ring the headset, I'm not sure
what signals to use. One could use SIGUSR2 to toggle the connection
status, but that seems so ugly...
Maybe the config file could be changed to run some internal command set
in the daemon instead, like this:
AT\+CKPD=200
sco-toggle
AT\+CHLD=2
system (whatever command to make gnomemeeting pick up, for example)
Or:
AT\+CKPD=200
sco-connect
AT\+CHLD=2
sco-disconnect
I'm not sure if the signal interface or config file extension is the
best, really, so I'd appreciate comments on that.
Fredrik Tolf
-------------------------------------------------------
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
next prev parent reply other threads:[~2005-03-14 13:51 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1110683934.5056.43.camel@pc7.dolda2000.com>
[not found] ` <4233C663.80109@xmission.com>
2005-03-14 1:11 ` [Bluez-devel] Re: [Patch] Some btsco modifications Fredrik Tolf
2005-03-14 11:52 ` Lars Grunewaldt
2005-03-14 13:51 ` Fredrik Tolf [this message]
2005-03-14 15:00 ` Fredrik Tolf
2005-03-14 12:55 ` Brad Midgley
2005-03-14 14:05 ` Fredrik Tolf
2005-03-14 17:26 ` Brad Midgley
2005-03-14 19:01 ` Florian Echtler
2005-03-14 20:34 ` Brad Midgley
2005-03-15 7:22 ` Brad Midgley
2005-03-15 23:42 ` Fredrik Tolf
2005-03-16 0:17 ` Brad Midgley
2005-03-16 1:56 ` Fredrik Tolf
2005-03-16 12:30 ` Lars Grunewaldt
2005-03-16 13:01 ` Fredrik Tolf
2005-03-16 15:18 ` Brad Midgley
2005-03-16 19:34 ` Lars Grunewaldt
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=1110808286.5056.87.camel@pc7.dolda2000.com \
--to=fredrik@dolda2000.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 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.