INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Linux HDMI experts, I could use some help...  (Read 5502 times)

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13524
Linux HDMI experts, I could use some help...
« on: January 10, 2014, 10:41:16 am »

I'm trying to get sound out via the HDMI port on one of my test setups.
Here's what it looks like:
cat /proc/version                                                                                            
 Linux version 3.10-0.bpo.3-686-pae (debian-kernel@lists.debian.org) (gcc version 4.7.2 (Debian 4.7.2-5) ) #1 SMP Debian 3.10.11-1~bpo70+1 (2013-09-24)    

aplay -L
Code: [Select]
null
    Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=Generic,DEV=0
    HD-Audio Generic, HDMI 0
    HDMI Audio Output
default:CARD=Generic_1
    HD-Audio Generic, VT1705CF Analog
    Default Audio Device
sysdefault:CARD=Generic_1
    HD-Audio Generic, VT1705CF Analog
    Default Audio Device
front:CARD=Generic_1,DEV=0
    HD-Audio Generic, VT1705CF Analog
    Front speakers
surround40:CARD=Generic_1,DEV=0
    HD-Audio Generic, VT1705CF Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic_1,DEV=0
    HD-Audio Generic, VT1705CF Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic_1,DEV=0
    HD-Audio Generic, VT1705CF Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic_1,DEV=0
    HD-Audio Generic, VT1705CF Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic_1,DEV=0
    HD-Audio Generic, VT1705CF Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Generic_1,DEV=0
    HD-Audio Generic, VT1705CF Digital
    IEC958 (S/PDIF) Digital Audio Output

I select the HDMI device and MC thinks it's playing but I get no sound.
The HD-Audio Generic, VT1705CF Analog device works properly.

If I run alsamixer there are all sorts of controls for the HD-Audio device but the HDMI device only shows SPD/IF with a level of 0.

I've tried different kernels, the 3.10 one is the most recent stock kernel.

Any ideas?

Thanks..
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7399
  • The color of Spring...
Re: Linux HDMI experts, I could use some help...
« Reply #1 on: January 10, 2014, 11:21:44 am »

I've heard about people having issues with HDMI audio, especially with AMD Radeon cards/onboard. If that's the case, you should try the newer 3.13 RCX kernels as that has AMD HDMI audio fixes for Radeon. In any case, have you tried this command as I've heard this helps some people with HDMI output...

xrandr --output HDMI-0 --set audio auto

Also, this may help you on your quest as well. Good luck! :)
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 24.04 LTS Noble Numbat 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | iFi ZEN DAC 3 | Edifier R2000DB Bookshelf Speakers | Audio-Technica ATH-M50x Headphones

Mike Noe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 792
Re: Linux HDMI experts, I could use some help...
« Reply #2 on: January 10, 2014, 11:49:24 am »

Yes, for AMD, you will need 3.13RCx or 3.12 w/patches.  Otherwise, you'll have to set kernel param Radeon.Audio=1 and even then, you will only get 2-ch output (again, with the older kernel/sound branch).

Also, for you distro, make sure the HDMI device is the default (0).  On openSuse we do this with the Yast/Sound option, I can't remember the command line.

You might also have to go into Phonon and actually enable the h/w device.
Logged
openSUSE TW/Plasma5 x86_64 | Win10Pro/RX560
S.M.S.L USB-DAC => Transcendent GG Pre (kit) => Transcendent mono OTLs (kit)
(heavily modded) Hammer Dynamics Super-12s (kit)
(optionally) VonSchweikert VR8s

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3966
Re: Linux HDMI experts, I could use some help...
« Reply #3 on: January 10, 2014, 12:20:42 pm »

you can set a default device in ~/.asoundrc

http://www.alsa-project.org/main/index.php/Asoundrc
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13524
Re: Linux HDMI experts, I could use some help...
« Reply #4 on: January 10, 2014, 03:34:35 pm »

Here is the audio device:
00:01.1 Audio device: Advanced Micro Devices [AMD] nee ATI Device 9840
   Subsystem: Elitegroup Computer Systems Device 7e43
   Flags: bus master, fast devsel, latency 0, IRQ 78
   Memory at feb64000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: snd_hda_intel

I tried the xrandr and the kernel  Radeon.Audio=1 setting but still no go.
I may have to compile my own kernel.
It seems as if there is only on audio chip for both analog, spdif and hdmi and the analog works fine. The hdmi, not.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7399
  • The color of Spring...
Re: Linux HDMI experts, I could use some help...
« Reply #5 on: January 10, 2014, 03:48:15 pm »

Yeah, looks like you'll need the 3.13 RCX kernel indeed (since AMD HDMI audio doesn't seem to work for any other kernels without patches/hacks except for the upcoming 3.13 kernel) for that to work, along with perhaps the xrandr command and a custom ~/.asoundrc.

I know the 3.13 RCX kernel works fine under Debian Jessie, as I could download the compiled kernels from Ubuntu's servers and install them via dpkg. However that probably won't work for Debian Wheezy out-of-the-box unless there's a backport of glibc/libc6 2.15 to satisfy the dependency, I believe. So compiling the kernel will hopefully get around that issue. That's one of the reasons why I moved from Wheezy to Jessie, as I wanted to use newer kernels (without compiling them myself) and GNOME 3.8/Cinnamon 2.0.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 24.04 LTS Noble Numbat 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | iFi ZEN DAC 3 | Edifier R2000DB Bookshelf Speakers | Audio-Technica ATH-M50x Headphones
Pages: [1]   Go Up