Mailinglist Archive: radeonhd (185 mails)

< Previous Next >
[radeonhd] Re: [PATCH] HDMI audio support for RV710 and RV730
  • From: Rafał Miłecki <zajec5@xxxxxxxxx>
  • Date: Fri, 18 Dec 2009 21:23:24 +0100
  • Message-id: <b170af450912181223q7cc88570o48cc2fc9ec1e484f@xxxxxxxxxxxxxx>
2009/12/18 Christian König <deathsimple@xxxxxxxxxxx>:
Hi everybody,

I finally figured out what Alex meant with:
<agd5f> Zajec: the block routing and dto clock setup is wrong
<agd5f> sort of

The signal routing depend on the encoder used, not the transmitter.
Since I made it depend on the output id (which represents the
transmitter) it only worked if you got an 1 to 1 mapping of encoders to
transmitters, which is the case in most (if not all) of the mobile and
integrated chipsets, because they got an KLDSKP_LVTMA which is always
mapped to the second transmitter.

But for the RV710, RV730 and probably a lot of other cases, the mapping
is done dynamically in RHDAtomOutputAllocFree and DigAllocFree (I
figured this out just yesterday after buying an RV710 as an xmas present
and playing around with it for a couple of hours).

@Alex: Have I done right this time?

Additionally Andrew Wasielewski found by try&error that you need to set
the first bit in the 0x7604 register to get audio output on this
chipsets. I just have to say a big "Thank you" to this guy, because he
just tested every bit of code I have thrown at him in the last couple of
weeks.

I have no idea what the register 0x7604 is good for, but will try to
find it out in the next couple of days. A patch is attached, tested and
proved to work on both chipsets.

@Rafał and the other people with a working setup:
Could you make sure that this patch didn't harm your audio output in any
way?

@Matthias: I think you can commit it as soon as others reported that it
works fine and doesn't harm their setup.

I will also port it to KMS when my free time allows it, if Alex didn't
release his patches earlier.

That was unfair race :( I planned to play with RV7xx as I'll get such
card on xmas. But you cheated starting earlier :P

Thank you for great work. I'll test this on my cards soon :)

--
Rafał
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx

< Previous Next >
References