You are not logged in.

#1 2016-01-04 14:52:09

smakovits
Member
Registered: 2013-12-15
Posts: 60

Understanding missing drivers

Trying to get a handle of an issue I have on my Arch install running under KVM.

The install itself was fine, but the issue is more with Kodi and the inability to support bitstream audio on my passed through video card.  My assumption is that I am missing the following 2 drivers:

lib32-ati-dri and lib32-libtxc_dxtn

From what I can tell, they are included with "lib32-mesa 11.1.0-1", however, during the installation of kodi, it installs "mesa 11.1.0-2"  which no longer appears to include the above noted requirements (
lib32-ati-dri and lib32-libtxc_dxtn) to fully support Gallium 0.4 (the HVM accelerated hardware passed into the VM).

I could be way off on this assumption, but thought to ask if this was accurate before trying to troubleshoot the situation further.  Are lib32-ati-dri and lib32-libtxc_dxtn included with the version of mesa (mesa 11.1.0-2) currently being installed with kodi and if not, how do I go about getting them installed so I can further troubleshoot my passthrough issues?

Thanks.

Offline

#2 2016-01-04 15:22:48

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: Understanding missing drivers

I have no idea what you're talking about tbh.

First of all, both libtxc_dxtn and lib32-libtxc_dxtn exist as seperate package in [Extra] and [Multilib], while mesa / lib32-mesa provides ati-dri and lib32-ati-dri respectively.

However, none of these should be relevant to your sound issue, especially not {,lib32-}libtxc_dxtn. It's only to enable support on S3TC (https://en.wikipedia.org/wiki/S3_Texture_Compression).

AFAIK, the sound support depends only on the kernel driver module (radeon or amdgpu for your case), it should have nothing to do with mesa or X or whatsoever (so I didn't mean xf86-video-ati or xf86-video-amdgpu, but the KERNEL module). In other word, you should have it working "out of the box", assuming the support has been implemented and there is no bug in it.

So, since you're talking about VGA passthrough to a VM, have you passthrough the audio device as well? For example in my case I will need to passthrough these two:

01:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] (rev a2)
01:00.1 Audio device: NVIDIA Corporation Device 0fbc (rev a1)

If so, do you see it in the `lspci -k` output in the guest with "Kernel driver in use: snd-hda-intel"?

If so, do you mean you get no sound at all from the card or only bistreaming dolby/dts or so does not work?

Offline

#3 2016-01-04 18:35:25

smakovits
Member
Registered: 2013-12-15
Posts: 60

Re: Understanding missing drivers

Sorry for the confusion.

To give a little background this all started when I was attempting to run openelec in a vm.  I was passing through the video card, but when I enabled passthrough audio, I got no sound.  Disable passthrough/HD Audio and I get sound, but now it is processed by kodi, not my receiver.

So, I started to look at the devices seen in kodi and it was reporting Gallium 0.4, so I did a search and found this:
https://bbs.archlinux.org/viewtopic.php?id=161000

Because of the nature of Openelec, it does not appear possible to add the drivers, so I wanted to move away from OE and use Arch+kodi.  With that, I was trying to make sure that the correct drivers were installed for my hardware on Arch, in order for me to bitstream the HD audio track to my receiver inside of kodi.

When I had things running bare metal it was fine, so I know the hardware works.  Now it is a matter of figuring out if the issue is the drivers, the hardware not being passed correctly or a combination of the 2 that kodi simply doesn't like and therefore, doesn't work as desired.

Offline

#4 2016-01-05 05:25:58

smakovits
Member
Registered: 2013-12-15
Posts: 60

Re: Understanding missing drivers

tom.ty89 wrote:

I have no idea what you're talking about tbh.

So, since you're talking about VGA passthrough to a VM, have you passthrough the audio device as well? For example in my case I will need to passthrough these two:

01:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] (rev a2)
01:00.1 Audio device: NVIDIA Corporation Device 0fbc (rev a1)

If so, do you see it in the `lspci -k` output in the guest with "Kernel driver in use: snd-hda-intel"?

If so, do you mean you get no sound at all from the card or only bistreaming dolby/dts or so does not work?

Ok, so this is what I end up with in my vm:

00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Turks PRO [Radeon HD 6570/7570/8550]
00:02.0 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Turks/Whistler HDMI Audio [Radeon HD 6000 Series]

and in the guest vm, output from "lspci -k" is:

00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Turks PRO [Radeon HD 6570/7570/8550]
        Subsystem: XFX Pine Group Inc. Device 3198
        Kernel driver in use: radeon
        Kernel modules: radeon
00:02.0 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Turks/Whistler HDMI Audio [Radeon HD 6000 Series]
        Subsystem: XFX Pine Group Inc. Device aa90
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

With that said, should I need any other driver for passthrough to work correctly?

thanks

Offline

#5 2016-01-05 06:59:33

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: Understanding missing drivers

Nope, the two should be all you need.

Have you checked with speaker-test / aplay? Can you paste aplay -L as well?

Offline

#6 2016-01-05 14:41:43

smakovits
Member
Registered: 2013-12-15
Posts: 60

Re: Understanding missing drivers

OK, ran:

 
pacman -S alsa-plugins alsa-utils alsaplayer alsa-tools

then "aplay -L" and got

aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
hdmi:CARD=HDMI,DEV=0
    HDA ATI HDMI, HDMI 0
    HDMI Audio Output

One thing to note, is that before I installed alsaplayer, etc, I got:

 aplay -L
-bash: aplay: command not found

Not sure if it makes a difference for kodi and passthrough or not, but I thought it was worth a mention as we look at thing.

Last edited by smakovits (2016-01-05 14:43:45)

Offline

#7 2016-01-05 14:55:15

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: Understanding missing drivers

These are just userspace program and has nothing to do with your issue. `aplay` (and `speaker-test`) is provided by alsa-utils.

Try this:

speaker-test -D hdmi:CARD=HDMI,DEV=0 -c 2

add -r 44100 / -r 96000 / -r 192000 to test with sampling rates other than 48000. change -c to 6 or 8 to test surround sound.

Last edited by tom.ty89 (2016-01-05 14:56:09)

Offline

#8 2016-01-05 20:03:59

smakovits
Member
Registered: 2013-12-15
Posts: 60

Re: Understanding missing drivers

thanks, I will try this tonight

Offline

#9 2016-01-06 03:44:01

smakovits
Member
Registered: 2013-12-15
Posts: 60

Re: Understanding missing drivers

tom.ty89 wrote:

These are just userspace program and has nothing to do with your issue. `aplay` (and `speaker-test`) is provided by alsa-utils.

Try this:

speaker-test -D hdmi:CARD=HDMI,DEV=0 -c 2

add -r 44100 / -r 96000 / -r 192000 to test with sampling rates other than 48000. change -c to 6 or 8 to test surround sound.

Got a chance to test this and everything was good until I made the jump to 192000.

Not sure why it would suddenly drop off,  my receiver reports no signal,  which is exactly what I see when using kodi and trying pass-through/Bitstream  to my receiver

Last edited by smakovits (2016-01-06 03:47:04)

Offline

#10 2016-01-06 05:48:45

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: Understanding missing drivers

So speaker-test was running and sending signal but your receiver sense nothing?

Hmm could be an issue in the radeon driver, you sure your receiver support 192kHz right? Maybe you can try adding -F S32_LE and see how it goes. Can you test with -r 88200 and -r 176400 as well?

Also paste the output of this:
`cat /proc/asound/card0/eld#0.0`

Offline

#11 2016-01-06 13:21:59

smakovits
Member
Registered: 2013-12-15
Posts: 60

Re: Understanding missing drivers

tom.ty89 wrote:

So speaker-test was running and sending signal but your receiver sense nothing?

Hmm could be an issue in the radeon driver, you sure your receiver support 192kHz right? Maybe you can try adding -F S32_LE and see how it goes. Can you test with -r 88200 and -r 176400 as well?

Also paste the output of this:
`cat /proc/asound/card0/eld#0.0`

Yes, it is an Onkyo TX-SR805 (192kHz/24-bit Burr Brown DACs for all channels)

As far as the speaker test, I am not sure if the receiver sensed nothing or the signal sent to it was bad.  Why would the lower frequencies work fine, but then the higher one does not.  This is where your mention of the Radeon driver could be on to something.  I say this because of the behavior within kodi too.

If I am not bitstreaming an HD audio signal, I can watch and hear a movie for days, but at soon as I enable passthrough, silence and the receiver gives a similar read-out, "No Signal", like it does not like the signal it gets.

Within kodi, the audio device is simply defined as "HDA ATI, @@@", which does not seem right.  When I try to open alsamixer, all I see if S/pdif.  I am able to hit f6 to select HDMI, but it doesnt do anything.

I was discussing the issue with some folks in another forum and they mentioned they saw similar behavior using a similar AMD card.  When they made the switch to a Windows based guest and loaded the driver and kodi, they claim everything was fine and as expected.  If necessary, I could load up a similar test to confirm this claim.  My thought would be that if it works in Windows and not linux/arch, then it very could be a driver/device configuration issue.

edit:
to confirm, I tried the other frequencies, -r 88200 worked and -r 176400 did not, -F S32_LE did not change any results.

`cat /proc/asound/card0/eld#0.0`
-bash: monitor_present: command not found

although I ran this from a putty session, so I am not sure that makes a difference.  the rest I ran from a keyboard/mouse attached to the system.

Last edited by smakovits (2016-01-06 13:38:35)

Offline

#12 2016-01-06 14:29:08

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: Understanding missing drivers

Do not run the commands with the backticks (`)...they are only for command quotation in communication...
Anyway just run this instead:

cat /proc/asound/card0/eld*

The fact that only 176.4kHz and 192kHz doesn't work actually more or less confirm that that it's an issue in the radeon kernel driver (probably of some clock calculation or so). Nothing else is involved in speaker-test commands but the drm and ALSA drivers, not kodi, pulse or whatsoever. It's perfectly normal that alsamixer shows the mute control as "S/PDIF" as well.

By "HD audio signal" do you mean Dolby TrueHD / DTS-HD MA? Coz pulseaudio can at most passthrough DD+ (EAC3) AFAIK. So in that case you might want to get rid of pulse:

systemctl --user stop pulseaudio.socket pulseaudio
pacman -Rs pulseaudio pulseaudio-alsa

and test with some 96kHz "HD audio" sources you have again.

Btw you can actually test with Catalyst as well if you want, though it can possibly cause another hell of mess...

Last edited by tom.ty89 (2016-01-06 14:59:24)

Offline

#13 2016-01-06 19:40:06

smakovits
Member
Registered: 2013-12-15
Posts: 60

Re: Understanding missing drivers

tom.ty89 wrote:

Do not run the commands with the backticks (`)...they are only for command quotation in communication...
Anyway just run this instead:

cat /proc/asound/card0/eld*

The fact that only 176.4kHz and 192kHz doesn't work actually more or less confirm that that it's an issue in the radeon kernel driver (probably of some clock calculation or so). Nothing else is involved in speaker-test commands but the drm and ALSA drivers, not kodi, pulse or whatsoever. It's perfectly normal that alsamixer shows the mute control as "S/PDIF" as well.

By "HD audio signal" do you mean Dolby TrueHD / DTS-HD MA? Coz pulseaudio can at most passthrough DD+ (EAC3) AFAIK. So in that case you might want to get rid of pulse:

systemctl --user stop pulseaudio.socket pulseaudio
pacman -Rs pulseaudio pulseaudio-alsa

and test with some 96kHz "HD audio" sources you have again.

Btw you can actually test with Catalyst as well if you want, though it can possibly cause another hell of mess...

ok, thats better:

$ cat /proc/asound/card0/eld#0.0
monitor_present         1
eld_valid               1
monitor_name
connection_type         HDMI
eld_version             [0x2] CEA-861D or below
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                [0x4f] FL/FR LFE FC RL/RR RLC/RRC
sad_count               6
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        [0x2] AC-3
sad1_channels           8
sad1_rates              [0xe0] 32000 44100 48000
sad1_max_bitrate        640000
sad2_coding_type        [0x7] DTS
sad2_channels           8
sad2_rates              [0xc0] 44100 48000
sad2_max_bitrate        1536000
sad3_coding_type        [0xa] E-AC-3/DD+ (Dolby Digital Plus)
sad3_channels           8
sad3_rates              [0xc0] 44100 48000
sad4_coding_type        [0xb] DTS-HD
sad4_channels           8
sad4_rates              [0x1ec0] 44100 48000 88200 96000 176400 192000
sad5_coding_type        [0xc] MLP (Dolby TrueHD)
sad5_channels           8
sad5_rates              [0x6c0] 44100 48000 88200 96000

By "HD audio signal" do you mean Dolby TrueHD / DTS-HD MA?

yes

I will remove pulse completely and try again.

If it is a kernel driver issue, is this something that we will not be able to fix?  And in stead we wait for someone else to correct it or get an nvidia card?

Offline

#14 2016-01-07 09:27:22

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: Understanding missing drivers

Well you can file a bug report upstream.

Funny thing is your eld somehow tells that it does not support Dolby TrueHD at 176.4kHz and 192kHz...but does for DTS-HD and LPCM. This is pretty weird, not sure if this is your receiver's issue or also caused by the radeon driver...

Offline

#15 2016-01-08 14:42:09

smakovits
Member
Registered: 2013-12-15
Posts: 60

Re: Understanding missing drivers

tom.ty89 wrote:

Well you can file a bug report upstream.

Funny thing is your eld somehow tells that it does not support Dolby TrueHD at 176.4kHz and 192kHz...but does for DTS-HD and LPCM. This is pretty weird, not sure if this is your receiver's issue or also caused by the radeon driver...

How do we file a bug report?

I spoke with some others that have seen the same thing with Ubuntu and Mint, so it is pretty obvious the issue is with the Radeon driver.  Said others, can use the same system, switch to Nvidia and everything is fine, so I figure I can try to get things moving to fix the driver.

Offline

#16 2016-01-08 18:29:55

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: Understanding missing drivers

Offline

Board footer

Powered by FluxBB