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-76103-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1JTQAN-00057F-AY
	for garchives@archives.gentoo.org; Sun, 24 Feb 2008 23:21:55 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id C8097E0686;
	Sun, 24 Feb 2008 23:21:53 +0000 (UTC)
Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.237])
	by pigeon.gentoo.org (Postfix) with ESMTP id 9D061E0686
	for <gentoo-user@lists.gentoo.org>; Sun, 24 Feb 2008 23:21:53 +0000 (UTC)
Received: by wr-out-0506.google.com with SMTP id 50so97803wri.10
        for <gentoo-user@lists.gentoo.org>; Sun, 24 Feb 2008 15:21:53 -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:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        bh=VUubwfwCih5555cJEuZuvhvlEss3g9qmfRu5nmfZRnk=;
        b=jt4vPs4GpjbbtslRcVqdjdSx3uViGCnvrY94qTgFXBDSNMW/8A3H1nL8R5bsG5gG4brl1UT8o4tlPgNEKYyVkg81Df6P0iI0Q8fpyZx8dhAxuZWLVExFnrA1e9M6uqhMLOnQoavSxuPg9lfI5c8Ihjh+PxNCNDIFH3E/fDTeZOQ=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=qg5V5bx+SERGtZrcqrxByGRObJBg7ujex4d9bp/SNatDOwBlW1GUyhtQKpT3Da1vhEISTcHc10W7gyu6m7iiDAEI2vHcIfIH1+lYLD/d6m1lrb9CbYoMsC14THvJKjpWfxIxAi+ZkkCNU4WKEc18zP0j4abl5vlwejXJYQADKbs=
Received: by 10.114.184.7 with SMTP id h7mr2596868waf.28.1203895312443;
        Sun, 24 Feb 2008 15:21:52 -0800 (PST)
Received: by 10.115.110.15 with HTTP; Sun, 24 Feb 2008 15:21:52 -0800 (PST)
Message-ID: <49bf44f10802241521r1fbbc8f2sa942cb968a0080df@mail.gmail.com>
Date: Sun, 24 Feb 2008 15:21:52 -0800
From: Grant <emailgrant@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Switch between sound cards?
In-Reply-To: <5bdc1c8b0802241344o28dc5d4ayef27a11245bf0adf@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: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <49bf44f10802240944t774af531k422ba0ed07c777a1@mail.gmail.com>
	 <5bdc1c8b0802241001if4d244bqcc8a91ddf8f30ee1@mail.gmail.com>
	 <49bf44f10802241134y75a8d01bhb7e1a231232caab5@mail.gmail.com>
	 <5bdc1c8b0802241344o28dc5d4ayef27a11245bf0adf@mail.gmail.com>
X-Archives-Salt: 605210f0-a697-4cf7-8619-cee5aaaa0a2e
X-Archives-Hash: 2cd50b00ea78ed858968c477ad763cff

> Grant,
>    If you want to do a complete switch then you would change your USB
>  card to index 0 and restart Als which would make the USB card the
>  default since card 0 is always the default for Alsa. On the other
>  hand, if you wanted to just leave the onboard card as default and send
>  audio from a specific application to the USB card you would tell the
>  application to use hw:1 explicity, either in the command line when you
>  start the app or in an application's config file. On my system I let
>  all my web/browest audio go to the onboard sound card but I send all
>  my CD audio directly to my good card using Aqualung and configuring it
>  from the command line. (Actually in my launcher.)
>
>    to the best of my knowledge there has never been a way to simply
>  switch sound cards on the fly in Alsa. I've requested this sometime
>  back but the developers haven't shown any interest.
>
>  Hope this helps,
>  Mark

Hi Mark,

Changing the index and restarting alsasound would be a great switching
method but I can't get that to work.  No matter which one I set to
index=0 and which to index=1 the sound always comes out of the USB
card.

BTW, what sound card are you using?  Here's mine, it's great:

http://diyparadise.com/shop/index.php?main_page=product_info&cPath=2&products_id=82

- Grant


>  > >  > 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
>  >
>  >
>  >
>  >
>  >  >  # Alsa 0.9.X kernel modules' configuration file.
>  >  >  # $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v
>  >  >  1.4 2004/11/16 01:31:22 eradicator Exp $
>  >  >
>  >  >  # ALSA portion
>  >  >  alias char-major-116 snd
>  >  >
>  >  >  # OSS/Free portion
>  >  >  alias char-major-14 soundcore
>  >  >
>  >  >  ##  ALSA portion
>  >  >  alias snd-card-0 snd-intel8x0
>  >  >  options snd-intel8x0 index=0
>  >  >  alias snd-card-1 snd-hdsp
>  >  >  options snd-hdsp index=1
>  >  >
>  >  >  ##  OSS/Free portion
>  >  >  alias sound-slot-0 snd-card-0
>  >  >
>  >  >
>  >  >  # OSS/Free portion - card #1
>  >  >  alias sound-service-0-0 snd-mixer-oss
>  >  >  alias sound-service-0-1 snd-seq-oss
>  >  >  alias sound-service-0-3 snd-pcm-oss
>  >  >  alias sound-service-0-8 snd-seq-oss
>  >  >  alias sound-service-0-12 snd-pcm-oss
>  >  >
>  >  >  alias /dev/mixer snd-mixer-oss
>  >  >  alias /dev/dsp snd-pcm-oss
>  >  >  alias /dev/midi snd-seq-oss
>  >  >
>  >  >  # Set this to the correct number of cards.
>  >  >  options snd cards_limit=2
-- 
gentoo-user@lists.gentoo.org mailing list