From: "Clemens Ladisch" <cladisch@fastmail.net>
To: alsa-devel@lists.sourceforge.net
Subject: Re: alsa-lib bloat.
Date: Thu, 14 Dec 2006 10:01:48 +0100 [thread overview]
Message-ID: <1166086908.27252.280421715@webmail.messagingengine.com> (raw)
In-Reply-To: <45805507.6090802@pianodisc.com>
Steve deRosier wrote:
> [...]
> For me it boils down to this: libasound was designed for and is intended
> for advanced usage by people that were unsatisfied with the capabilities
> and performance of the more simple interfaces provided with Linux a few
> years ago. It is powerful and exactly what I need for our advanced
> usage.
But one problem is that libasound is the only interface, especially
since OSS was deprecated. The plugin mechanism and the configuration
parser are used by all applications, even if they wouldn't be necessary
on a particular system.
> James Courtier-Dutton wrote:
> > I was thinking that we could really cut down the API to a very limited
> > subset of the current api, and place #ifdef in the source code, so that
> > developers could build alsa-lib for embedded systems using just this
> > subset of the current api.
Using a subset would make it incompatible with the 'real' API.
The hundreds of snd_xxx_get/set_yyy() functions are just wrappers around
a "xxx->yyy = val" or "return xxx->yyy". If we assume that only "hw"
devices are used, most API calls boil down to a thin wrapper around an
ioctl() call. So, in a non-dynamic library, all those functions could
be made inline or a macro.
However, this would require a complete reimplementation of the
'embedded' libasound.
Regards,
Clemens
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
prev parent reply other threads:[~2006-12-14 9:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-08 12:37 alsa-lib bloat James Courtier-Dutton
2006-12-09 8:25 ` Jaroslav Kysela
2006-12-09 11:09 ` James Courtier-Dutton
2006-12-09 14:38 ` Liam Girdwood
2006-12-19 10:03 ` Takashi Iwai
2006-12-13 19:31 ` Steve deRosier
2006-12-14 9:01 ` Clemens Ladisch [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=1166086908.27252.280421715@webmail.messagingengine.com \
--to=cladisch@fastmail.net \
--cc=alsa-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.