Re: snd-dummy 2nd card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11-06-08 17:41, Dominique Michel wrote:

> Le Tue, 10 Jun 2008 17:47:58 +0300,
> "alexander merkulov" <arheops@xxxxxxxxx> a écrit :
> 
>> need to setup 2nd dummy card
>> how to do it?
> 
> You must add some device definitions in /etc/modules.d/alsa (or whatever file
> your distribution is using):
> 
> ##  ALSA portion
> alias snd-card-0 snd-...
> options snd-... index=0
> alias snd-card-1 snd-dummy
> options snd-dummy index=1

options snd-dummy index=1,2 enable=1,1 was more the issue, but:

> ##  OSS/Free portion
> alias sound-slot-0 snd-card-0
> alias sound-slot-1 snd-card-1

--- 8< --- cut here --- 8< ---

> # 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
> ##  OSS/Free portion - card #2
> alias sound-service-1-0 snd-mixer-oss
> alias sound-service-1-3 snd-pcm-oss
> alias sound-service-1-12 snd-pcm-oss

please note that these aliases have been not necessary for some time now 
as the modules export them themselves:

# modinfo snd-{pcm,mixer,seq}-oss | grep alias
alias:          sound-service-?-12
alias:          sound-service-?-3
alias:          sound-service-?-0
alias:          sound-service-?-8
alias:          sound-service-?-1

> ## alias
> alias /dev/mixer snd-mixer-oss
> alias /dev/dsp snd-pcm-oss
> alias /dev/midi snd-seq-oss

and these should be automatic through the "soundcore" module handling 
char-major-14 and it requesting sound-slot-? and sound-service-?-?.

So, you can loose everything but the snd-card-?/sound-slot-? aliases.

> # Set this to the correct number of cards.
> options snd cards_limit=2

Or not. I once wasted time tracking down a non-bug due to forgetting I 
had limited the number of cards like this. The default is 8...

Rene.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux