Linux AudioEngine testers - Linux only

  Thread Rating:
  • 4 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
alanwww1 Offline
Team-XBMC Member
Posts: 1,299
Joined: Nov 2008
Reputation: 31
Location: Hungary
Post: #201
Guys you can manually override the kernel read ELD data like this:

Code:
echo sad0_rates 0x1ee0  > /proc/asound/card0/eld#3.0
echo speakers 0x4f  > /proc/asound/card0/eld#3.0
echo sad0_channels 8  > /proc/asound/card0/eld#3.0
echo sad0_bits 0xe0000  > /proc/asound/card0/eld#3.0

These were the lines I needed for Multichannel LPCM on Intel Sandy Bridge (until we got proper kernel support).
Of course this is a workaround. If the ATI driver does not support the LPCM output, than I think this is not working.
But If the problem is just that the driver does not parse EDID/ELD data properly, this could be a help.

ANy other valuse in ELD can be overwritten as well. Of course you have to adjust the values to your own system.
It is a trial and error process.

Edit:

And you can test if LPCM is working with running X server type:
Code:
speaker-test -Dhdmi -c6

For a 192k bitrate:
Code:
speaker-test -Dhdmi -c6 -r192000

Instead of "hdmi" you can write any value that suits your config (eg. "plughw:0,8")

Edit: You have to be in super user mode for that so first do:
Code:
sudo su

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2012-05-16 13:32 by alanwww1.)
find quote
drivesoslow Offline
Fan
Posts: 372
Joined: Aug 2008
Reputation: 4
Post: #202
(2012-05-16 08:43)alanwww1 Wrote:  Guys you can manually override the kernel read ELD data like this:

Code:
echo sad0_rates 0x1ee0  > /proc/asound/card0/eld#3.0
echo speakers 0x4f  > /proc/asound/card0/eld#3.0
echo sad0_channels 8  > /proc/asound/card0/eld#3.0
echo sad0_bits 0xe0000  > /proc/asound/card0/eld#3.0

I have tried this and if try adding these values to my current eld#0.0 they don't stick, any clue why?

Thanks
find quote
alanwww1 Offline
Team-XBMC Member
Posts: 1,299
Joined: Nov 2008
Reputation: 31
Location: Hungary
Post: #203
Sure you were in super user mode ?
Also check if there are other cards and eld entry combinations in /proc/asound/

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
drivesoslow Offline
Fan
Posts: 372
Joined: Aug 2008
Reputation: 4
Post: #204
(2012-05-16 16:51)alanwww1 Wrote:  Sure you were in super user mode ?
Also check if there are other cards and eld entry combinations in /proc/asound/

Yes I was in super user mode. I only have the one card and the one eld entry. If I try to edit it manually with vim and save it it tells me the file has changed. When I tried the same thing a week ago I got the feeling that alsa (or something) was constantly updating the file non-stop.

Code:
~$ ls /proc/asound/
card0  cards  devices  Generic  hwdep  modules  oss  pcm  seq  timers  version
~$ ls /proc/asound/card0/
codec#0  eld#0.0  id  pcm3p
(This post was last modified: 2012-05-16 17:40 by drivesoslow.)
find quote
drivesoslow Offline
Fan
Posts: 372
Joined: Aug 2008
Reputation: 4
Post: #205
Would overriding the EDID for Xorg with a manual dump have any effect on ALSA ELD or does ALSA parse thsi data directly from the card?

http://ati.cchtml.com/show_bug.cgi?id=415#c2
find quote
alanwww1 Offline
Team-XBMC Member
Posts: 1,299
Joined: Nov 2008
Reputation: 31
Location: Hungary
Post: #206
(2012-05-16 19:38)drivesoslow Wrote:  Would overriding the EDID for Xorg with a manual dump have any effect on ALSA ELD or does ALSA parse thsi data directly from the card?

http://ati.cchtml.com/show_bug.cgi?id=415#c2

I think it is not the problem of getting the correct EDID data. I belive it is the problem of the driver to PARSE the EDID data. Specially the ELD info part.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
drivesoslow Offline
Fan
Posts: 372
Joined: Aug 2008
Reputation: 4
Post: #207
(2012-05-16 20:29)alanwww1 Wrote:  
(2012-05-16 19:38)drivesoslow Wrote:  Would overriding the EDID for Xorg with a manual dump have any effect on ALSA ELD or does ALSA parse thsi data directly from the card?

http://ati.cchtml.com/show_bug.cgi?id=415#c2

I think it is not the problem of getting the correct EDID data. I belive it is the problem of the driver to PARSE the EDID data. Specially the ELD info part.

So then what will be the workaround for these kind of scenarios? Will we be able to manually specify a output device in XBMC like we could in the past?

Thanks
find quote
pike Offline
Project Manager
Posts: 4,820
Joined: Sep 2003
Reputation: 28
Location: Sweden
Post: #208
I believe we found out that X11 has a bug which resets the ELD data, so you must apply these ELD patches right before launching xbmc AFTER X11

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
drivesoslow Offline
Fan
Posts: 372
Joined: Aug 2008
Reputation: 4
Post: #209
(2012-05-16 20:51)pike Wrote:  I believe we found out that X11 has a bug which resets the ELD data, so you must apply these ELD patches right before launching xbmc AFTER X11

Which patches, these?

Code:
echo sad0_rates 0x1ee0  > /proc/asound/card0/eld#3.0
echo speakers 0x4f  > /proc/asound/card0/eld#3.0
echo sad0_channels 8  > /proc/asound/card0/eld#3.0
echo sad0_bits 0xe0000  > /proc/asound/card0/eld#3.0

I should be able to add whatever patch to my .xsession before I launch XBMC
(This post was last modified: 2012-05-16 21:08 by drivesoslow.)
find quote
negge Offline
Fan
Posts: 417
Joined: Dec 2010
Reputation: 5
Location: Finland
Post: #210
(2012-05-13 22:27)eternalsword Wrote:  
(2012-05-13 14:45)negge Wrote:  
gnif Wrote:@negge - You have a MEI Panasonic-TV plugged in

In fact the computer is hooked to a Yamaha reciever which in turn is hooked to my Panasonic TV. I don't know why the "device name" seems to get passed along, but I guess it doesn't matter.

@negge, sounds like you may have your Yamaha receiver set to pass audio through to the TV. If you do this, the receiver is limited to the audio capabilities of the TV, and the EDID info that gets passed to the computer is the TV's. See here.

That could be, although in that case it seems my TV has the exact same capabilities as my receiver (same formats supported etc.). I need to look into whether it can send just the video to the TV instead of the whole signal.
find quote
Post Reply