Skip to content

Commit 5a400aa

Browse files
catayloxjnikula
authored andcommitted
drm/i915/hdmi: Add HDMI 2.0 audio clock recovery N values
HDMI 2.0 594Mhz modes were incorrectly selecting 25.200Mhz Automatic N value mode instead of HDMI specification values. V2: Fix 88.2 Hz N value Cc: Jani Nikula <jani.nikula@linux.intel.com> Cc: stable@vger.kernel.org Signed-off-by: Clint Taylor <clinton.a.taylor@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/1540493521-1746-2-git-send-email-clinton.a.taylor@intel.com
1 parent aef9f33 commit 5a400aa

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

drivers/gpu/drm/i915/intel_audio.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ static const struct {
144144
/* HDMI N/CTS table */
145145
#define TMDS_297M 297000
146146
#define TMDS_296M 296703
147+
#define TMDS_594M 594000
148+
#define TMDS_593M 593407
149+
147150
static const struct {
148151
int sample_rate;
149152
int clock;
@@ -164,6 +167,20 @@ static const struct {
164167
{ 176400, TMDS_297M, 18816, 247500 },
165168
{ 192000, TMDS_296M, 23296, 281250 },
166169
{ 192000, TMDS_297M, 20480, 247500 },
170+
{ 44100, TMDS_593M, 8918, 937500 },
171+
{ 44100, TMDS_594M, 9408, 990000 },
172+
{ 48000, TMDS_593M, 5824, 562500 },
173+
{ 48000, TMDS_594M, 6144, 594000 },
174+
{ 32000, TMDS_593M, 5824, 843750 },
175+
{ 32000, TMDS_594M, 3072, 445500 },
176+
{ 88200, TMDS_593M, 17836, 937500 },
177+
{ 88200, TMDS_594M, 18816, 990000 },
178+
{ 96000, TMDS_593M, 11648, 562500 },
179+
{ 96000, TMDS_594M, 12288, 594000 },
180+
{ 176400, TMDS_593M, 35672, 937500 },
181+
{ 176400, TMDS_594M, 37632, 990000 },
182+
{ 192000, TMDS_593M, 23296, 562500 },
183+
{ 192000, TMDS_594M, 24576, 594000 },
167184
};
168185

169186
/* get AUD_CONFIG_PIXEL_CLOCK_HDMI_* value for mode */

0 commit comments

Comments
 (0)