LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-13-2008, 01:45 AM   #1
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Rep: Reputation: 31
multi sound card alsa deal


ok i have hashed out alsa to death.

i have an m-audio mobilepre, and a soundblaster live 5.1 (its one of the better ones with an expansion slot)

anyways alsa ALWAYS ALWAYS defaults to the soundblaster. i want the usb device as the default. i can use the mixer command to access the other card

"amixer -c 1" or "alsamixer -c 1"

"amixer -D 1" and "alsamixer -D 1" result in errors

there is no real clear way to set the default other than to renumber the devices and have the default device be 0. or am i wrong? i really would like to say "i know i have 2 devices, but i want the alsa default to be device 1! and not device 0!"

thanks, you guys are rock stars at this forum!

heres some errorage for everyone to see

mkultra@mkultra:~$ alsamixer -d 1
alsamixer: invalid option -- d
AlsaMixer v1.0.15
Usage: alsamixer [-h] [-c <card: 0...7>] [-D <mixer device>] [-g] [-s] [-V <view>] [-a <abst>]
mkultra@mkultra:~$ alsamixer -D 1
ALSA lib control.c:909snd_ctl_open_noupdate) Invalid CTL 1

alsamixer: function snd_ctl_open failed for 1: No such file or directory
mkultra@mkultra:~$
 
Old 10-13-2008, 08:37 AM   #2
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191
Blog Entries: 2

Rep: Reputation: 40
What distribution are you using?

I can only comment on Slackware, but here's how I made my USB devices fit into the order I wanted. I went to /etc/udev/rules.d and made a file called 10-local.rules. Here's what it contains:

DRIVERS=="snd-intel8x0", ATTRS{bInterfaceNumber}=="01"
DRIVERS=="snd-usb-audio", ATTRS{bInterfaceNumber}=="02"

This makes my USB audio interface #2 and my Intel onboard audio #1:

0 [I82801DBICH4 ]: ICH4 - Intel 82801DB-ICH4
Intel 82801DB-ICH4 with STAC9750,51 at irq 11
1 [Audio ]: USB-Audio - Altec Lansing XT1 - USB Audio
Altec Lansing Technologies, Inc. Altec Lansing XT1 - USB Audio at usb-0000:00:1

EDIT: please note that telling it interface 00 and 01 rather than 01 and 02 (because computers count starting with zero) seems to make no difference. I rebooted several times using different starting numbers, i.e. 00 and 01, or 01 and 02. When using 01 and 02, I'd get in dmesg something along the lines of "renaming interface eth0 to eth1, renaming interface eth1_rename to eth0" etc. I guess udev gets the point regardless.

Last edited by TwinReverb; 10-13-2008 at 08:53 AM.
 
Old 10-15-2008, 12:03 AM   #3
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Original Poster
Rep: Reputation: 31
im slackware 12.1 i have a good idea that ive fixed it and just need to reboot. ill throw in your udev syntax to insure that the issue is fixed.
 
Old 01-29-2009, 02:51 PM   #4
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Original Poster
Rep: Reputation: 31
ok now my alsa mixer is
Code:
card:HDA ATI SB
chip: Realtek ALC889A
i still have the previous usb audio device. im now wondering how to turn the intel onboard hd audio into device 2.

i dont know how to query the device since its compiled in.

and as a side note i made the udev info posted, and it is not helping. its in a 35-usbsnd.rules file.

and no i did not make a stupid mistake of naming my usb audio as 02 for people that see this

Last edited by ninja master; 01-29-2009 at 03:17 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound card conflict with Vid-Capture card ALSA Optimistic Debian 5 11-05-2007 11:20 PM
USB sound card not detected by ALSA but is by lsusb, using alsa 1.0.15 mjkelly93 Linux - Hardware 1 10-20-2007 10:23 AM
ALSA not working for Creative Sound Blaster Live 24 Bit sound card vishalsonu Linux - Hardware 7 08-20-2005 01:02 PM
No sound with a CM8738 sound card -- alsa installed istar80 Linux - Hardware 1 06-17-2005 02:02 PM
how can multi program share one sound card duzhenhuan Linux - Hardware 1 04-11-2004 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration