XBMC Live / eeeBox 1012P - SPDIF/HDMI no sound
#1
I have a fresh XBMC Live 10.0 install on my Asus eeeBox 1012P (D510 2GB ION2) and I have no sound over HDMI, like so many others Sad

When I run the alsamixer and press F6 to switch to the nVidia card I see a single SPDIF device, I was expecting HDMI, is this correct or is the device not properly initialized by the driver? (None of the devices on any of the two audio cards are muted)

Should audio work out of the box or is there some configuration that has to be don in the alsa configuration on this specific software/hardware setup? Any tips, pointers or tests to run will be greatly appreciated!

System properties:
Code:
Ubuntu        10.04.1
alsamixer     1.0.22
asound        1.0.23
nvidia driver     195.36.24
nVidia card    GT218 ION2

Runing aplay all right to me:
Code:
xbmc@XBMCLive:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
xbmc@XBMCLive:~$

Code:
xbmc@XBMCLive:~$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
front:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
    HDA Intel, ALC662 rev1 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
xbmc@XBMCLive:~$

NVidia driver check:
Code:
xbmc@XBMCLive:~$ dmesg|grep -i nvidia
[    8.061290] nvidia: module license 'NVIDIA' taints kernel.
[   11.003352] nvidia 0000:02:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[   11.003369] nvidia 0000:02:00.0: setting latency timer to 64
[   11.003836] NVRM: loading NVIDIA UNIX x86 Kernel Module  195.36.24  Thu Apr 22 09:18:20 PDT 2010
[   13.031511] hda_intel: Disable MSI for Nvidia chipset
[   38.149635] Modules linked in: snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss snd_hda_intel dm_crypt lirc_mceusb lirc_dev snd_hda_codec_nvhdmi snd_hda_codec_realtek snd_hda_codec snd_hwdep snd_pcm arc4 ath9k ath9k_common snd_timer ath9k_hw ath mac80211 nvidia(P) snd cfg80211 soundcore psmouse led_class snd_page_alloc xhci serio_raw lp parport asus_atk0110 vga16fb vgastate vesafb fbcon tileblit font bitblit usbhid hid usb_storage softcursor r8169 intel_agp ahci mii agpgart ramzswap xvmalloc lzo_decompress lzo_compress [last unloaded: snd_seq_device]
xbmc@XBMCLive:~$

Thank you all in advance...
// Matias
Reply
#2
You should start by getting a newer nvidia driver. hdmi audio is afaik broken in the 19x.x drivers
Reply
#3
deppan Wrote:You should start by getting a newer nvidia driver. hdmi audio is afaik broken in the 19x.x drivers

Thanks deppan, I will try to learn how to update the driver, but I have had some small success with 195.36.24!

Code:
xbmc@XBMCLive:~$ speaker-test -D plughw:1,3 -c6 -twave

speaker-test 1.0.22

Playback device is plughw:1,3
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 5440
Period size range from 32 to 2720
Using max buffer size 5440
Periods = 4
was set period_size = 1088
was set buffer_size = 5440
0 - Front Left
4 - Center
1 - Front Right
3 - Rear Right
2 - Rear Left
5 - LFE
xbmc@XBMCLive:~$

Will give me correct sound in my 5.1 setup, but using Custom as my "Passthrough output Device" with "plughw:1,3" or "hw:1,3"in XBMX will just give me a flickering noise when watching a TV Show encoded with 6ch 48kHz AC3.

I later tested to add a few lines to:
Code:
nano ~/.asoundrc
pcm.!default hdmi:NVidia
pcm:iec958 hdmi:NVidia
and changed the "Passthrough output Device" and "Audio output device" to "HDA NVidia hdmi" and then i got sound both in XBMC UI and when watching the AC3 TV show. But my DTS capable NAD T747 receiver interprets this as PLIIx Movie which makes me think that I am receiving stereo instead of 6 ch.

I downloaded a few DD 5.1 and DTS 5.1 Trailers and they worked perfectly, my receiver correctly identified Dolby Digital and DTS.

DD and DTS trailer links:
Code:
http://www.demo-world.eu/trailers/dolby-trailers.php
http://www.demo-world.eu/trailers/dts-trailers.php

I will fiddle with this a bit more, but I am begining to think that it is working, thank you XBMC Team, forum users and deppan Big Grin
Reply
#4
Did you ever get this to work?

I'm running the Eee box 1012p with Ion2 board and I've finaly gotten my reciever to accept the video signal, I had hdmi audio output on my TV but nothing is playing when I'm connected to the reciever.

OS is Ubuntu 10.10
Reply
#5
MaXMC Wrote:Did you ever get this to work?

I'm running the Eee box 1012p with Ion2 board and I've finaly gotten my reciever to accept the video signal, I had hdmi audio output on my TV but nothing is playing when I'm connected to the reciever.

OS is Ubuntu 10.10

Yes it works for me now, all I had to do was to add the two lines in ~/.asoundrc mentined in post http://forum.xbmc.org/showpost.php?p=707197&postcount=3.

Is this correct?

EEEBox ---------------> TV = Video and sound on the TV
EEEBox --> Receiver --> TV = Video on the TV but no sound in the surroundsystem


It sounds strange that your receiver would not accept audio that your TV does! Is it possible that you misconfigured your receiver?
In my receiver it is possible to configure the video and audio sources seperately, e.g I can take the video from HDMI1 but audio from SPDIF3 and that would generate the same behaviour that you have.
Reply
#6
matias.krebs Wrote:Yes it works for me now, all I had to do was to add the two lines in ~/.asoundrc mentined in post http://forum.xbmc.org/showpost.php?p=707197&postcount=3.

Is this correct?

EEEBox ---------------> TV = Video and sound on the TV
EEEBox --> Receiver --> TV = Video on the TV but no sound in the surroundsystem


It sounds strange that your receiver would not accept audio that your TV does! Is it possible that you misconfigured your receiver?
In my receiver it is possible to configure the video and audio sources seperately, e.g I can take the video from HDMI1 but audio from SPDIF3 and that would generate the same behaviour that you have.

My reciever is one of those cheap Blu-Ray combo recievers.
I can take sound from Optical, Coaxial, 3.5mm and HDMI1 and HDMI2.
If I have my computer on HDMI2 (PS3 is on 1) I need to have the sound through HDMI since I can't separately play sound from any other source...
I also needed to force Ubuntu to output 1920x1080 for the reciver only supports 1080p/i 720p and 576p.
For some reason I can't select 720p resolution on the EeeBox.

Anyway, I've fiddled around with all kinds of tutorials to find the correct settings for me. But I think it boils down to the EDID values being strange/wrong or missing.

Code:
cat /proc/asound/card1/eld#1.0
outputs:
Code:
monitor_present        0
eld_valid        0
monitor_name        
connection_type        HDMI
eld_version        [0x0] reserved
edid_version        [0x0] no CEA EDID Timing Extension block present
manufacture_id        0x0
product_id        0x0
port_id            0x0
support_hdcp        0
support_ai        0
audio_sync_delay    0
speakers        [0x0]
sad_count        0
Code:
cat /proc/asound/card1/codecld#1
outputs:

Code:
Codec: Nvidia GPU 0b HDMI/DP
Address: 1
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x10de000b
Subsystem Id: 0x10de0101
Revision Id: 0x100200
No Modem Function Group found
Default PCM:
    rates [0x0]:
    bits [0x0]:
    formats [0x0]:
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x04 [Audio Output] wcaps 0x72b1: 8-Channels Digital Stripe CP
  Control: name="IEC958 Playback Con Mask", index=0, device=0
  Control: name="IEC958 Playback Pro Mask", index=0, device=0
  Control: name="IEC958 Playback Default", index=0, device=0
  Control: name="IEC958 Playback Switch", index=0, device=0
  Device: name="HDMI 0", type="HDMI", device=3
  Converter: stream=6, channel=0
  Digital: Enabled
  Digital category: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3
  Unsolicited: tag=00, enabled=0
Node 0x05 [Pin Complex] wcaps 0x407381: 8-Channels Digital CP
  Pincap 0x09000094: OUT Detect HBR HDMI DP
  Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=05, enabled=1
  Connection: 1
     0x04
Reply
#7
Now I actually get sound through HDMI with pulse audio,
Although I only get stereo...

I have nothing in my .asoundrc or in /etc/asound.conf
The only thing I did was to make sure everything was up and running before I started the HTPC.

I did however add to the alsa-base.conf
Code:
options snd-hda-intel enable_msi=0 probe_mask=0xffff,0xfff2

This is what my reciever says it can handle.
Code:
monitor_present        1
eld_valid        1
monitor_name        LG-BDHT
    
connection_type        HDMI
eld_version        [0x2] CEA-861D or below
edid_version        [0x3] CEA-861-B, C or D
manufacture_id        0xe530
product_id        0x0
port_id            0x10000
support_hdcp        0
support_ai        0
audio_sync_delay    0
speakers        [0x4f] FL/FR LFE FC RL/RR RLC/RRC
sad_count        7
sad0_coding_type    [0x1] LPCM
sad0_channels        2
sad0_rates        [0x1ee0] 44100 48000 88200 176400 192000 384000
sad0_bits        [0xe0000] 16 20 24
sad1_coding_type    [0x1] LPCM
sad1_channels        8
sad1_rates        [0x1ee0] 44100 48000 88200 176400 192000 384000
sad1_bits        [0xe0000] 16 20 24
sad2_coding_type    [0x2] AC-3
sad2_channels        8
sad2_rates        [0xe0] 44100 48000 88200
sad2_max_bitrate    640000
sad3_coding_type    [0x7] DTS
sad3_channels        8
sad3_rates        [0xc0] 48000 88200
sad3_max_bitrate    1536000
sad4_coding_type    [0xa] E-AC-3/DD+ (Dolby Digital Plus)
sad4_channels        8
sad4_rates        [0xc0] 48000 88200
sad5_coding_type    [0xb] DTS-HD
sad5_channels        8
sad5_rates        [0x1ee0] 44100 48000 88200 176400 192000 384000
sad6_coding_type    [0xc] MLP (Dolby TrueHD)
sad6_channels        8
sad6_rates        [0x16e0] 44100 48000 88200 176400 192000
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC Live / eeeBox 1012P - SPDIF/HDMI no sound0