Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[alsa] Son par defaut sur une sortie optique...(RESOLU)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Antares
Apprentice
Apprentice


Joined: 04 Apr 2005
Posts: 184
Location: France

PostPosted: Wed Nov 02, 2005 11:40 pm    Post subject: [alsa] Son par defaut sur une sortie optique...(RESOLU) Reply with quote

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. :)


Last edited by Antares on Thu Nov 03, 2005 2:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
scout
Veteran
Veteran


Joined: 08 Mar 2003
Posts: 1991
Location: France, Paris en Semaine / Metz le W-E

PostPosted: Thu Nov 03, 2005 12:37 am    Post subject: Reply with quote

pour tout ce qui est alsa, tu dois pouvoir dire dutiliser hw:0,2 par défaut en le spécifiant dans ~/.asoundrc ou /etc/asound.conf
http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php?module=Generic#defplug
_________________
http://petition.eurolinux.org/ - Petition against ePatents
L'essence de la finesse
Back to top
View user's profile Send private message
Antares
Apprentice
Apprentice


Joined: 04 Apr 2005
Posts: 184
Location: France

PostPosted: Thu Nov 03, 2005 1:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Antares
Apprentice
Apprentice


Joined: 04 Apr 2005
Posts: 184
Location: France

PostPosted: Thu Nov 03, 2005 2:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Ey
l33t
l33t


Joined: 07 Apr 2005
Posts: 863
Location: Paris

PostPosted: Thu Nov 03, 2005 10:12 am    Post subject: Reply with quote

Ca ne marche pas sans la partie ctl ?
Back to top
View user's profile Send private message
cylgalad
Veteran
Veteran


Joined: 18 Apr 2003
Posts: 1327
Location: France

PostPosted: Thu Nov 03, 2005 11:04 am    Post subject: Reply with quote

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
View user's profile Send private message
Antares
Apprentice
Apprentice


Joined: 04 Apr 2005
Posts: 184
Location: France

PostPosted: Thu Nov 03, 2005 1:21 pm    Post subject: Reply with quote

Merci cylgalad, ton script marche à merveille....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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