View previous topic :: View next topic |
Author |
Message |
DawgG l33t
Joined: 17 Sep 2003 Posts: 866
|
Posted: Mon Oct 31, 2011 3:25 pm Post subject: how to set/change alsa default device? [SOLVED] |
|
|
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 |
|
|
sebB l33t
Joined: 02 Mar 2011 Posts: 806 Location: S.O. France
|
Posted: Mon Oct 31, 2011 4:00 pm Post subject: |
|
|
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 |
|
|
DawgG l33t
Joined: 17 Sep 2003 Posts: 866
|
Posted: Mon Oct 31, 2011 11:02 pm Post subject: |
|
|
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 |
|
|
|