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 ) 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 ; Mon, 25 Feb 2008 05:06:18 +0000 (UTC) Received: by hs-out-0708.google.com with SMTP id 55so1536712hsc.2 for ; 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: Date: Mon, 25 Feb 2008 00:06:17 -0500 From: "Ritesh Kumar" 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: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail 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 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 <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-- -- gentoo-user@lists.gentoo.org mailing list