From: Takashi Iwai <tiwai@suse.de>
To: Roger Villars <roger.villars@fhso.ch>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Userspace ALSA Soundcard
Date: Thu, 14 Oct 2004 17:35:44 +0200 [thread overview]
Message-ID: <s5hzn2pfh2n.wl@alsa2.suse.de> (raw)
In-Reply-To: <MEMPHIS1yhB9GYV22CH00000003@Memphis.stud.so.fhnw.ch>
At Thu, 14 Oct 2004 09:32:52 +0200,
Roger Villars wrote:
>
>
> Hello
>
> I'm new to the ALSA Framework and I'm trying to program
> a "virtual" soundcard for a Bluetooth Headset that is running
> completely in userspace. No kernel modules or something.
>
> You should only start a deamon program and then every ALSA beware
> program can "see" a new Soundcard.
Even the daemon wouldn't needed, I guess.
Well, the mixer might be problematic in some cases.
> First Question: Do you think this is possible?
Yes.
> Second Question: How?
A good question :) There is no real documentation for this.
As you wrote below, jack_pcm.c is the best example to rerfer to.
> I heard that there is a file called pcm_jack.c in ALSA that is
> doing exactly what I need. But as I'm new to ALSA I don't know
> how and where in the code it is doing it.
>
> Would be nice if somebody can give me some Know-how.
Basically, you need to write dozen of callbacks for each pcm
operation. The most cryptical part is the PCM configuration.
The PCM layer calls hw_params, hw_refine, and sw_params callbacks for
querying and setting up the proper configuration.
Takashi
-------------------------------------------------------
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
next prev parent reply other threads:[~2004-10-14 15:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-14 7:32 Userspace ALSA Soundcard Roger Villars
2004-10-14 15:35 ` Takashi Iwai [this message]
2004-10-15 11:53 ` Roger Villars
2004-10-15 12:59 ` James Courtier-Dutton
2004-10-18 9:05 ` Roger Villars
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=s5hzn2pfh2n.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=roger.villars@fhso.ch \
/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.