Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
soud cards out of order
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
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Wed Dec 26, 2012 7:55 pm    Post subject: soud cards out of order Reply with quote

every time I re-boot the sound cards aquire random order in:

Code:
alsamixer -c N


I don't know what to do to have non-integrated card as first indexed alsa card.

help.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Wed Dec 26, 2012 8:04 pm    Post subject: Reply with quote

_______0,

Tell us the sound cards you have and how the drivers are made, either as modules or built into the kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Wed Dec 26, 2012 8:19 pm    Post subject: Reply with quote

two intels, on-board and from the hdmi in the radeon, then whatever webcam is plugged.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Wed Dec 26, 2012 8:27 pm    Post subject: Reply with quote

_______0,

That's only some of the information I asked for
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Wed Dec 26, 2012 8:29 pm    Post subject: Reply with quote

The real question is: what do you need the order for ?
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Wed Dec 26, 2012 8:46 pm    Post subject: Reply with quote

NeddySeagoon wrote:
_______0,

That's only some of the information I asked for


modules.



VoidMage wrote:
The real question is: what do you need the order for ?


many programs expect a HW:0,0 device. Else I start a program to listen music and outputs to graphics card HDMI alsa, for instance, other times some odd alsa device that only has ONE slider lands on HW:0,0. To have to trawl all the audio related config files to change device number is not desirable.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Wed Dec 26, 2012 9:04 pm    Post subject: Reply with quote

Add to /etc/modprobe.d/local.conf:
Code:
alias snd-card-0 <module name or device alias for first sound card>
alias snd-card-1 <second sound card>
<etc.>
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Wed Dec 26, 2012 9:08 pm    Post subject: Reply with quote

_______0,

Sound card enumeration is controlled by module load order, when you use modules.
You can try to influence it with files created in /etc/modprobe.d

There should be a generic alsa.conf waiting for you
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Wed Dec 26, 2012 10:57 pm    Post subject: Reply with quote

This should do the trick: https://bbs.archlinux.org/viewtopic.php?pid=1045829#p1045829
If not, then this might: https://bbs.archlinux.org/viewtopic.php?pid=1051419#p1051419

Yeah, the links are to the Arch forums, but this stuff is just as applicable to Gentoo.
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Thu Dec 27, 2012 12:31 pm    Post subject: Reply with quote

Ant P. wrote:
Add to /etc/modprobe.d/local.conf:
Code:
alias snd-card-0 <module name or device alias for first sound card>
alias snd-card-1 <second sound card>
<etc.>


what about for dynamic devices such as webcams?

by the way the .asoundrc hack sort of works. Only ncmpcpp doesn't get volume control anymore, (not that it was working anyways):

Code:
Volume: n/a


Also now I am getting this error:

Code:
/etc/init.d/alsasound start
 * Restoring Mixer Levels ...
[b]alsactl: set_control:1464: Cannot write control '3:3:0:Playback Channel Map:0' : File descriptor in bad state[/b]         


thanks
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