drm/radeon/audio: correct ACR table
authorPierre Ossman <pierre@ossman.eu>
Wed, 6 Nov 2013 19:00:32 +0000 (20:00 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 Nov 2013 18:05:27 +0000 (13:05 -0500)
commit3e71985f2439d8c4090dc2820e497e6f3d72dcff
tree7b22a7d660c0d1940aad284ee283d862f80caab2
parente31fadd372e9e0d00f25b000c41fa63531ca488e
drm/radeon/audio: correct ACR table

The values were taken from the HDMI spec, but they assumed
exact x/1.001 clocks. Since we round the clocks, we also need
to calculate different N and CTS values.

Note that the N for 25.2/1.001 MHz at 44.1 kHz audio is out of
spec. Hopefully this mode is rarely used and/or HDMI sinks
tolerate overly large values of N.

bug:
https://bugs.freedesktop.org/show_bug.cgi?id=69675

Signed-off-by: Pierre Ossman <pierre@ossman.eu>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/r600_hdmi.c