On Sunday July 26 at 16:04, Christian König wrote:
Mhm, send me a Xorg.log generated with fglrx, the driver should note the pixel clock it uses for a given resolution (this should be either 74.25 or 148.5 mHz).
It's attached, looks like it's 148.5 mHz. Yes, 148.5 mHz, but that's odd. When i look at your dumps of the 0x0518 register the value fglrx uses is 0x00714BE8 (7425000 decimal). It's just a guess, but i've attached a patch which writes (pixel clock)/2 into
Am Samstag, den 01.08.2009, 16:17 -0500 schrieb Samir Unni: this register for your chipset, please try it and check if it affects audio playback in any way, also check if mplayer is playing to fast/to slow with this change.
# complete alsa engine shutdown, should give you no sound sudo ./rhd_dump -w 0x7300 0x0 1:00.0
Yes, the sound stopped.
# the value radeonhd uses, should start sound immediately sudo ./rhd_dump -w 0x7300 0x810000F0 1:00.0
# the value fglrx uses, should start it again if radeonhd value doesn't work sudo ./rhd_dump -w 0x7300 0x8F1000F0 1:00.0
Both of these values successfully restarted the sound. Good, so the alsa interface isn't the source of the problem.
# disable hdmi transmitter: no sound and wrong colours sudo ./rhd_dump -w 0x7400 0x00000000 1:00.0
Actually, this had no effect on either the sound or the colors.
# enable hdmi transmitter: again sound and right colors sudo ./rhd_dump -w 0x7400 0x00000110 1:00.0
Neither did this.
# turn of audio packets: should give you no sound sudo ./rhd_dump -w 0x7408 0x00020010 1:00.0
# turn on audio packets: should give you sound again sudo ./rhd_dump -w 0x7408 0x00020011 1:00.0
Same here, neither had any impact. WTF? Either ATI changes quite everything i am used to, or we are missing something here. Maybe they changed the registers to be buffered, normally each write to the hdmi engine results in an instant visibility of the change, but there are other registers were you need to set a special "make this change active" bit to commit the register writes to the hardware. Thanks for all the testing, but i am really running out of ideas here.
Bye, Christian.