You are not logged in.

#1 2009-04-23 11:54:22

jai134
Member
Registered: 2008-11-26
Posts: 234

two soundcards andd ALSA SOLVED

Hello. I have an Acer One with hda-intel as onboard sound-card. I also have an USB SOUND-card from esi. They both work well. I made a little script to have mplayer play a mms-link from the swedish radio so I only have to click it on my desktop to listen to a specific radiostation. My problem is that when I am at home I have my computer connected to my stereo thru the USB-card and then my USB-card is alsa-device 0. When not connected to the USB-card my onboard card is alsa-device 0. Can I have the onboard card named 0 and my USB-card as 1 always so I don't have to manually command mplayer to play given link when not connected to the USB-card.

Last edited by jai134 (2009-04-25 05:58:49)

Offline

#2 2009-04-23 18:52:17

Themaister
Member
From: Trondheim, Norway
Registered: 2008-07-21
Posts: 652
Website

Re: two soundcards andd ALSA SOLVED

It should work to put this in your /etc/modprobe.conf

options <insert sound module here for usb-card> index=1

it will force ALSA to set your USB-card as #1, instead of #0.

Offline

#3 2009-04-24 20:43:07

jai134
Member
Registered: 2008-11-26
Posts: 234

Re: two soundcards andd ALSA SOLVED

Thank you. How do I check which module it is for the USB card. I think it uses a generic driver. Is it snd_usb_audio. I cant find any specific driver. It's an ESI U24XL card and the driver is called julia. I dont have that one installed

Last edited by jai134 (2009-04-24 20:59:16)

Offline

#4 2009-04-24 21:59:28

Themaister
Member
From: Trondheim, Norway
Registered: 2008-07-21
Posts: 652
Website

Re: two soundcards andd ALSA SOLVED

cat /proc/asound/modules, and you'll find out what modules are loaded. Remember that even if it says something like snd_hda_intel in my case (underscore), use snd-hda-intel (with dashes) in the /etc/modprobe.conf
inte

Offline

#5 2009-04-25 05:57:11

jai134
Member
Registered: 2008-11-26
Posts: 234

Re: two soundcards andd ALSA SOLVED

Yes. Thanks.

Offline

Board footer

Powered by FluxBB