Linux Radeon OSS with vdpau (howto) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: Linux Radeon OSS with vdpau (howto) (/showthread.php?tid=174854) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
|
RE: Radeon OSS with vdpau (howto) - fritsch - 2014-07-16 Please remove the marantz.bin and update to the kernel 3.15.3 from the second post. Is normal audio working? Quote:I've installed the Linux Mint distro. I can get HD Audio bitstream with ATI proprietary drivers, but no VDAPU. I can verify this by pressing "o" for the onscreen menu and not seeing ff-h264-vdapu. Yeah - that was to be expected. The shitty fglrx driver does not support any hw decoding on linux. Furthermore Linux Mint's Desktop highly interfers with xbmc is not suggested at all. Did you do tests with speaker-test -c2 -r 192000 on the hdmi device? RE: Radeon OSS with vdpau (howto) - MathewCNichols - 2014-07-16 fritsch, Normal audio has always worked, as well as bitstreaming AC3 and DTS. Only HD Audio bitstreaming appears broken. HD Audio bitstreaming is still silent after a fresh install of the mini.iso and update of the kernel. Verified with uname -r "3.15.3-031503-generic." I've tried both starting xbmc using the upstart script for the xbmc user and logging in with the setup username and using the terminal command "exec su -c "xinit /usr/bin/xbmc --standalone -- /usr/bin/X -bs -nolisten tcp :0" xbmc" It looks like XBMC is using vdpau, and at least recognizes the HD audio stream, it just doesn't seem to pass it to the AVR: https://plus.google.com/photos/+MathewCoryNichols/albums/6036688926867302689/6036688934431225794?pid=6036688934431225794&oid=114228927631134549458 I posted my hardware configuration since that it is the only variable I can imagine at this point. Thank you again. RE: Radeon OSS with vdpau (howto) - fritsch - 2014-07-16 a) Post an xbmc.log (Debug Log) when you play dts-hd / truehd b) Verify speaker-test -c2 -r 192000 -D "you hdmi out" is working c) Try with 60 hz (if you have Adjust Refreshrate to match video enabled). RE: Radeon OSS with vdpau (howto) - MathewCNichols - 2014-07-16 The first pastebins I posted were created after I used the edid bin download, modified grub to point to it, updated grub and rebooted, disabled the refresh rate sync and followed all HD Audio troubleshooting advice on the first post. I enabled XBMC debug mode afterward, then played a trueHD and dtsHD clip. Lastly, I generated those pastebins. Trying to run speaker-test from command line, just simply as "speaker-test -c2" gives an error: Playback device is default Stream parameters are 48000Hz, S16_LE, 2 channels Using 16 octaves of pink noise ALSA lib pcm_dmix.c:1022snd_pcm_dmix_open) unable to open slave Playback open error: -2,No such file or directory Hopefully we're onto something. Maybe it's because I don't have a desktop installed. RE: Radeon OSS with vdpau (howto) - fritsch - 2014-07-16 I told "your hdmi device" e.g. speaker-test -c 2 -D plughw:0,3 -r 192000 aplay -l will tell which one it is. RE: Radeon OSS with vdpau (howto) - fritsch - 2014-07-16 And please: I want - that you boot _without_ the marantz.bin in the grub entry. No edid overwriting for testing. RE: Radeon OSS with vdpau (howto) - MathewCNichols - 2014-07-16 Sorry about that. Using aplay -l determined I was using Card 0, and Device 3. Your terminal command for the 192khz test did work fine on my system. Odd though, that -c 6 or -c 8 only lights up two channels @ 192khz on my AVR. RE: Radeon OSS with vdpau (howto) - fritsch - 2014-07-16 Yeah - that's most likely fine - as it is the plughw device only. provide Code: aplay -L then do the following: Download http://samples.mplayerhq.hu/hdmi/thd.spdif and http://samples.mplayerhq.hu/hdmi/dts.spdif aplay -D hdmiRawdevice -c8 -fs16_le -r192000 thd.spdif or aplay -D hdmiRawdevice -c8 -fs16_le -r192000 dts.spdif the hdmiRawDevice is most likely something like: hdmi:CARD=Generic,DEV=0 which would result in: aplay -D hdmi:CARD=Generic,DEV=0 -c8 -fs16_le -r192000 dts.spdif RE: Radeon OSS with vdpau (howto) - MathewCNichols - 2014-07-16 Terminal command "aplay -L" reports: null Discard all samples (playback) or generate zero samples (capure) hdmi:CARD=HDMI,DEV=0 HDA ATI HDMI, HDMI 0 HDMI Audio Output dmix:CARD=HDMI,DEV=3 HDA ATI HDMI, HDMI 0 Direct sample mixing device dsnoop:CARD=HDMI,DEV=3 HDA ATI HDMI, HDMI 0 Direct sample snooping device hw:CARD=HDMI,DEV=3 HDA ATI HDMI, HDMI 0 Direct hardware device without any conversions plughw:CARD=HDMI,DEV=3 HDA ATI HDMI, HDMI 0 Hardware device with all software conversions Terminal command "aplay- D hdmi:CARD=HDMI,DEV=0 -c8 -fs16_le -r192000 thd.spdif" reports: aplay: set_params:1239: Channels count non available (I tried this just to mess around) Terminal command "aplay- D plughw:CARD=HDMI,DEV=3 -c8 -fs16_le -r192000 thd.spdif" reports: Playing raw data 'dts.spdif' : Signed 16 bit Little Endian, Rate 192000 Hz, Channels 8 *For this last command, no audio actually plays, the AVR display does flash though. RE: Radeon OSS with vdpau (howto) - fritsch - 2014-07-16 Something is obviously wrong ... I looked into your xbmc.log again and _no_ audio devices are found at all: http://paste.ubuntu.com/7803238/ Post a log that is from this howto and also make sure you are member of the audio group. Edit: Also post the content of the file: Code: cat /proc/asound/card0/codec#0 You might have to adjust this part. I have a bad feeling concerning your hardware + linux driver. RE: Radeon OSS with vdpau (howto) - MathewCNichols - 2014-07-16 First, I want to say thank you for your great help and speedy replies, it's very appreciated! Here are a few new pastebins: The card codec: http://paste.ubuntu.com/7804899 XBMC test using Tron MKV AC3 bitstream: http://paste.ubuntu.com/7804870 XBMC test using DTS own MKV DTSHD: http://paste.ubuntu.com/7804896 RE: Radeon OSS with vdpau (howto) - fritsch - 2014-07-16 That cannot work: Quote:14:40:20 T:140723789387712 NOTICE: m_channels : FL,FR There are only two channels available. I will ping Anssi. He has written that kernel code. RE: Radeon OSS with vdpau (howto) - fritsch - 2014-07-16 One final thing. Please boot windows again, play dts-hd and post me a debug log. I am quite sure you only got DTS-Core out of the windows version also. RE: Radeon OSS with vdpau (howto) - MathewCNichols - 2014-07-16 The XBMC GUI settings were set to "Number of channels: 2.0" and "Output Configuration: Best Match" for those tests. I had read that leaving the GUI mixer channels as 2.0 and setting to "Best Match" is the usual way to get a bitstream since it shouldn't matter how many channels there are, it's just sending RAW audio. Just for the heck of it, I enabled XBMC GUI settings mixer "Number of channels: 7.1" to see if it would make any difference. Here is the pastebin with 7.1 set and "Best Match" for passthrough (I still received the NOTICE: m_channels : FL,FR): http://paste.ubuntu.com/7804958/ Here is the pastebin with 7.1 set and "Fixed" @192.0 (I believe XBMC should decode and send RAW LPCM 7.1 to the AVR. I still received the NOTICE: m_channels : FL,FR. The AVR also only shows 2 channels @ 192khz on the display): http://paste.ubuntu.com/7805000 Maybe we (YOU) have found the problem? One step closer to a house run by OpenSource and XBMC! RE: Radeon OSS with vdpau (howto) - fritsch - 2014-07-16 No - wrong. Best Match has nothing to do with Passthrough. As passthrough always reopens the sink with the proper format. It also does not matter how many channels you set in xbmc, cause those only affect PCM signals. xbmc won't be able to open more than 2 channels with that setup. DTS and AC3 are sent via 2 channels only (virtual 5.1 coded over 2 pcm channels), it's a compressed format. DTS-HD needs to open 8 channels at 192 khz, xbmc.log should contain something like: Quote:19:32:04 T:140442943309760 NOTICE: Device 2 You see the 8 channels? Edit: Your fixed config will disable passthrough completely - but cause of the FL/FR only won't open more than those 2 channels anyways. |