[LINUX] digital audio output atom ion
#1
Hi!

I went from Ubuntu 9.04 to 10.10.
My problem is to get digital audio output working (dolby / dts) either over hdmi or coax out. Ananlog audio output over both cables is already working.
I tried this howto, but xbmc just tells me "failed to initialize audio device".

This is my setup:
- Asrock atom ion 330 connected to onkyo A/V Receiver with hdmi, then hdmi to Samsung TV; coax digital out connected to A/V Receiver, too.
- xbmc 10.1 (2:10.1~ppa1~maverick)
- Ubuntu 10.10

- aplay -l
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

- /etc/asound.conf
Code:
pcm.!hdmi-remap {
  type asym
  playback.pcm {
    type plug
    slave.pcm "remap-surround71"
  }
}

pcm.!remap-surround71 {
  type route
  slave.pcm "hw:0,3"
  ttable {
    0.0= 1
    1.1= 1
    2.4= 1
    3.5= 1
    4.2= 1
    5.3= 1
    6.6= 1
    7.7= 1
  }
}

- ~/.asoundrc
Code:
pcm.dmixer {
   type dmix
   ipc_key 1024
   ipc_key_add_uid false
   ipc_perm 0660
   slave {
      pcm "hw:0,3"
      rate 48000
      channels 2
      format S32_LE
      period_time 0
      period_size 1024
      buffer_time 0
      buffer_size 4096
   }
}

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

xbmc is setup like this
Image

I forgot:
This test command works flawlessly:
Quote:speaker-test -D hdmi -c6 -r19200 -FS32_LE

Every help is very appreciated
Reply
#2
In my experience, you don't even need to jump through hoops to get HDMI enabled in Ubuntu 10.10. All you need to do is go to into alsamixer, and enable the very last option. You'll need to use your keyboard (right arrow) to scroll to it, and for me it was turned off. I turned it on, went into sound configuration and it worked perfectly. I don't use any custom passthrough or audio output device.

I'm quite tired and unable to comprehend everything you wrote, but if you haven't tried what I typed above, give it a shot. It's been working fine for me. Well, until we get to sound balance, but that's another issue.
Reply
#3
In the alsa mixer S/PDIF, S/PDIF D and S/PDIF 0 are set to "00".

No matter what I try to set up within xbmc - system - system - audio output I get the "failed to initialize audio device" error

Which profile have you chosen in the ubuntu settings?
system - preferences - sound - hardwareHuh
Reply
#4
I removed pulseaudio, now IT'S WORKING...
Execpt menu sounds, but I won't miss THAT...
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] digital audio output atom ion0