Results 1 to 10 of 33

Thread: Audio over HDMI issues

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Beans
    22

    Audio over HDMI issues

    Hello!

    I hope someone here will be able to help! I'm having a problem with audio over HDMI with mythbuntu 12.04 64bit and only stereo sound works. I decided to build a new machine so I've only been working with this a few days and this is all new to me.

    My Setup:
    * MSI z77ma-g45 mobo with: HDMI out, core i3 cpu with integrated HD4000 graphics, and realtek ALC892 sound on board. (no add-on cards)
    * updated my bios as another thread suggested with no change
    * HTPC connected via HDMI to my AV Receiver then to my HDtv
    * HDhomerun Prime tuner
    * mythbuntu 12.04 installed, then selected the update repos as well as repos for mythtv 0.26 since I read that was the latest stable.(completed all updates)
    * AV Receiver supporting up to 7.1 and Dolby TrueHD

    Playing/ recording off the prime works however my receiver always says "Stereo" even when it's live tv and it says that it's 5.1. I also know the Receiver can do 5.1 since DVDs play fine.

    Code:
    $ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
      Subdevices: 0/1
      Subdevice #0: subdevice #0
    card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0

    Code:
    $ aplay -L
    null
        Discard all samples (playback) or generate zero samples (capture)
    pulse
        PulseAudio Sound Server
    default:CARD=PCH
        HDA Intel PCH, ALC892 Analog
        Default Audio Device
    sysdefault:CARD=PCH
        HDA Intel PCH, ALC892 Analog
        Default Audio Device
    front:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        Front speakers
    surround40:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        4.0 Surround output to Front and Rear speakers
    surround41:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    hdmi:CARD=PCH,DEV=0
        HDA Intel PCH, HDMI 0
        HDMI Audio Output
    dmix:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        Direct sample mixing device
    dmix:CARD=PCH,DEV=3
        HDA Intel PCH, HDMI 0
        Direct sample mixing device
    dsnoop:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        Direct sample snooping device
    dsnoop:CARD=PCH,DEV=3
        HDA Intel PCH, HDMI 0
        Direct sample snooping device
    hw:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        Direct hardware device without any conversions
    hw:CARD=PCH,DEV=3
        HDA Intel PCH, HDMI 0
        Direct hardware device without any conversions
    plughw:CARD=PCH,DEV=0
        HDA Intel PCH, ALC892 Analog
        Hardware device with all software conversions
    plughw:CARD=PCH,DEV=3
        HDA Intel PCH, HDMI 0
        Hardware device with all software conversions

    Alsamixer has everything unmuted.

    Bios has no options for integrated sound except on/ off. (I read some where to try to switch it to off but that make nothing work)

    In the mythtv audio setup, there's a long list of devices however all the ones that include 5.1/7.1 say they are "invalid or not usable".

    If anyone has advice or tests to run, please let me know as I'm anxious to get this working fully!

    Thanks in advance

  2. #2
    Join Date
    Apr 2009
    Location
    Aotearoha
    Beans
    2,661
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Audio over HDMI issues

    In the mythtv audio scanner, pick one that is most like "hw:CARD=PCH,DEV=3".

    Later mythtv (0.26?) can directly read the ELD data for connected HDMI devices (*).

    As a starting point:
    - Untick up-mixing
    - untick software volume/dmix
    - select AC3 & DTS as supported by amp (* might not exist anymore).

    As you are using new iCPU it is possible that later kernels & intel driver are required..

    Are you using VA-API (vainfo) ?

  3. #3
    Join Date
    Dec 2012
    Beans
    22

    Re: Audio over HDMI issues

    Hello BicyclerBoy,

    In the audio setup, I have alsa:hw:CARD=PCH,DEV3 (Direct hardware without conversion) selected. After you posted I was playing with the audio setup and realized that when I switch it to 5.1 (my current setup is only 5.1 with a 7.1 receiver) it errors out and says I can't use it. However if I just leave it at 7.1, the audio test works and the 2 side speaker locations play through the rear. This seemed good however when I went to watch live tv that was in 5.1, the receiver still shows stereo.

    I have everything selected AC3/DTS/TrueHD/etc on that screen. No upmixing and no dmix. Another interesting point you mentioned was
    vainfo. I googled and saw I *should* be using it so I've installed that now but not sure where to go from here:

    Code:
    # vainfo 
    libva: VA-API version 0.32.0
    libva: va_getDriverName() returns 0
    libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
    libva: va_openDriver() returns 0
    vainfo: VA-API version: 0.32 (libva 1.0.15)
    vainfo: Driver version: Intel i965 driver - 1.0.15
    vainfo: Supported profile and entrypoints
          VAProfileMPEG2Simple            :	VAEntrypointVLD
          VAProfileMPEG2Main              :	VAEntrypointVLD
          VAProfileH264Baseline           :	VAEntrypointVLD
          VAProfileH264Baseline           :	VAEntrypointEncSlice
          VAProfileH264Main               :	VAEntrypointVLD
          VAProfileH264Main               :	VAEntrypointEncSlice
          VAProfileH264High               :	VAEntrypointVLD
          VAProfileH264High               :	VAEntrypointEncSlice
          VAProfileVC1Simple              :	VAEntrypointVLD
          VAProfileVC1Main                :	VAEntrypointVLD
          VAProfileVC1Advanced            :	VAEntrypointVLD
    I also installed libbluray1 but that is where I stopped. Not to tackle two issues at once, but the video is pretty choppy randomly and especially during fast motions. For a 3.3ghz i3 it seems very strange. I bumped up the hd4000 memory in the bios to 256mb and maxed it out but I'm thinking that is a driver issue.

    Again, any direction with either issue would be very appreciated! Sorry for bring up all these issues at once.

  4. #4
    Join Date
    Apr 2009
    Location
    Aotearoha
    Beans
    2,661
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Audio over HDMI issues

    Do your DVDs play with AC3/DTS audio in MythTV ?

    The intel driver gets better in later kernels..I would add/use xorg-edgers ppa. There has been a lot of work done on HD3000/4000 Cedarview etc.
    That effects HDMI audio & VA-API.

    So the audio prolbems could all disappear with the VA-API problems..

    There are 2 ways your system can output multi-channel audio over HDMI:
    - matrix encoded AC3 (a52) DTS(-MA) &/or AAC etc
    - discrete 6/8 channels LPCM

    Post the ELD file from:
    /proc/asound/card0/eld#0.0
    (check all/any eld#x.y files found for contents)

    To start testing I would set the speaker config to 2 ch stereo with amp capabilities set to AC3/DTS.
    - try a DVD (with AC3/DTS).

    I think MythTV can test HDMI multi-channel audio over AC3 & as discrete multi-ch.

    BD playback works very well (no BD menus) & better than DVDs, sometimes have to select diff title from the OSD GUI. There is a bit of tinkering under the hood required.
    There is good info on mythtv.org wiki..
    Last edited by BicyclerBoy; December 4th, 2012 at 08:16 AM.

  5. #5
    Join Date
    Feb 2009
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Audio over HDMI issues

    The audio problems should disappear with the VA-API problems (once you solve them that is)..

  6. #6
    Join Date
    Dec 2012
    Beans
    22

    Re: Audio over HDMI issues

    I'm actually still waiting for my optical drive to be delivered. Earlier when I said DVD's play fine, I should have specified I was using a stand alone player though the AVR.

    I do however have files that on my windows computer that register as 5.1 however the same files don't on my mythbuntu box. I know that isn't the same and maybe I'll have to revisit this whole issue when I can properly troubleshoot. If it helps, this is the output of the eld file:

    Code:
    # cat /proc/asound/card0/eld#3.0 
    monitor_present		1
    eld_valid		1
    monitor_name		DENON-AVAMP
    connection_type		HDMI
    eld_version		[0x2] CEA-861D or below
    edid_version		[0x3] CEA-861-B, C or D
    manufacture_id		0xee11
    product_id		0x1c
    port_id			0x0
    support_hdcp		0
    support_ai		1
    audio_sync_delay	0
    speakers		[0x5f] FL/FR LFE FC RL/RR RC RLC/RRC
    sad_count		7
    sad0_coding_type	[0x1] LPCM
    sad0_channels		8
    sad0_rates		[0x1ee0] 32000 44100 48000 88200 96000 176400 192000
    sad0_bits		[0xe0000] 16 20 24
    sad1_coding_type	[0x7] DTS
    sad1_channels		6
    sad1_rates		[0x6c0] 44100 48000 88200 96000
    sad1_max_bitrate	1536000
    sad2_coding_type	[0x2] AC-3
    sad2_channels		6
    sad2_rates		[0xe0] 32000 44100 48000
    sad2_max_bitrate	640000
    sad3_coding_type	[0xb] DTS-HD
    sad3_channels		8
    sad3_rates		[0x1ec0] 44100 48000 88200 96000 176400 192000
    sad4_coding_type	[0xa] E-AC-3/DD+ (Dolby Digital Plus)
    sad4_channels		8
    sad4_rates		[0xc0] 44100 48000
    sad5_coding_type	[0xc] MLP (Dolby TrueHD)
    sad5_channels		6
    sad5_rates		[0x1ec0] 44100 48000 88200 96000 176400 192000
    sad6_coding_type	[0xc] MLP (Dolby TrueHD)
    sad6_channels		8
    sad6_rates		[0x6c0] 44100 48000 88200 96000
    I'm not sure when the drive arrives if I can specify how the audio will be "seen" by the AVR. Usually if it's 5.1, it will just display it as such.

    Lastly, I added the xorg-edgers PPA and while it did find about 50 updates, it doesn't appear to have changed much (both in getting surround or in video performance). I've been testing further and noticed that while the video of live tv can be choppy, the recordings are not when they are played back.

    Again, I'm at a loss unless there are more packages I'm missing.

    Thanks!

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
  •