nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Call for testers: HDMI pass-through (http://www.nvnews.net/vbulletin/showthread.php?t=157347)

cehoyos 11-21-10 09:08 AM

Call for testers: HDMI pass-through
 
Anssi Hannula has provided patches for FFmpeg that should allow to use HDMI pass-through on Linux for TrueHD and DTS-HD.
Since they do not work for me on a G210 and KRF-V7300D, I would like to ask people to test two files (that were made using his patches) on HDMI and suitable receiver hardware.
You can find the two testfiles in http://samples.mplayerhq.hu/hdmi/
EDIT
To produce such files yourself, use:
ffmpeg -i input -acodec copy output.spdif
/EDIT

Add the following to ~/.asoundrc:
Code:

## begin custom stuff
pcm.hdmihdtest {
        @args [ DEVICE CTLINDEX ]
        @args.DEVICE {
                type integer
        }
        @args.CTLINDEX {
                type integer
        }
        type hooks
        slave.pcm {
                type hw
                card NVidia
                device $DEVICE
        }
        hooks.0 {
                type ctl_elems
                hook_args [
                {
                        name "IEC958 Playback Default"
                        index $CTLINDEX
                        lock true
                        preserve true
                        value [ 0x06 0x82 0x00 0x01 ]
                }
                {
                        name "IEC958 Playback Switch"
                        index $CTLINDEX
                        lock true
                        preserve true
                        value true
                }
                ]
        }
}
pcm.hdmihdtest0 { @func refer name "pcm.hdmihdtest:DEVICE=3,CTLINDEX=0" }
pcm.hdmihdtest1 { @func refer name "pcm.hdmihdtest:DEVICE=7,CTLINDEX=1" }
pcm.hdmihdtest2 { @func refer name "pcm.hdmihdtest:DEVICE=8,CTLINDEX=2" }
pcm.hdmihdtest3 { @func refer name "pcm.hdmihdtest:DEVICE=9,CTLINDEX=3" }
## end custom stuff

Make sure alsa is not muted with
Code:

alsamixer -cNVidia
To test them, use:
Code:

aplay -D hdmihdtest0 -c8 -fs16_le -r192000 file.spdif
aplay -D hdmihdtest1 -c8 -fs16_le -r192000 file.spdif
aplay -D hdmihdtest2 -c8 -fs16_le -r192000 file.spdif
aplay -D hdmihdtest3 -c8 -fs16_le -r192000 file.spdif

You either need Linux kernel 2.6.36 or an older kernel with latest alsa drivers installed (and you should preferably confirm that aplay works on wav files over hdmi before downloading the test files).

Please provide the following information:
  • Card and GPU type (you find this information for example in the third line of qvdpautest output)
  • Driver version
  • Kernel (and ALSA) version
  • Receiver
  • If none, one or both files work for you (they only contain short noise, the question is if the receiver correctly recognizes them)
Some information and the patches are here:
http://thread.gmane.org/gmane.comp.v...g.devel/121073

Thank you, Carl Eugen

Anssi 11-21-10 10:29 AM

Re: Call for testers: HDMI pass-through
 
I can indeed confirm that both of the provided DTS-HD and TrueHD files work with aplay for me, with the following system combination:
  • Graphics: NVIDIA GPU NVS 3100M (GT218)
  • Driver version: 260.19.21
  • Kernel version: 2.6.36
  • Receiver: Onkyo TX-SR607
  • Both of the files work
Yes, this is not actually older hardware like Carl Eugen said.
I can also confirm that 256.35 works, and nouveau works with experimental patches.
With an older NVIDIA GPU GeForce 9400 (C79), the files do not work with any driver.

cehoyos 11-21-10 12:46 PM

Re: Call for testers: HDMI pass-through
 
My results are:
  • G210 (GT218)
  • 260.19.12
  • 2.6.31 with alsa 1.0.23.84.gd6e08.783.g952c6
  • Kenwood KRF-V7300D
  • E-AC3 and similar (and 192kHz s16le 8ch wav) work fine, both (TrueHD and DTS-HD) samples fail
Carl Eugen

PenGun 11-24-10 09:43 PM

Re: Call for testers: HDMI pass-through
 
Is this in ffmpeg svn yet?

Anssi 11-25-10 01:15 AM

Re: Call for testers: HDMI pass-through
 
Quote:

Originally Posted by PenGun (Post 2354906)
Is this in ffmpeg svn yet?

Not yet, but it is being worked on. Note that you won't need ffmpeg to test the samples provded by cehoyos.

PenGun 11-25-10 04:52 AM

Re: Call for testers: HDMI pass-through
 
Quote:

Originally Posted by Anssi (Post 2354974)
Not yet, but it is being worked on. Note that you won't need ffmpeg to test the samples provded by cehoyos.

"Anssi Hannula has provided patches for FFmpeg that should allow to use HDMI pass-through on Linux."

I did not even have the spidifenc file till I updated ffmpeg.

I think you may be confused, or perhaps it's me.

I have HDMI sound working on my GTX 460. It took a little fooling around but I am running a 2.6.36 kernel.

Anssi 11-25-10 05:00 AM

Re: Call for testers: HDMI pass-through
 
Quote:

Originally Posted by PenGun (Post 2355014)
"Anssi Hannula has provided patches for FFmpeg that should allow to use HDMI pass-through on Linux."

I did not even have the spidifenc file till I updated ffmpeg.

I think you may be confused, or perhaps it's me.

The test files that cehoyos provided in the first post are *already* processed through ffmpeg, so ffmpeg is not needed for testing them (as can be seen from his instructions).

If you want to passthrough your own TrueHD/DTS-HD files, only then will you need a patched ffmpeg.

Quote:

Originally Posted by PenGun (Post 2355014)
I have HDMI sound working on my GTX 460. It took a little fooling around but I am running a 2.6.36 kernel.

Then it would be appreciated if you could test passthrough :)

PenGun 11-25-10 05:09 AM

Re: Call for testers: HDMI pass-through
 
aplay -D hdmihdtest0 -c8 -fs16_le -r192000 thd.spdif
Playing raw data 'thd.spdif' : Signed 16 bit Little Endian, Rate 192000 Hz, Channels 8
aplay: set_params:1059: Channels count non available.

I don't do surround. Stereo only.

Not working then. I use device 3 for my setup so the rest do zip.

Anssi 11-25-10 05:33 AM

Re: Call for testers: HDMI pass-through
 
Quote:

Originally Posted by PenGun (Post 2355016)
aplay -D hdmihdtest0 -c8 -fs16_le -r192000 thd.spdif
Playing raw data 'thd.spdif' : Signed 16 bit Little Endian, Rate 192000 Hz, Channels 8
aplay: set_params:1059: Channels count non available.

I don't do surround. Stereo only.

Is the HDMI cable connected to an A/V receiver that has TrueHD / DTS-HD support?
If not, it is not expected to work.

If it is, then please attach the contents of /proc/asound/NVidia/codec#0 and /proc/asound/NVidia/eld#0.0.
Thanks.

PenGun 11-25-10 05:51 AM

Re: Call for testers: HDMI pass-through
 
Quote:

Originally Posted by Anssi (Post 2355017)
Is the HDMI cable connected to an A/V receiver that has TrueHD / DTS-HD support?
If not, it is not expected to work.

If it is, then please attach the contents of /proc/asound/NVidia/codec#0 and /proc/asound/NVidia/eld#0.0.
Thanks.

Nope the big Sony just does 2 channel digital audio. Hi ho. I probe so I just have codec#1 and eid#1.0

Nicest CRT ever made, for consumers, the 960XBRs. Makes an LCD look ugly and slow.

highrez 11-25-10 02:13 PM

Re: Call for testers: HDMI pass-through
 
Works for me. Sort of. The audio plays - but the HDMI light my receiver blinks, and it never shows the DTS/DTS-HD lights which indicate that its getting said signal (my receiver has a red light for each different type of digital format it supports). I'm wonder if that is because the sample is too short? Is there by chance a larger sample I can use? I tried cat dts.spdif >> big.spdif a few times to make it loop - and from an audio point that appeared to work but I'm not sure if its correct?
  • Graphics: NVIDIA GPU GeForce GT 240 (GT215)
  • Driver: 260.19.21
  • Receiver: Onkyo TX-NR807
  • Alsa-Driver: Snapshot: alsa-driver-20101119.tar.gz
  • Alsa-Lib: Snapshot: alsa-lib-20101119.tar.gz
  • Kernel: 2.6.30-gentoo-r6

*edit* Should mention I edited the asoundrc to use NVidia_1 instead of NVidia - as I have an onboard HDMI that I don't use which is detected as the first card.

Anssi 11-25-10 02:27 PM

Re: Call for testers: HDMI pass-through
 
Quote:

Originally Posted by highrez (Post 2355122)
Works for me. Sort of. The audio plays - but the HDMI light my receiver blinks, and it never shows the DTS/DTS-HD lights which indicate that its getting said signal (my receiver has a red light for each different type of digital format it supports). I'm wonder if that is because the sample is too short? Is there by chance a larger sample I can use?

You can find a much longer DTS-HD sample from here:
http://stuff.onse.fi/testi.dtshd.ans...71-24.spdif.gz (49MB)
and a 1 minute TrueHD one:
http://stuff.onse.fi/testi.truehd.an...f.60s.spdif.gz (4MB)
You'll need to uncompress them first with gunzip.

Does "The audio plays" mean you hear some audio, or just that you don't get any error?

Quote:

Originally Posted by highrez (Post 2355122)
I tried cat dts.spdif >> big.spdif a few times to make it loop - and from an audio point that appeared to work but I'm not sure if its correct?

So did the receiver recognize it then?
Simple concatenating has a chance of working, but it is not guaranteed.
Quote:

Originally Posted by highrez (Post 2355122)
  • Graphics: NVIDIA GPU GeForce GT 240 (GT215)
  • Driver: 260.19.21
  • Receiver: Onkyo TX-NR807
  • Alsa-Driver: Snapshot: alsa-driver-20101119.tar.gz
  • Alsa-Lib: Snapshot: alsa-lib-20101119.tar.gz
  • Kernel: 2.6.30-gentoo-r6

*edit* Should mention I edited the asoundrc to use NVidia_1 instead of NVidia - as I have an onboard HDMI that I don't use which is detected as the first card.

Thanks a lot :)


All times are GMT -5. The time now is 01:32 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.