Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to set/change alsa default device? [SOLVED]
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
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 866

PostPosted: Mon Oct 31, 2011 3:25 pm    Post subject: how to set/change alsa default device? [SOLVED] Reply with quote

i recently got hdmi-sound-output to work with the nvidia binary driver and pulseaudio following this guide: http://http.download.nvidia.com/XFree86/gpu-hdmi-audio-document/gpu-hdmi-audio.html
i added the line
Code:
load-module module-alsa-sink device=hw:1,7
to /etc/pulse/default.pa like described in the guide and when i play a file and select the corresponding pulseaudio-output the sound is sent to the tv over hdmi.

i'd really like to use alsa (so i can use the big screen for progs that do not have pulseaudio-support, eg games) but when i try to change the alsa default-device either system-wide by creating /etc/asound.conf (or as user ~/.asound.conf) with (only!) the line
Code:
pcm.!default hdmi:CARD=NVidia,DEV=7
in it alsa throws a lot of errors and does not start anymore.
if i use aplay or speaker-test and select the sound-dev manually (w/out any asound.conf file) the sound is played correctly by the tv.

so, how (and where) is the alsa-default-device set?
if i manually have to create a whole asound.conf-file, what has to be in it and how is it done?
THX for your help!
_________________
DUMM KLICKT GUT.


Last edited by DawgG on Mon Oct 31, 2011 11:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
sebB
l33t
l33t


Joined: 02 Mar 2011
Posts: 806
Location: S.O. France

PostPosted: Mon Oct 31, 2011 4:00 pm    Post subject: Reply with quote

Try this
In your home create .asoundrc
Code:
pcm.!default
{ type hw
  card 1
  device 7
}

And restart alsa
When you want sound in your PC remove this file and restart alsa
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 866

PostPosted: Mon Oct 31, 2011 11:02 pm    Post subject: Reply with quote

GREAT! it works just like it should.
thanks a lot, sebB. :D
i get sound from alsa w/out pulseaudio and progs that (can) only use the alsa-default-dev play sound via hdmi on the tv (like openarena :wink: )
_________________
DUMM KLICKT GUT.
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