[Bug 46713] HDMI audio played back at a wrong rate

2016-06-15 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

Christian König  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #32 from Christian König  ---
Any objections closing this four year old bug report now?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 46713] HDMI audio played back at a wrong rate

2012-08-24 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #31 from Tvrtko Ursulin  2012-08-24 
13:46:28 UTC ---
Just testing with 3.6.0-rc3+ from today's GIT and I can reproduce some sort of
sound corruption depending on the video output resolution.

For example, 1360x768 and audio plays fine, while 1366x768 and it is bad.

avivotool register dump says this is the difference between good and bad setup:

-EVERGREEN_AUDIO_PLL1_DIV   000d0bd8
+EVERGREEN_AUDIO_PLL1_DIV   000d1ae2

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-08-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #31 from Tvrtko Ursulin tvrtko.ursu...@onelan.co.uk 2012-08-24 
13:46:28 UTC ---
Just testing with 3.6.0-rc3+ from today's GIT and I can reproduce some sort of
sound corruption depending on the video output resolution.

For example, 1360x768 and audio plays fine, while 1366x768 and it is bad.

avivotool register dump says this is the difference between good and bad setup:

-EVERGREEN_AUDIO_PLL1_DIV   000d0bd8
+EVERGREEN_AUDIO_PLL1_DIV   000d1ae2

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-06-09 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #29 from Christian K?nig  2012-06-09 
08:33:50 PDT ---
Yeah, the audio rate is controlled by the last output changed.

We should switch to another output if the output driving the audio signal is
turned off.

It's on the todo list.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-06-09 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #28 from Vincenzov  2012-06-09 08:11:05 
PDT ---
kernel 3.5.0-rc2 audio workgood.
i have 2 monitor hdmi, after I changed the initial resolution of the monitor
works fine 2.
example

1 monitor 1920 x 1080 works
2 monitor 1920 x 1080 works.

after i turn off monitor 1, audio monitor 2 slow.
configure monitor 2 and after all audio works good 1 & 2.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-06-09 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #30 from Vincenzov  2012-06-09 08:38:39 
UTC ---
thanks Christian K?nig and Rafa? Mi?ecki for this work.
Sorry my english is bad, i speak only italian :-).

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-06-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #28 from Vincenzov vincenzo...@hotmail.com 2012-06-09 08:11:05 
PDT ---
kernel 3.5.0-rc2 audio workgood.
i have 2 monitor hdmi, after I changed the initial resolution of the monitor
works fine 2.
example

1 monitor 1920 x 1080 works
2 monitor 1920 x 1080 works.

after i turn off monitor 1, audio monitor 2 slow.
configure monitor 2 and after all audio works good 1  2.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-06-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #29 from Christian König deathsim...@vodafone.de 2012-06-09 
08:33:50 PDT ---
Yeah, the audio rate is controlled by the last output changed.

We should switch to another output if the output driving the audio signal is
turned off.

It's on the todo list.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-06-03 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #27 from Vincenzov  2012-06-03 09:24:50 
PDT ---
hi , i have compiled kernel 3.5-rc1 but radeon 5450 audio slow.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-06-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #27 from Vincenzov vincenzo...@hotmail.com 2012-06-03 09:24:50 
PDT ---
hi , i have compiled kernel 3.5-rc1 but radeon 5450 audio slow.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-04-07 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #25 from Vincenzov  2012-04-07 09:51:19 
PDT ---
Hi
i can't patch a kernel 3.4.0-rc1
i can't patch a kernel 3.3.0
:-(
error radeon display

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-04-07 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #26 from Vincenzov  2012-04-07 11:16:54 
UTC ---
Error when compiling.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-04-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #26 from Vincenzov vincenzo...@hotmail.com 2012-04-07 11:16:54 
UTC ---
Error when compiling.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-04-04 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #24 from Alex Deucher  2012-04-04 08:50:44 PDT 
---
Please see:
http://lists.freedesktop.org/archives/dri-devel/2012-March/020717.html
http://lists.freedesktop.org/archives/dri-devel/2012-March/020855.html
http://lists.freedesktop.org/archives/dri-devel/2012-March/020857.html
http://people.freedesktop.org/~agd5f/0001-WIP-port-of-hdmi-dp-audio-code-to-newer-kernel.patch

As per the comments in the last patch:

+/* Express [24MHz / target pixel clock] as an exact rational
+ * number (coefficient of two integer numbers.  DCCG_AUDIO_DTOx_PHASE
+ * is the numerator, DCCG_AUDIO_DTOx_MODULE is the denominator
+ */

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-04-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #24 from Alex Deucher ag...@yahoo.com 2012-04-04 08:50:44 PDT ---
Please see:
http://lists.freedesktop.org/archives/dri-devel/2012-March/020717.html
http://lists.freedesktop.org/archives/dri-devel/2012-March/020855.html
http://lists.freedesktop.org/archives/dri-devel/2012-March/020857.html
http://people.freedesktop.org/~agd5f/0001-WIP-port-of-hdmi-dp-audio-code-to-newer-kernel.patch

As per the comments in the last patch:

+/* Express [24MHz / target pixel clock] as an exact rational
+ * number (coefficient of two integer numbers.  DCCG_AUDIO_DTOx_PHASE
+ * is the numerator, DCCG_AUDIO_DTOx_MODULE is the denominator
+ */

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-23 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #23 from Vincenzov  2012-03-23 11:50:50 
PDT ---
sudo avivotool regset 0x05b0 0x00271000


works good whit 1920 x 1080

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-23 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #22 from Vincenzov  2012-03-23 11:24:09 
PDT ---
vincenzo at AthlonII-260:~$ sudo avivotool regset 0x05b0 0x00138800
OLD: 0x05b0 (05b0)  0x00075300 (48)
NEW: 0x05b0 (05b0)  0x00138800 (128)

work only 1280x720

slow with 1920 x 1080

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-23 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #21 from Vincenzov  2012-03-23 11:00:19 
PDT ---
ok
1280x720 radeon 5450 works

avivotool regset 0x05b0 0x00138800

works good

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-23 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #20 from Vincenzov  2012-03-23 10:36:52 
PDT ---
Hi, i have same problem hdmi audio slow. Radeon 5450.
But dual screen hdmi+crt 1920 x 1080 audio works fine.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #20 from Vincenzov vincenzo...@hotmail.com 2012-03-23 10:36:52 
PDT ---
Hi, i have same problem hdmi audio slow. Radeon 5450.
But dual screen hdmi+crt 1920 x 1080 audio works fine.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #21 from Vincenzov vincenzo...@hotmail.com 2012-03-23 11:00:19 
PDT ---
ok
1280x720 radeon 5450 works

avivotool regset 0x05b0 0x00138800

works good

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #22 from Vincenzov vincenzo...@hotmail.com 2012-03-23 11:24:09 
PDT ---
vincenzo@AthlonII-260:~$ sudo avivotool regset 0x05b0 0x00138800
OLD: 0x05b0 (05b0)  0x00075300 (48)
NEW: 0x05b0 (05b0)  0x00138800 (128)

work only 1280x720

slow with 1920 x 1080

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #23 from Vincenzov vincenzo...@hotmail.com 2012-03-23 11:50:50 
PDT ---
sudo avivotool regset 0x05b0 0x00271000


works good whit 1920 x 1080

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

Tvrtko Ursulin  changed:

   What|Removed |Added

 Status|ASSIGNED|NEW

--- Comment #19 from Tvrtko Ursulin  2012-03-20 
08:57:42 PDT ---
(In reply to comment #17)
> If you wish, you can try switching to radeon and:
> 1) Start playback
> 2) Make sure speed is still wrong
> 3) Execute: "avivotool regset 0x05b0 0x000ea600"
> 4) Execute: "avivotool regset 0x05bc 0x0072"
> 
> Does it help?

Unfortunately not. First line speeds it up (way to much) and the second one
brings it down into too slow territory again.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

Tvrtko Ursulin tvrtko.ursu...@onelan.co.uk changed:

   What|Removed |Added

 Status|ASSIGNED|NEW

--- Comment #19 from Tvrtko Ursulin tvrtko.ursu...@onelan.co.uk 2012-03-20 
08:57:42 PDT ---
(In reply to comment #17)
 If you wish, you can try switching to radeon and:
 1) Start playback
 2) Make sure speed is still wrong
 3) Execute: avivotool regset 0x05b0 0x000ea600
 4) Execute: avivotool regset 0x05bc 0x0072
 
 Does it help?

Unfortunately not. First line speeds it up (way to much) and the second one
brings it down into too slow territory again.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-14 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

Christian K?nig  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||deathsimple at vodafone.de

--- Comment #18 from Christian K?nig  2012-03-14 
08:09:27 PDT ---
Ok, I will try to get you the documentation for the PLL regs, they are not DRM
or IP related. So there is a slightly chance that we can release them.

Christian.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

Christian König deathsim...@vodafone.de changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||deathsim...@vodafone.de

--- Comment #18 from Christian König deathsim...@vodafone.de 2012-03-14 
08:09:27 PDT ---
Ok, I will try to get you the documentation for the PLL regs, they are not DRM
or IP related. So there is a slightly chance that we can release them.

Christian.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-13 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #17 from Rafa? Mi?ecki  2012-03-13 12:05:38 
PDT ---
If you wish, you can try switching to radeon and:
1) Start playback
2) Make sure speed is still wrong
3) Execute: "avivotool regset 0x05b0 0x000ea600"
4) Execute: "avivotool regset 0x05bc 0x0072"

Does it help?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-13 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #16 from Rafa? Mi?ecki  2012-03-13 12:04:19 
PDT ---
Tvrtko: thanks a lot for your effort and dumps coming from fglrx.

What I can say now: it seems fglrx is using the same registers
(EVERGREEN_AUDIO_PLL1_MUL and EVERGREEN_AUDIO_PLL1_DIV) for your card.

However:
1) radeon uses 480'000 for MUL
2) fglrx uses 960'000 for MUL

On the other hand fglrx uses 0x72 instead of 0x71 for EVERGREEN_AUDIO_PLL1_UNK.
Maybe that 0x2 is some DIV? Maybe it tells GPU to take 960'000 and divide it by
2?

I've to investigate meaning of the register, but you gave me a track to follow,
thanks a lot for your effors! I'll take a look on that after my vacations (next
week).

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #16 from Rafał Miłecki zaj...@gmail.com 2012-03-13 12:04:19 PDT 
---
Tvrtko: thanks a lot for your effort and dumps coming from fglrx.

What I can say now: it seems fglrx is using the same registers
(EVERGREEN_AUDIO_PLL1_MUL and EVERGREEN_AUDIO_PLL1_DIV) for your card.

However:
1) radeon uses 480'000 for MUL
2) fglrx uses 960'000 for MUL

On the other hand fglrx uses 0x72 instead of 0x71 for EVERGREEN_AUDIO_PLL1_UNK.
Maybe that 0x2 is some DIV? Maybe it tells GPU to take 960'000 and divide it by
2?

I've to investigate meaning of the register, but you gave me a track to follow,
thanks a lot for your effors! I'll take a look on that after my vacations (next
week).

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #17 from Rafał Miłecki zaj...@gmail.com 2012-03-13 12:05:38 PDT 
---
If you wish, you can try switching to radeon and:
1) Start playback
2) Make sure speed is still wrong
3) Execute: avivotool regset 0x05b0 0x000ea600
4) Execute: avivotool regset 0x05bc 0x0072

Does it help?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-12 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #15 from Tvrtko Ursulin  2012-03-12 
04:28:27 PDT ---
Created attachment 58307
  --> https://bugs.freedesktop.org/attachment.cgi?id=58307
avivotool register dump under fglrx with non-existant LVDS output turned off

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-12 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #14 from Tvrtko Ursulin  2012-03-12 
04:27:51 PDT ---
Created attachment 58306
  --> https://bugs.freedesktop.org/attachment.cgi?id=58306
avivotool register dump under fglrx

I've managed to get fglrx running and initially playback speed was fine but
audio quite distorted (hard to describe). I've noticed in the output a mention
of 1024x768 output resolution on the LVDS connector which was unexpected, since
the motherboard in question only has HDMI and VGA outputs. I disabled LVDS with
xranrd and then audio was perfect. I will attach that register dump as well.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #14 from Tvrtko Ursulin tvrtko.ursu...@onelan.co.uk 2012-03-12 
04:27:51 PDT ---
Created attachment 58306
  -- https://bugs.freedesktop.org/attachment.cgi?id=58306
avivotool register dump under fglrx

I've managed to get fglrx running and initially playback speed was fine but
audio quite distorted (hard to describe). I've noticed in the output a mention
of 1024x768 output resolution on the LVDS connector which was unexpected, since
the motherboard in question only has HDMI and VGA outputs. I disabled LVDS with
xranrd and then audio was perfect. I will attach that register dump as well.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #15 from Tvrtko Ursulin tvrtko.ursu...@onelan.co.uk 2012-03-12 
04:28:27 PDT ---
Created attachment 58307
  -- https://bugs.freedesktop.org/attachment.cgi?id=58307
avivotool register dump under fglrx with non-existant LVDS output turned off

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-09 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #13 from Rafa? Mi?ecki  2012-03-09 03:04:03 
PST ---
I'm afraid I can not do anything without dump from fglrx :( There are 4 clocks
related registers we are aware of, but I don't know how else we can try to
program them. There may be also some other clock registers. I'm afraid only
dump from fglrx can give us some hints and I can't get that info from my card,
since it's working pretty well.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-09 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #12 from Tvrtko Ursulin  2012-03-09 
01:50:36 PST ---
(In reply to comment #11)
> (In reply to comment #5)
> > Monitor is Dell 2408WFP in case it matters.
> 
> Are you using 1900x1200 resolution? Can you try some smaller one? Does it 
> help?

It changes the error:

1920x1200: 4m20s = 1.53x too slow
1280x1024: 3m2s = 1.07x too slow
1024x768: 1m49s = 1.55x too fast
800x600: 1m7s = 2.52x too fast

Sound also comes with various distortions in each test.

Is this enough of a hint on what is going wrong or you would still like me to
test with fglrx? It may take some time to set it up since I have no experience
with it.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-09 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #11 from Rafa? Mi?ecki  2012-03-09 01:29:31 
PST ---
(In reply to comment #5)
> Monitor is Dell 2408WFP in case it matters.

Are you using 1900x1200 resolution? Can you try some smaller one? Does it help?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-09 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #10 from Rafa? Mi?ecki  2012-03-09 01:27:16 
PST ---
Ahh, sorry, I didn't understand your first problem description you posted in
this bug report. I though the playback speed is alright, just the sampling rate
used is incorrect.

The problem most probably lays in audio clocks. Values used by radeon seem to
be:
EVERGREEN_AUDIO_PLL1_MUL00075300
EVERGREEN_AUDIO_PLL1_DIV00177fa0
EVERGREEN_AUDIO_PLL1_UNK0071

Do you have fglrx installed? Is this possible for you to switch to the fglrx
for a moment and do similar dump (using avivotool) while playing audio with it?
To make debugging quicker: can you also dump "avivotool regsrange 0x500 0x600"
just in case fglrx uses some other registers?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-09 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #9 from Tvrtko Ursulin  2012-03-09 
01:18:51 PST ---
Created attachment 58223
  --> https://bugs.freedesktop.org/attachment.cgi?id=58223
avivotool register dump while 44100 sample was playing

Unfortunately playback rate is still wrong. I made another register dump while
I was playing a 44100Hz wave file directly to the HDMI device. This file is
2m49s long, while playing it over HDMI takes 4m20s. Which gives us the same
apparent 28665Hz playback rate as originally observed.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #9 from Tvrtko Ursulin tvrtko.ursu...@onelan.co.uk 2012-03-09 
01:18:51 PST ---
Created attachment 58223
  -- https://bugs.freedesktop.org/attachment.cgi?id=58223
avivotool register dump while 44100 sample was playing

Unfortunately playback rate is still wrong. I made another register dump while
I was playing a 44100Hz wave file directly to the HDMI device. This file is
2m49s long, while playing it over HDMI takes 4m20s. Which gives us the same
apparent 28665Hz playback rate as originally observed.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #10 from Rafał Miłecki zaj...@gmail.com 2012-03-09 01:27:16 PST 
---
Ahh, sorry, I didn't understand your first problem description you posted in
this bug report. I though the playback speed is alright, just the sampling rate
used is incorrect.

The problem most probably lays in audio clocks. Values used by radeon seem to
be:
EVERGREEN_AUDIO_PLL1_MUL00075300
EVERGREEN_AUDIO_PLL1_DIV00177fa0
EVERGREEN_AUDIO_PLL1_UNK0071

Do you have fglrx installed? Is this possible for you to switch to the fglrx
for a moment and do similar dump (using avivotool) while playing audio with it?
To make debugging quicker: can you also dump avivotool regsrange 0x500 0x600
just in case fglrx uses some other registers?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #11 from Rafał Miłecki zaj...@gmail.com 2012-03-09 01:29:31 PST 
---
(In reply to comment #5)
 Monitor is Dell 2408WFP in case it matters.

Are you using 1900x1200 resolution? Can you try some smaller one? Does it help?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #12 from Tvrtko Ursulin tvrtko.ursu...@onelan.co.uk 2012-03-09 
01:50:36 PST ---
(In reply to comment #11)
 (In reply to comment #5)
  Monitor is Dell 2408WFP in case it matters.
 
 Are you using 1900x1200 resolution? Can you try some smaller one? Does it 
 help?

It changes the error:

1920x1200: 4m20s = 1.53x too slow
1280x1024: 3m2s = 1.07x too slow
1024x768: 1m49s = 1.55x too fast
800x600: 1m7s = 2.52x too fast

Sound also comes with various distortions in each test.

Is this enough of a hint on what is going wrong or you would still like me to
test with fglrx? It may take some time to set it up since I have no experience
with it.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #13 from Rafał Miłecki zaj...@gmail.com 2012-03-09 03:04:03 PST 
---
I'm afraid I can not do anything without dump from fglrx :( There are 4 clocks
related registers we are aware of, but I don't know how else we can try to
program them. There may be also some other clock registers. I'm afraid only
dump from fglrx can give us some hints and I can't get that info from my card,
since it's working pretty well.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-08 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #8 from Rafa? Mi?ecki  2012-03-08 13:27:29 UTC 
---
Created attachment 58209
  --> https://bugs.freedesktop.org/attachment.cgi?id=58209
drm/radeon/kms/audio: read correct regs on Evergreen

I guess this patch can fix the issue.

My problem is that I still don't know how much Evergreen is different from
older cards. I still can't take a decision if it's worth splitting HDMI/audio
code into R600 vs. Evergreen or not...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-08 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #7 from Tvrtko Ursulin  2012-03-08 
02:19:26 PST ---
Just to clarify, it is possible I was playing back at 48kHz when collecting the
register dump. I was trying both 44.1kHz and 48kHz, the latter just to make
sure my monitor is not mishandling the former, but in both cases heard and
observed playback rate was wrong.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-08 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #6 from Rafa? Mi?ecki  2012-03-08 02:10:48 PST 
---
7d040200 (33554432)
This register is 0x7c30 + R600_HDMI_IEC60958_1. AFAWK value 0x0200 means
48000 rate. I've to understand how driver handles rates.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #6 from Rafał Miłecki zaj...@gmail.com 2012-03-08 02:10:48 PST ---
7d040200 (33554432)
This register is 0x7c30 + R600_HDMI_IEC60958_1. AFAWK value 0x0200 means
48000 rate. I've to understand how driver handles rates.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #7 from Tvrtko Ursulin tvrtko.ursu...@onelan.co.uk 2012-03-08 
02:19:26 PST ---
Just to clarify, it is possible I was playing back at 48kHz when collecting the
register dump. I was trying both 44.1kHz and 48kHz, the latter just to make
sure my monitor is not mishandling the former, but in both cases heard and
observed playback rate was wrong.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-03-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #8 from Rafał Miłecki zaj...@gmail.com 2012-03-08 13:27:29 UTC ---
Created attachment 58209
  -- https://bugs.freedesktop.org/attachment.cgi?id=58209
drm/radeon/kms/audio: read correct regs on Evergreen

I guess this patch can fix the issue.

My problem is that I still don't know how much Evergreen is different from
older cards. I still can't take a decision if it's worth splitting HDMI/audio
code into R600 vs. Evergreen or not...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-02-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #5 from Tvrtko Ursulin  2012-02-28 
08:00:21 PST ---
Monitor is Dell 2408WFP in case it matters.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-02-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #4 from Tvrtko Ursulin  2012-02-28 
05:33:12 PST ---
It's not that in my case since the motherboard I am using doesn't even have
DVI. It has VGA and HDMI, with only HDMI connected.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-02-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

Tom Gundersen  changed:

   What|Removed |Added

 CC||teg at jklm.no

--- Comment #3 from Tom Gundersen  2012-02-28 05:30:28 PST ---
I have experienced a possibly similar issue, I could only reproduce it in the
following scenario, so maybe this can be another data point:

A DVI output and a HDMI output are connected to the same graphics card. If
their resolutions are different the pitch is wrong (the more different the
resolutions the more wrong it is). However, if I unplug the DVI before booting
the machine, or set the HDMI to the same resolution as the DVI the audio is
fine.

I don't have the setup at the moment to verify that we are seeing the same bug,
in which case I apologise for the noise.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-02-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #2 from Tvrtko Ursulin  2012-02-28 
04:16:05 PST ---
Created attachment 57759
  --> https://bugs.freedesktop.org/attachment.cgi?id=57759
"avivotool regs hdmi" output while audio was playing

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-02-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #1 from Rafa? Mi?ecki  2012-02-28 03:41:41 PST 
---
Hi Tvrtko,

Can you install rateontool (avivotool) from git master, and provide output from
it?

Installation:
git clone git://people.freedesktop.org/~airlied/radeontool
cd radeontool
./autogen.sh && make && sudo make install

Grabbing regs dump:
[start playing your audio over HDMI]
avivotool regs hdmi

You can easily save output to the file by using
avivotool regs hdmi > dump.txt

Please provide requested dump.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


[Bug 46713] HDMI audio played back at a wrong rate

2012-02-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #1 from Rafał Miłecki zaj...@gmail.com 2012-02-28 03:41:41 PST ---
Hi Tvrtko,

Can you install rateontool (avivotool) from git master, and provide output from
it?

Installation:
git clone git://people.freedesktop.org/~airlied/radeontool
cd radeontool
./autogen.sh  make  sudo make install

Grabbing regs dump:
[start playing your audio over HDMI]
avivotool regs hdmi

You can easily save output to the file by using
avivotool regs hdmi  dump.txt

Please provide requested dump.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-02-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

Tom Gundersen t...@jklm.no changed:

   What|Removed |Added

 CC||t...@jklm.no

--- Comment #3 from Tom Gundersen t...@jklm.no 2012-02-28 05:30:28 PST ---
I have experienced a possibly similar issue, I could only reproduce it in the
following scenario, so maybe this can be another data point:

A DVI output and a HDMI output are connected to the same graphics card. If
their resolutions are different the pitch is wrong (the more different the
resolutions the more wrong it is). However, if I unplug the DVI before booting
the machine, or set the HDMI to the same resolution as the DVI the audio is
fine.

I don't have the setup at the moment to verify that we are seeing the same bug,
in which case I apologise for the noise.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-02-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #4 from Tvrtko Ursulin tvrtko.ursu...@onelan.co.uk 2012-02-28 
05:33:12 PST ---
It's not that in my case since the motherboard I am using doesn't even have
DVI. It has VGA and HDMI, with only HDMI connected.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 46713] HDMI audio played back at a wrong rate

2012-02-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713

--- Comment #5 from Tvrtko Ursulin tvrtko.ursu...@onelan.co.uk 2012-02-28 
08:00:21 PST ---
Monitor is Dell 2408WFP in case it matters.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel