drm/tegra: Fix HDMI audio frequency typo
authorThierry Reding <treding@nvidia.com>
Mon, 16 Dec 2013 09:01:24 +0000 (10:01 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 19 Dec 2013 08:29:54 +0000 (09:29 +0100)
The correct check is for 48 kHz, not 480 kHz. Found by Coverity.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/hdmi.c

index 0cfc94f8d14c1b09dec311a84439cffe5aee4bd3..d8cc81f5de38e33bd7d445c27ec67b9c72a71f58 100644 (file)
@@ -379,7 +379,7 @@ static void tegra_hdmi_setup_audio_fs_tables(struct tegra_hdmi *hdmi)
 
                if (f > 96000)
                        delta = 2;
-               else if (f > 480000)
+               else if (f > 48000)
                        delta = 6;
                else
                        delta = 9;