From: "Martijn Sipkema" <msipkema@sipkema-digital.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: more sample formats? too little place left.
Date: Mon, 3 Jun 2002 16:00:25 +0100 [thread overview]
Message-ID: <002201c20b0f$6b7e75e0$0400a8c0@martijn> (raw)
In-Reply-To: s5hlm9wfper.wl@alsa2.suse.de
> > > it seems that USB audio supports 24 bit sample in 3 bytes format.
> > > and additionally i've found there are 20bit and 18bit sample formats.
> > > the world is large...
> > >
> > > an arising problem is that the number of formats is limited to 32.
> > > already 26 format types are used. the rest are only 6, and not enough
> > > if we put BE/LE and signed/unsigned for new formats, too.
> > >
> > > how can we solve this? extend to 64bit? no, it has too overhead.
> > > add a new field for special formats?
> > >
> > > perhaps we don't need all of them for such special formats.
> > > there are no unsigned types for such formats.
> > > but anyway the left resource is too small.
> >
> > are formats currently a bit in a 'supported formats' flag?
>
> yes.
>
> the problem is that the bitmask is defined as unsigned int, und
> limitied to 31 bits.
>
> if it's only in alsa driver, then it wouldn't be serious.
> but apparently alsa-lib defines also mask as an integer.
> theoretically, redefining this type won't cause any compatibility
> problems, though, as long as you link alsa-lib dynamically.
> (it's an obvious advantage of "complicated" alsa api :)
perhaps not using a bitmask, but having two ioctls, one giving
the number of supported formats, the other returning the format
description taking an index argument, not unlike the EASI interface
, might be better.
--martijn
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
next prev parent reply other threads:[~2002-06-03 15:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-31 14:23 more sample formats? too little place left Takashi Iwai
2002-05-31 18:36 ` Martijn Sipkema
2002-05-31 18:52 ` Martijn Sipkema
2002-06-03 13:43 ` Takashi Iwai
2002-06-03 15:00 ` Martijn Sipkema [this message]
2002-06-03 20:06 ` Frank van de Pol
2002-06-02 0:22 ` Ville Syrjälä
2002-06-03 13:47 ` Takashi Iwai
2002-06-03 21:32 ` Dan Hollis
2002-06-04 11:26 ` Takashi Iwai
2002-06-04 20:55 ` Dan Hollis
2002-06-10 14:42 ` Takashi Iwai
2002-06-10 20:46 ` Dan Hollis
2002-06-12 14:30 ` Takashi Iwai
2002-06-12 18:19 ` Dan Hollis
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='002201c20b0f$6b7e75e0$0400a8c0@martijn' \
--to=msipkema@sipkema-digital.com \
--cc=alsa-devel@lists.sourceforge.net \
--cc=tiwai@suse.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