All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: tsw@johana.com
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: This OUGHT to be easy, but I'm a bit lost...
Date: Tue, 03 Jun 2003 12:04:00 +0200	[thread overview]
Message-ID: <s5hof1fo4tr.wl@alsa2.suse.de> (raw)
In-Reply-To: <20030603084606.31759.qmail@web21506.mail.yahoo.com>

At Tue, 3 Jun 2003 01:46:06 -0700 (PDT),
Tom Watson wrote:
> 
> I'm just attempting to write a simple playback routine.  Yes, I know
> that 'aplay' exists, but I need some more goodies, and 'aplay' is too
> complex in other areas.
> 
> I've got a multi-channel interleaved sound file (1-6 channels for the
> sake of argument) and I'd like it to reproduce.  In AC-97 sound
> hardware (the motherboard has a VIA 82XX chip set) I need to setup the
> rear outputs to come out the "line-in" jack, and the 5th and 6th
> channels come out the Mic jack.

this is rather the problem of mixer configuration.
in general, however, you can play via "surround51" pcm:

	% aplay -Dsurround51 six-chs.wav

don't forget to raise and unmute "surround" and "center/lfe" volumes.

> I'd like to have 2 channel sound
> OPTIONALLY "double up" and at option come out the "rear" outputs.  I
> wrote programs to do this under OSS (granted it WAS an CMI chip set,
> but the same jacks existed, and the same controls had to be set).  I
> would like to set these controls with the amixer command line program
> (the final program will have NO GUI's at ALL).
 
some codecs have already a mixer switch to do that on hardware
(e.g. ALC650).  or, some driver (e.g. ymfpci) supports it.  in theory,
it's not difficult on emu10k1, too.

if you do that on software, you can do it by adding a new pcm to
~/.asoundrc with copy plugin.


> In addition, I have a Turtle Beach Santa Cruz card (CS42xx chip set). 
> It has nice things like front and rear outputs (even leveled on the
> card!!).  I have my CD player wired into this, and need the mixer
> controls to make this work as well.  The difficult part is finding out
> exactly the command line to make it work.  It is a bit confusing.

routing the analog CD input to the arbitrary analog/digital out is
difficult in general.  only some chip does support it.  i forgot
whether cs46xx can do that.

instead of hardware wiring, you can do it all in digital, i.e. reading
via CDDA and sending the PCM data, so that you can handle everything
as you like.


Takashi


-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5

  reply	other threads:[~2003-06-03 10:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-02 20:18 AudioTrak Optoplay Ross Miller
2003-06-03  7:03 ` Clemens Ladisch
2003-06-03  8:46   ` This OUGHT to be easy, but I'm a bit lost Tom Watson
2003-06-03 10:04     ` Takashi Iwai [this message]
2003-06-03 14:48   ` AudioTrak Optoplay Ross Miller
2003-06-04 14:00     ` Clemens Ladisch
2003-06-04 12:47 ` Takashi Iwai
2003-06-06  6:34   ` Ross Miller
2003-06-06  8:35     ` Takashi Iwai
2003-06-13  6:22       ` Ross Miller

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=s5hof1fo4tr.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=tsw@johana.com \
    /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.