View previous topic :: View next topic |
Author |
Message |
Antares Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/3415096234264eb7dba262.jpg)
Joined: 04 Apr 2005 Posts: 184 Location: France
|
Posted: Wed Nov 02, 2005 11:40 pm Post subject: [alsa] Son par defaut sur une sortie optique...(RESOLU) |
|
|
Salut,
Voila, j'ai un shuttle sn45g, avec une carte son 5.1 intégrée type ac97 et en plus, une entrée et une sortie optique. Je peux utiliser la sortie optique au lieu de la sortie par defaut dans certains programmes comme xmms ou mplayer en spécifiant hw:0,2 au lieu de hw:0,0 (sortie analogique normale) dans le réglage de sortie audio.
Cependant, j'aimerais que par defaut, tous les sons ailles sur la sortie optique, au lieu d'en avoir la moitié sur l' analogique et l'autre sur l'optique.
Si vous m'avez compris, voyez vous comment je pourrais faire??
Merci d'avance. ![Smile :)](images/smiles/icon_smile.gif)
Last edited by Antares on Thu Nov 03, 2005 2:07 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
scout Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/12983883544208161274b34.png)
Joined: 08 Mar 2003 Posts: 1991 Location: France, Paris en Semaine / Metz le W-E
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Antares Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/3415096234264eb7dba262.jpg)
Joined: 04 Apr 2005 Posts: 184 Location: France
|
Posted: Thu Nov 03, 2005 1:13 am Post subject: |
|
|
genial ca marche nickel merci merci !!!
Seul petit bémol, maintenant quand je fais amixer ou alsamixer, ya un pti souci :
Code: |
$ alsamixer
alsamixer: function snd_ctl_open failed for default: Invalid argument
$ amixer
amixer: Mixer attach default error: Invalid argument |
une idée la dessus? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Antares Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/3415096234264eb7dba262.jpg)
Joined: 04 Apr 2005 Posts: 184 Location: France
|
Posted: Thu Nov 03, 2005 2:13 am Post subject: |
|
|
Note :
j'ai créé un fichier /etc/asound.conf contenant ceci :
Code: | pcm.!default {
type hw
card 0
device 2
}
ctl.!default {
type hw
card 0
device 2
}
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ey l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/5092208844255875febcbf.png)
Joined: 07 Apr 2005 Posts: 863 Location: Paris
|
Posted: Thu Nov 03, 2005 10:12 am Post subject: |
|
|
Ca ne marche pas sans la partie ctl ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cylgalad Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 18 Apr 2003 Posts: 1327 Location: France
|
Posted: Thu Nov 03, 2005 11:04 am Post subject: |
|
|
Shuttle SN45G /etc/asound.conf pour avoir le son sur la sortie optique (testé) :
Code: |
pcm.nforce-hw {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm "nforce"
}
ctl.!default {
type hw
card 0
}
pcm.nforce {
type dmix
ipc_key 1234
slave {
pcm "hw:0,2"
period_time 0
period_size 1024
buffer_size 32768
rate 48000
}
bindings {
0 0
1 1
}
}
ctl.nforce-hw {
type hw
card 0
device 1
}
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Antares Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/3415096234264eb7dba262.jpg)
Joined: 04 Apr 2005 Posts: 184 Location: France
|
Posted: Thu Nov 03, 2005 1:21 pm Post subject: |
|
|
Merci cylgalad, ton script marche à merveille.... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|