From: Nicolas Boullis <nboullis@debian.org>
To: alsa-devel@alsa-project.org
Subject: "softswitch" feature?
Date: Tue, 20 Jan 2009 01:59:30 +0100 [thread overview]
Message-ID: <20090120005929.GA4003@tryphon.debian.net> (raw)
Hello,
I'd like to implement a PCM device with 2 slaves, that sends its stream
to either slave according to a user-defined switch.
I need this for a card that is able to play either 2-channel 16-bit
big-endian frames to its analog output or IEC958 frames to its digital
output. I'd like to setup a "default" device for this card that send
sound to either output according to a switch.
Is such a thing feasible with the existing plugins?
If not, do you think it would be easy to implement?
Note that, although my card implements this as 2 separate devices, they
can't be open simultaneously since both use the same hardware fifo.
Hence, I think it would require that the unused slave not be open.
I also can imagine othen applications for such a feature, such as with a
VOIP application to use either a standard soundcard connected to
loudspeakers and a microphone, or a bluetooth headset.
Reagrds,
Nicolas
PS: FWIW, the card I'm talking about is a hardware MPEG decoder board,
whose driver I'm the maintainer of, an which implements an ALSA driver
for its audio part. It's current card-specific configuration is
available at
http://freehg.org/u/nboullis/em8300/file/tip/modules/EM8300.conf
All comments are welcome.
reply other threads:[~2009-01-20 0:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20090120005929.GA4003@tryphon.debian.net \
--to=nboullis@debian.org \
--cc=alsa-devel@alsa-project.org \
/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