Results 1 to 3 of 3

Thread: How to set sound device system wide

  1. #1
    Join Date
    May 2008
    Beans
    151

    How to set sound device system wide

    How do I set the default sound device to HDMI system wide?

    I have Myth installed on a computer using an HDMI tv as a monitor. To get sound to work with Myth, I had to select the "ALSA:HDMI" device under settings. However, when I exit Myth, and try to run Pandora or a music player, I have no sound, and I can find no program to adjust the sound device.

  2. #2
    Join Date
    Mar 2007
    Location
    Christchurch, NZ
    Beans
    3,239

    Re: How to set sound device system wide

    you need to write a file called /etc/asound.conf to set the default alsa sound device to the hdmi sound device. http://alsa-project.org/main/index.php/Asoundrc

    It will look something like this:

    Code:
    pcm.!default {
    	type hw
    	card 1
            device 3
    }
    
    ctl.!default {
    	type hw           
    	card 1
            device 3
    }
    Where the numbers 1 and 3 depend on your hardware, alsa version, and the phase of the moon.

  3. #3
    Join Date
    May 2008
    Beans
    151

    Re: How to set sound device system wide

    Quote Originally Posted by nickrout View Post
    you need to write a file called /etc/asound.conf to set the default alsa sound device to the hdmi sound device. http://alsa-project.org/main/index.php/Asoundrc

    It will look something like this:

    Code:
    pcm.!default {
    	type hw
    	card 1
            device 3
    }
    
    ctl.!default {
    	type hw           
    	card 1
            device 3
    }
    Where the numbers 1 and 3 depend on your hardware, alsa version, and the phase of the moon.
    Thanks. That fixed it.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •