Announcement

Collapse
No announcement yet.

radeonhd patch: HDMI support including Audio

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • radeonhd patch: HDMI support including Audio

    Hi everybody,

    i just made a new release of my patch for radeonhd adding HDMI support including Audio and desperately looking for testers.
    It should apply cleanly to current git master.

    Whats done:
    1. Tested and working on the RV620, RV630, 770/780G and M8x Chipsets.
    2. Audio support with 32, 44.1 and 48 kHz and 16/20/24 bit resolution.
    3. Changing resolutions with xrand while Audio is playing.

    Still ToDo:
    1. Switching to other VT and back kills playing Audio.
    2. Auto detection of HDMI support with E-EDID. E-EDID reading is now
    possible with xserver 1.5, but as far as i can see these information are
    not decoded/used.

    One of the previous testers made a guide on how to install radeonhd and the patch on Ubuntu (http://www.mediaboxblog.co.uk/blog1....nning-radeonhd).
    It's a good place to start if you want to download and test this patch.

    Please leave me a note if this is working or if there are still some problems left.

    Bye, Christian.

  • #2
    Deathsimple: what about some download link here?

    Comment


    • #3
      Hi Christian,

      I followed the procedure explained in the blog to compile and install the new driver. The driver seems to work fine, but I can't get playback of sound to work.

      Being on Fedora 9 I didn't follow the exact steps shown in the article about Ubuntu (http://www.mediaboxblog.co.uk/blog1....3200-rs#enable) but the part about alay and mplayer should work the same. And mplayer actually doesn't complain when selecting the ATI card for output, I just don't hear anything.

      X.Org X Server 1.5.0
      Radeon HD 3870 rev 0
      RADEONHD: version 1.2.1, built from git branch master, commit 0fd255db + changes
      RADEONHD(0): Detected an RV670 on an unidentified card
      Linux 2.6.26.5

      If you need any info just let me know,
      -Tako
      Last edited by quintesse; 08 October 2008, 06:27 PM.

      Comment


      • #4
        Originally posted by Zajec View Post
        Deathsimple: what about some download link here?
        Oh yes, here is a direct link to the patch.

        Originally posted by quintesse View Post
        Hi Christian,

        I followed the procedure explained in the blog to compile and install the new driver. The driver seems to work fine, but I can't get playback of sound to work.

        Being on Fedora 9 I didn't follow the exact steps shown in the article about Ubuntu (http://www.mediaboxblog.co.uk/blog1....3200-rs#enable) but the part about alay and mplayer should work the same. And mplayer actually doesn't complain when selecting the ATI card for output, I just don't hear anything.

        X.Org X Server 1.5.0
        Radeon HD 3870 rev 0
        RADEONHD: version 1.2.1, built from git branch master, commit 0fd255db + changes
        RADEONHD(0): Detected an RV670 on an unidentified card
        Linux 2.6.26.5

        If you need any info just let me know,
        -Tako
        Sounds very interesting since this patch wasn't tested (yet) on an RV670 chipset.
        Could you please make sure that the additional options "Audio" and "HDMI" are set correctly in your xorg.conf file:

        Section "Device"
        Identifier "Radeon Driver"
        Driver "radeonhd"
        Option "Audio" "on"
        Option "HDMI" "all"
        EndSection

        Then try starting the x server with the "-logverbose 7" option:

        sudo /usr/bin/X -logverbose 7

        Play something with mplayer oder aplay, stop the X server and send me the resulting log file (just send you my mail address with PM).

        Bye, Christian.

        Comment


        • #5
          Just wanted to say thank you for the great job! I stumbled upon that mediabox guide through Google. Works like a charm on Ubuntu Intrepid AMD64 and a RV630 (Radeon HD 2600 Pro PCIe)! Actually I was very surprised, as it wouldn't work with FGLRX.

          Also heard the patch will be included in mainline shortly?

          Comment


          • #6
            Open Source drivers for hdmi sound not working for me. I have Gigabyte GA-MA78GM-S2H using integrated graphics. Sound over hdmi with fglrx does work.

            Here is what seems to be relevant parts of xorg.log for the open source driver radeonhd.

            Code:
            (II) RADEONHD: version 1.2.1, built from git branch HDMI-Audio, commit 2fe6021c
            ...
            (--) Chipset RS780 found
            ...
            (**) RADEONHD(0): Option "Audio" "on"
            (**) RADEONHD(0): Option "HDMI" "all"
            (**) RADEONHD(0): Selected ShadowFB.
            (EE) RADEONHD(0): Unknown HDMI Option "all"(II) RADEONHD(0): Unknown card detected: 0x9610:0x1458:0xD000.
            	If - and only if - your card does not work or does not work optimally
            	please contact [email protected] to help rectify this.
            	Use the subject: 0x9610:0x1458:0xD000: <name of board>
            	and *please* describe the problems you are seeing
            	in your message.
            The only other error message in xorg.log using radeonhd is:
            Code:
            (EE) RADEONHD(0): RHDVGASave: VGA FB Offset (0xC0000000) is out of range of the Cards Internal FB Address (0xD0000000)
            Edit: I am not set up to run sudo but I did try /usr/bin/X -logverbose 7 as root. Screen goes black, mouse X appears, but then system hangs. ctrl-alt-bckspace works for kickout. I copied over xorg.log but am not sure it was renewed. If it was it appears to have same message as above.
            Last edited by forum1793; 18 October 2008, 09:37 AM.

            Comment


            • #7
              Did you get the new patch & git code (from the mediabox guide) for the latest GIT driver (it has been updated since a day or two)? That one compiles just fine over here.
              Last edited by StefanHamminga; 18 October 2008, 09:50 AM.

              Comment


              • #8
                OK we'll try again from scratch.
                Delete radeonhd directory.
                Use git clone git://... as one command and not two.
                Code:
                git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-radeonhd
                Copy patch to directory and apply patch.
                Code:
                bash-3.1$ git-apply 0001-HDMI-support-including-Audio.patch
                0001-HDMI-support-including-Audio.patch:1350: trailing whitespace.
                    HdmiVideoInfoFrame(hdmi, RGB, FALSE, 0, 0, 0,
                0001-HDMI-support-including-Audio.patch:1407: trailing whitespace.
                
                0001-HDMI-support-including-Audio.patch:1413: space before tab in indent.
                        case 16: iec |= 0x2; break;
                0001-HDMI-support-including-Audio.patch:1414: space before tab in indent.
                        case 20: iec |= 0x3; break;
                0001-HDMI-support-including-Audio.patch:1415: space before tab in indent.
                        case 24: iec |= 0xb; break;
                warning: squelched 2 whitespace errors
                warning: 7 lines add whitespace errors.
                Code:
                sh autogen.sh
                make
                su
                make install
                This time I did not see the error in xorg.log for the Option HDMI all. Note that the hdmi audio is also not showing up in the radeonhd version line.

                Relevant parts of xorg.conf:

                Code:
                X.Org X Server 1.4.2
                ...
                (II) RADEONHD: version 1.2.3, built from git branch master, commit efaebb70 + changes
                ...
                (**) RADEONHD(0): Option "Audio" "on"
                (**) RADEONHD(0): Option "HDMI" "all"
                (**) RADEONHD(0): Selected ShadowFB.
                (II) RADEONHD(0): Unknown card detected: 0x9610:0x1458:0xD000.
                	If - and only if - your card does not work or does not work optimally
                	please contact [email protected] to help rectify this.
                	Use the subject: 0x9610:0x1458:0xD000: <name of board>
                	and *please* describe the problems you are seeing
                	in your message.
                (--) RADEONHD(0): Detected an RS780 on an unidentified card
                (II) RADEONHD(0): Mapped IO @ 0xfdfe0000 to 0xb7b7a000 (size 0x00010000)
                (II) RADEONHD(0): Getting BIOS copy from legacy VBIOS location
                (II) RADEONHD(0): ATOM BIOS Rom: 
                	SubsystemVendorID: 0x1002 SubsystemID: 0x1002
                	IOBaseAddress: 0xee00
                	Filename: MA78M_S2H_HD
                But still no sound out of hdmi.
                Using slackware 12.1 and kernel 2.6.26.6.

                Edit: But wait, rebooting into 2.6.25.18 does produce sound out of hdmi. Very good. But sound is a noticeably slower than before. I'll try again with the 2.6.26 kernel.
                Edit2: Still not working with 2.6.26.6 but I discovered neither is fglrx. So problem must be with kernel or at least how I compiled it.
                Last edited by forum1793; 18 October 2008, 11:35 AM.

                Comment


                • #9
                  Originally posted by Deathsimple View Post
                  Please leave me a note if this is working or if there are still some problems left.
                  As you can see from above message the patch works for me.

                  But sound is too slow.

                  Comment


                  • #10
                    Originally posted by forum1793 View Post
                    As you can see from above message the patch works for me.

                    But sound is too slow.
                    What kind of audio file are you playing (Sampling rate and bits per sample)?
                    And which player did you use?

                    Audio timing is still a tricky part, i thought i got it working with the last release, but that seems to be still a little bit buggy.

                    Bye,
                    Christian.

                    Comment

                    Working...
                    X