[mythtv-users] No HDMI audio

Marc Tousignant drayson at net1plus.com
Wed Jul 15 08:56:32 UTC 2009


> Jim,
> 
>  I got my Zotac ION (zION) board working with HDMI while using the nvidia
drivers (180.60, IIRC).
> I used Allen' guide on the mythtv.org wiki as guidance.
> 
> My experience is abbreviated at:
http://www.zoomthingie.com/wordpress/?cat=5
> 
> Specifically the post "zION - Now with Sound!"  
> 
> I made an .asoundrc with pcm.slave= "hdmi" and I had to disable AC3
Passthrough in MythTV otherwise, I got audio problems in HD (and some .avi)
files.
> 
> Also, I tried disabling the analog audio (as suggested somewhere I read).
That really caused problems for me, so I re-enabled it. 
> 
> I'm running Gentoo with the 2.6.30 kernel, so it's alsa 1.0.20, I believe,
and alsa support packages (alsa-util, etc) at 1.0.20.
> 
> I was able to get sound from the commandline with:
> 
> aplay -d hdmi FatBastard.wav
> 
> 
> ... Yeah, a Fat Bastard quote from Austin Powers.... It was the first
thing I found. =\
> 
> 

 

I'm having trouble with my zION.
Phill thanks for your help off list, it is all working now with one issue.
Sound. HDMI audio works fine. But I need the spdif to work.

# lspci | grep Audio
00:08.0 Audio device: nVidia Corporation MCP79 High Definition Audio (rev
b1)

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

# aplay -L
front:CARD=NVidia,DEV=0
    HDA NVidia, HDA Generic
    Front speakers
surround40:CARD=NVidia,DEV=0
    HDA NVidia, HDA Generic
    4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
    HDA NVidia, HDA Generic
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
    HDA NVidia, HDA Generic
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
    HDA NVidia, HDA Generic
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
    HDA NVidia, HDA Generic
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
null
    Discard all samples (playback) or generate zero samples (capture)

# amixer
Simple mixer control 'Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB]
  Front Right: Playback 64 [100%] [0.00dB]
Simple mixer control 'Front Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 28 [90%] [7.50dB] [on]
  Front Right: Playback 28 [90%] [7.50dB] [on]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 22 [71%] [19.50dB] [on]
  Front Right: Capture 22 [71%] [19.50dB] [on]

If you notice the amixer results, there is an IEC958, however that seems to
be for the HDMI connection.

I am using the HDA drivers from the 2.6.30 kernel
# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.20.

In myth I have tried ALSA:default, ALSA:surround51.
HDMI worked with asound.conf of
  pcm.!default {
     type plug
     slave.pcm "hdmi"
  }

I also tried these on default
  pcm.!default {
     type plug
     slave.pcm "iec958"
  }

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

pcm.!default {
      type hw
      card 0
      device 0
  }

This one played over HDMI again.
pcm.!default {
      type hw
      card 0
      device 3
  }

I tried with and without passthrough, no change.
Tried passthrough as Default, ALSA:iec958(with and without the {AES0: 0x02})

A few months back Glen Dragon posted
http://www.gossamer-threads.com/lists/mythtv/users/383661 saying that he got
spdif to work. Glen, can you assist? How did you get spdif to work?

Marc



More information about the mythtv-users mailing list