Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to use alsa with two devices?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
coffeecat
n00b
n00b


Joined: 17 Jun 2003
Posts: 54

PostPosted: Fri Oct 03, 2003 12:19 am    Post subject: How to use alsa with two devices? Reply with quote

I have a microphone on device 0 and a sound card on device 1. How do I tell aplay and xmms and such to play sound on device 1? It currently refuses to play sounds, I think because it's trying to play them on the mike.
Back to top
View user's profile Send private message
Herodot
Guru
Guru


Joined: 29 Jul 2002
Posts: 429
Location: Professor Xavier's school for gifted youngsters

PostPosted: Fri Oct 03, 2003 12:55 am    Post subject: Re: How to use alsa with two devices? Reply with quote

coffeecat wrote:
I have a microphone on device 0 and a sound card on device 1. How do I tell aplay and xmms and such to play sound on device 1? It currently refuses to play sounds, I think because it's trying to play them on the mike.

I don't think that's probable, but you never know...

Please post your /etc/modules.d/alsa.

Your first device is hw:0, second is hw:1. Your .asoundrc file defines what alsa programs sees on these two devices. If you don't have such a file (or /etc/asound.conf) ALSA usually makes a qualified guess. I've never seen it confuse in and out.
_________________
Excelsior!
Back to top
View user's profile Send private message
coffeecat
n00b
n00b


Joined: 17 Jun 2003
Posts: 54

PostPosted: Fri Oct 03, 2003 1:26 am    Post subject: Reply with quote

I don't have .asoundrc or /etc/asound.conf. Here's /etc/modules.d/alsa:

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

alias snd-card-0 snd-via82xx
alias snd-card-1 snd-usb-audio

# 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
options snd cards_limit=2
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum