Configure ALSA with HDMI default sound

August 12, 2009 by at 09:58 5 Comments

To have hdmi sound enabled by default on your Nvidia ION system with XBMC (live) combined add a file .asoundrc to your home directory, by default /home/xbmc/

The content of the file should look like this:

pcm.!default {
type plug
slave {
pcm "hdmi"
}
}

When XBMC is configured with sound output to default everything should work.

Comments

  1. Ronald says:

    Ik heb ook problemen gehad met mijn geluid voordat ik de Nvidia drivers had geïnstaleerd. In die vorige versie kon ik het oplossen door hwplug:0,3 in te vullen in plaats van hdmi in de XBMC audio settings.

  2. A. Hofman says:

    Ik heb van het weekend zitten puzzelen hiermee, aangezien ik ook geen audio had met hdmi. Na veel speurwerk op xbmc.org forums heeft deze oplossing uiteindelijk voor mij gewerkt:

    This did wonders for me:

    aplay -l gives me:

    Code:
    **** List of PLAYBACK Hardware Devices ****
    card 0: SB [HDA ATI SB], device 0: HDA Generic [HDA Generic]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    In my case HDMI is card1, device 3 so i run: sudo alsamixer -c 1
    Unmuted the device by hitting the M key.
    I then saved the volume info: sudo alsactl store 0

    Created .asoundrc, located in /home/xbmc/:
    sudo nano /home/xbmc/.asoundrc

    Code:
    pcm.!spdif {
    type hw
    card 1
    device 3
    }

    pcm.!default {
    type plug
    slave {
    pcm “spdif”
    }
    }
    And my xbmc is set to:

    Code:
    - Audio Output: Digital
    - Dolby Digital (AC3) capable receiver: Off
    - DTS Capable receiver: Off
    - Audio Output device: default
    - Passthrough device: default
    - Downmix multichannel audio to stereo: On
    Setting the output and passthrough device to “default”, matches the naming in asoundrc. I’m not sure if that is related, but it did start to work for me from then on. Also menu sounds work.

    Setting “Downmix multichannel audio to stereo” fixed a certain wmv that otherwise would not produce audio. All other media (mkv’s) are playing with AC3 or DTS 3/2.1 no problem.

    Als ik DTS en AC3 aanzet krijg ik bij sommige .mkv bestanden een hoop herrie en ruis.
    De volledige thread staat hier:
    http://www.xbmc.org/forum/showthread.php?t=42183&page=12

  3. als ik het bovenstaande uitvoer krijg ik allerlij foutmeldingen, iemand een tip?
    xbmc@XBMCLive:~$ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    ALSA lib conf.c:1589:(snd_config_load1) _toplevel_:13:0:Unexpected char
    ALSA lib conf.c:2850:(snd_config_hook_load) /home/xbmc/.asoundrc may be old or corrupted: consider to remove or fix it
    ALSA lib conf.c:2714:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
    ALSA lib conf.c:3079:(snd_config_update_r) hooks failed, removing configuration
    aplay: device_list:232: control open (0): Invalid argument
    ALSA lib conf.c:1589:(snd_config_load1) _toplevel_:13:0:Unexpected char
    ALSA lib conf.c:2850:(snd_config_hook_load) /home/xbmc/.asoundrc may be old or corrupted: consider to remove or fix it
    ALSA lib conf.c:2714:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
    ALSA lib conf.c:3079:(snd_config_update_r) hooks failed, removing configuration
    aplay: device_list:232: control open (1): Invalid argument

    hieronder nog even de aplay -l voor de wijzigingen

    xbmc@XBMCLive:~$ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
    Subdevices: 0/1
    Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 3: INTEL HDMI [INTEL HDMI]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
    Subdevices: 1/1
    Subdevice #0: subdevice #0

  4. A.Hofman, you time travelling dog you, saving my life even in 2012. :) Thanks for the help.

Trackbacks

  1. [...] over HDMI kan streamen vanwege hardware en software beperkingen, maar DTS en AC3 is wel mogelijk: http://www.xbmcfreak.nl/xbmc-nvidia-ion/asrock-ion-330-hdmi-sound-xbmc/ Posted 1 year ago [...]

Leave a Comment

*