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-76095-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1JTLA2-0004p8-Sr
	for garchives@archives.gentoo.org; Sun, 24 Feb 2008 18:01:15 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 2E953E0512;
	Sun, 24 Feb 2008 18:01:13 +0000 (UTC)
Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.184])
	by pigeon.gentoo.org (Postfix) with ESMTP id D5EE2E0513
	for <gentoo-user@lists.gentoo.org>; Sun, 24 Feb 2008 18:01:12 +0000 (UTC)
Received: by gv-out-0910.google.com with SMTP id n40so416939gve.39
        for <gentoo-user@lists.gentoo.org>; Sun, 24 Feb 2008 10:01:12 -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=NKG7iJRJlShxg6KEF0hu2LTgb0vmX0Bj5N3/ZFkvb28=;
        b=YnTAvX5OX/yOU/XEw/XYcyV43AP8kQWrPiXKjxy5+hGJR0n+zv/ZTJsHVYWEfvDl2XyHPQtNxAmOrx+uI/SDnQaiGmNzRvM9GJ1T5ThN1Dsu2sb9moCKhIYfqKF86L+1ZXglzUioSKQiUhz238ycy7LXJEMunKU4BGRoI+a6o8E=
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=BS3PSnCLXrMazA3T2G9eRDzwaouXBTLyn/zsp0qPfc6oUF8DsVCoaK5X6hVjpr8XEw1Z+8yXV8nhHXwrhIp84DUy6EYix/bTzs7lIx54Cmcbalr0YesaXElM1suFGL5w1OepeAizXg+J6JAyrBn35cRUI4OzsGzvp/6AVLgxVys=
Received: by 10.142.211.10 with SMTP id j10mr1364829wfg.202.1203876070240;
        Sun, 24 Feb 2008 10:01:10 -0800 (PST)
Received: by 10.142.223.4 with HTTP; Sun, 24 Feb 2008 10:01:10 -0800 (PST)
Message-ID: <5bdc1c8b0802241001if4d244bqcc8a91ddf8f30ee1@mail.gmail.com>
Date: Sun, 24 Feb 2008 10:01:10 -0800
From: "Mark Knecht" <markknecht@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Switch between sound cards?
In-Reply-To: <49bf44f10802240944t774af531k422ba0ed07c777a1@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>
X-Archives-Salt: adbce251-84ae-41a4-8dad-f20e59df4847
X-Archives-Hash: c0d15eeb20483115411b78fcdba4b669

On Sun, Feb 24, 2008 at 9:44 AM, 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?

- Mark

mark@lightning ~ $ cat /etc/modules.d/alsa
# 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
mark@lightning ~ $
-- 
gentoo-user@lists.gentoo.org mailing list