public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Lars Grunewaldt <lgw@dark-reality.de>
Cc: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] question about hci_usb endpoint selection...
Date: Thu, 14 Oct 2004 13:20:49 +0200	[thread overview]
Message-ID: <1097752849.4640.37.camel@notepaq> (raw)
In-Reply-To: <416D23A6.3010904@dark-reality.de>

Hi Lars,

> I already asked this before, but I want to "nail down" this problem now,
> so I'm asking again and hope that someone can give some suggestions that
> even my stupid brain can understand. If this is the wrong list to ask,
> just point me to the correct one, and I'll post again there.
> 
> The problem is this:
> when using sco and using different voice modes (0x0060 for 16bit/8kHz,
> 0x0040 for 8bit/8kHz), different "alternate settings" have to be used on
> hci_usb.
> 
> The former answer was:
> "Don't use this patch [changing the "alternate settings" selection
> hardcodedly] and accept the default voice setting of 0x0060."
> 
> We really don't want to. There are MANY people out there who want to use
> 16 bit audio, and MANY who want to use 8bit MU_LAW. What has to be done
> to make it possible to change this "alternate setting" when we actually
> *need* not alternate setting "2" (16bit), but use alternate setting "1"
> when needed?
> 
> Marcel pointed out that:
> "You can make use of the notify() callback and adjust the alternate
> setting as needed. Maybe you have to unlink and re-submit the ISOC
> URB's, but the best way is to start the ISOC URB's only when a SCO
> connection is created."
> 
> Uhm, sorry. What? Yes, I'm not firm in kernel hacking, yes, I did not
> RTFM, please just push me into the right direction here. Either API
> documentation href and/or "use this and that function", or just dump
> some lines of pseudo code with "what function comes from what API" so
> that I can get a basic understanding what's going on in hci_usb. What
> notify callback? How to register? Where can I find an example of someone
> else doing this? Where can I find out what an ISOC URB really is?

look at the hci_usb driver and add the notify() callback function for
it. This function gets called when you change the voice setting or a new
connection is added or removed. I changed the connection hash to count
the ACL and SCO links separatly and disabled the tasklet when calling
this function so that the core stops processing TX packets and enable it
after the driver finished anything it has to do.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2004-10-14 11:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-13 12:46 [Bluez-devel] question about hci_usb endpoint selection Lars Grunewaldt
2004-10-14 11:20 ` Marcel Holtmann [this message]
2004-10-14 21:50   ` Lars Grunewaldt
2004-10-16 12:06     ` Marcel Holtmann
2004-10-16 16:19       ` Lars Grunewaldt
2004-10-17 11:41         ` Marcel Holtmann
2004-10-17 14:15           ` 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=1097752849.4640.37.camel@notepaq \
    --to=marcel@holtmann.org \
    --cc=bluez-devel@lists.sourceforge.net \
    --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