All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Jaroslav Kysela <perex@suse.cz>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Support for the Bluetooth subband codec (SBC)
Date: Mon, 08 Nov 2004 14:31:52 +0100	[thread overview]
Message-ID: <1099920713.6896.143.camel@pegasus> (raw)
In-Reply-To: <Pine.LNX.4.58.0411081326500.2162@pnote.perex-int.cz>

Hi Jaroslav,

> > I don't think that this is linear PCM, but actually I am no expert when
> > it comes to codec specific stuff. I would be great if you can take a
> > look at it and tell me what you think how we should support it.
> 
> I see - SBC is an audio compression. It should be implemented in alsa-lib 
> as you suggested.

my idea is to add a snd_pcm_t for every stream endpoint and then set the
type of the snd_pcm_hardware_t to SBC at runtime. The ALSA library then
must do the audio compression, rate conversion etc.

However my current problem is that SBC type has some codec specific
information elements (A2DP, page 20) and I don't know for some of them
how we should support them. For all that don't have the specification
these information are:

	- Sampling Frequency
		- 16000, 32000, 441000 and 48000 Hz
	- Channel Mode
		- Mono, Dual channel, Stereo, Joint stereo
	- Block Length
		- 4, 8, 12 and 16
	- Subbands
		- 4 and 8
	- Allocation Method
		- SNR and Loudness
	- Minimum Bitpool Value
	- Maximum Bitpool Value
		- Both are ranging from 2 to 250

Some of these settings are mandatory to support and some of them are
optional.

The only clear value for me is the sampling frequency. Mapping the
channel mode to the channels_{min|max} is not clear and for the rest I
have no idea.

Any ideas on how we should support this?

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

      reply	other threads:[~2004-11-08 13:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-08  1:45 Support for the Bluetooth subband codec (SBC) Marcel Holtmann
2004-11-08 10:56 ` Jaroslav Kysela
2004-11-08 12:09   ` Marcel Holtmann
2004-11-08 12:40     ` Jaroslav Kysela
2004-11-08 13:31       ` Marcel Holtmann [this message]

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=1099920713.6896.143.camel@pegasus \
    --to=marcel@holtmann.org \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=perex@suse.cz \
    /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.