From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-76106-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1JTVXg-00085T-32
	for garchives@archives.gentoo.org; Mon, 25 Feb 2008 05:06:20 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id C16EBE0475;
	Mon, 25 Feb 2008 05:06:18 +0000 (UTC)
Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.242])
	by pigeon.gentoo.org (Postfix) with ESMTP id 8B7E9E0475
	for <gentoo-user@lists.gentoo.org>; Mon, 25 Feb 2008 05:06:18 +0000 (UTC)
Received: by hs-out-0708.google.com with SMTP id 55so1536712hsc.2
        for <gentoo-user@lists.gentoo.org>; Sun, 24 Feb 2008 21:06:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth;
        bh=ui7WROKysEhmti2jOEggCBHVOPvvkgZt2b7J3iqmnmg=;
        b=oRX5aSI77mzxZHUqowjWlpKmE+3aINxSVGLa+g1ctk3PQ2eox++sUmwYiALrQYB6Gv/51ibIkHLq4vdtibGpz8VtFek0zhFuYFq6dfgNNh+boxKo7OjEnlsegTgD9DY9Xsx+VAWAIoNR5t02rUVPEjTf6b57LBNAQAA41XmmVF4=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth;
        b=gWSrhABYhWwtGWNKxPEbgT72/6YvMe4YMDoWXM7vMhTLMlYb7QltzHs9XGsOucwtvhf8hO7grYVPGR7Ln6eTRQmtQsdO73gJ90iRITsH7k/ik5515hHSo/zsJTr6h6gsPl2GYfWOPZLxtzhmJAnyOzWYh7KqBTjVL5AyhQHjrJA=
Received: by 10.100.216.3 with SMTP id o3mr5841099ang.6.1203915977858;
        Sun, 24 Feb 2008 21:06:17 -0800 (PST)
Received: by 10.100.137.10 with HTTP; Sun, 24 Feb 2008 21:06:17 -0800 (PST)
Message-ID: <f47983b00802242106g4e5d2f3bxfa0941e624536fd8@mail.gmail.com>
Date: Mon, 25 Feb 2008 00:06:17 -0500
From: "Ritesh Kumar" <ritesh@cs.unc.edu>
Sender: dial2ritesh@gmail.com
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Switch between sound cards?
In-Reply-To: <49bf44f10802241245yf93de1flcf0cb7fd087eff44@mail.gmail.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_12404_10690352.1203915977846"
References: <49bf44f10802240944t774af531k422ba0ed07c777a1@mail.gmail.com>
	 <5bdc1c8b0802241001if4d244bqcc8a91ddf8f30ee1@mail.gmail.com>
	 <49bf44f10802241134y75a8d01bhb7e1a231232caab5@mail.gmail.com>
	 <1203885220.10427.113.camel@NOTE_GENTOO64.PHHEIMNETZ>
	 <49bf44f10802241245yf93de1flcf0cb7fd087eff44@mail.gmail.com>
X-Google-Sender-Auth: 2e71aa6870d80587
X-Archives-Salt: dc31b5e4-8975-4245-8cc3-b214fd71bff7
X-Archives-Hash: 86187101454dbc7927f7c8dd73ff551d

------=_Part_12404_10690352.1203915977846
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Sun, Feb 24, 2008 at 3:45 PM, Grant <emailgrant@gmail.com> wrote:

> >  > >  > I have a USB sound card and an internal sound card in my laptop.
>  Is
> >  > >  >  there a way to switch between them while the system is booted?
>  Is
> >  > >  >  module loading/unloading via modprobe the best way to do it?
> >  > >  >
> >  > >  >  - Grant
> >  > >  >  --
> >  > >  >  gentoo-user@lists.gentoo.org mailing list
> >  > >  >
> >  > >  >
> >  > >
> >  > >  Why switch between them when you can use them both at the same
> time as
> >  > >  hw:0 and hw:1?
> >  >
> >  > Thanks Mark.  After studying your config, here is mine:
> >  >
> >  > alias snd-card-0 snd-hda-intel
> >  > options snd-hda-intel index=1
> >  > options snd-hda-intel model=acer
> >  >
> >  > alias snd-card-1 snd-usb-audio
> >  > options snd-usb-audio index=0
> >  >
> >  > alias sound-slot-0 snd-card-0
> >  > alias sound-slot-1 snd-card-1
> >  >
> >  > alias /dev/mixer snd-mixer-oss
> >  > alias /dev/dsp snd-pcm-oss
> >  > alias /dev/midi snd-seq-oss
> >  >
> >  > options snd cards_limit=2
> >  >
> >  > I get sound from the USB card but not from the internal card
> >  > (snd-hda-intel).  How can I tell the system to turn off the USB card
> >  > and turn on the internal card?
> >  >
> >  > - Grant
> >  >
> >
> >  You might want to take a look at the new pulseaudio daemon. I don't use
> >  it but as far as I know it's perfect for complex setups like yours.
> >  Think of it as a (transparent, if necessary) layer between your
> software
> >  and alsa. It should be easier to reconfigure than alsa.
> >
> >  You could use it (or the older the older jack daemon) to send audio to
> >  both devices.
>
> Alright, but it seems like ALSA has some native support for multiple
> cards.  Does anyone have more than one sound card and the ability to
> switch between them in native ALSA?
>
>
I did a lot of search sometime back to get this solved... my blog entry on
this is at the following link.
http://defectivecompass.wordpress.com/2007/12/05/alsa-configuration/

I would also recommend you to take a look a pulseaudio (I have an entry for
that on my blog as well). Hot switching of audio streams between devices is
really cool!

_r

------=_Part_12404_10690352.1203915977846
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Sun, Feb 24, 2008 at 3:45 PM, Grant &lt;<a href="mailto:emailgrant@gmail.com">emailgrant@gmail.com</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">&gt; &nbsp;&gt; &gt; &nbsp;&gt; I have a USB sound card and an internal sound card in my laptop. &nbsp;Is<br>
&gt; &nbsp;&gt; &gt; &nbsp;&gt; &nbsp;there a way to switch between them while the system is booted? &nbsp;Is<br>
&gt; &nbsp;&gt; &gt; &nbsp;&gt; &nbsp;module loading/unloading via modprobe the best way to do it?<br>
&gt; &nbsp;&gt; &gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt; &gt; &nbsp;&gt; &nbsp;- Grant<br>
&gt; &nbsp;&gt; &gt; &nbsp;&gt; &nbsp;--<br>
&gt; &nbsp;&gt; &gt; &nbsp;&gt; &nbsp;<a href="mailto:gentoo-user@lists.gentoo.org">gentoo-user@lists.gentoo.org</a> mailing list<br>
&gt; &nbsp;&gt; &gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt; &gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt; &gt;<br>
&gt; &nbsp;&gt; &gt; &nbsp;Why switch between them when you can use them both at the same time as<br>
&gt; &nbsp;&gt; &gt; &nbsp;hw:0 and hw:1?<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt; Thanks Mark. &nbsp;After studying your config, here is mine:<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt; alias snd-card-0 snd-hda-intel<br>
&gt; &nbsp;&gt; options snd-hda-intel index=1<br>
&gt; &nbsp;&gt; options snd-hda-intel model=acer<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt; alias snd-card-1 snd-usb-audio<br>
&gt; &nbsp;&gt; options snd-usb-audio index=0<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt; alias sound-slot-0 snd-card-0<br>
&gt; &nbsp;&gt; alias sound-slot-1 snd-card-1<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt; alias /dev/mixer snd-mixer-oss<br>
&gt; &nbsp;&gt; alias /dev/dsp snd-pcm-oss<br>
&gt; &nbsp;&gt; alias /dev/midi snd-seq-oss<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt; options snd cards_limit=2<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt; I get sound from the USB card but not from the internal card<br>
&gt; &nbsp;&gt; (snd-hda-intel). &nbsp;How can I tell the system to turn off the USB card<br>
&gt; &nbsp;&gt; and turn on the internal card?<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt; - Grant<br>
&gt; &nbsp;&gt;<br>
&gt;<br>
&gt; &nbsp;You might want to take a look at the new pulseaudio daemon. I don&#39;t use<br>
&gt; &nbsp;it but as far as I know it&#39;s perfect for complex setups like yours.<br>
&gt; &nbsp;Think of it as a (transparent, if necessary) layer between your software<br>
&gt; &nbsp;and alsa. It should be easier to reconfigure than alsa.<br>
&gt;<br>
&gt; &nbsp;You could use it (or the older the older jack daemon) to send audio to<br>
&gt; &nbsp;both devices.<br>
<br>
</div></div>Alright, but it seems like ALSA has some native support for multiple<br>
cards. &nbsp;Does anyone have more than one sound card and the ability to<br>
switch between them in native ALSA?<br>
<div><div></div><div class="Wj3C7c"><br></div></div></blockquote></div><br>I did a lot of search sometime back to get this solved... my blog entry on this is at the following link.<br><a href="http://defectivecompass.wordpress.com/2007/12/05/alsa-configuration/">http://defectivecompass.wordpress.com/2007/12/05/alsa-configuration/</a><br>
<br>I would also recommend you to take a look a pulseaudio (I have an entry for that on my blog as well). Hot switching of audio streams between devices is really cool!<br><br>_r<br><br>

------=_Part_12404_10690352.1203915977846--
-- 
gentoo-user@lists.gentoo.org mailing list