drm/radeon/audio: improve ACR calculation
authorPierre Ossman <pierre@ossman.eu>
Wed, 6 Nov 2013 19:09:08 +0000 (20:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Dec 2013 15:29:28 +0000 (07:29 -0800)
commitf789de214b88dd2f5bbb372625b2e284f8469c4b
tree8bafb15d90d17694a38623d6c318f04edc470ef2
parent9baca2ff1035fbdc7f910a4b6fb34d4bec3f443b
drm/radeon/audio: improve ACR calculation

commit a2098250fbda149cfad9e626afe80abe3b21e574 upstream.

In order to have any realistic chance of calculating proper
ACR values, we need to be able to calculate both N and CTS,
not just CTS. We still aim for the ideal N as specified in
the HDMI spec though.

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>
Cc: Josh Boyer <jwboyer@fedoraproject.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/r600_hdmi.c