We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56e9371 commit 4a49c2bCopy full SHA for 4a49c2b
drivers/gpu/drm/i915/display/intel_audio.c
@@ -212,13 +212,11 @@ static u32 audio_config_hdmi_pixel_clock(const struct intel_crtc_state *crtc_sta
212
static int audio_config_hdmi_get_n(const struct intel_crtc_state *crtc_state,
213
int rate)
214
{
215
- const struct drm_display_mode *adjusted_mode =
216
- &crtc_state->base.adjusted_mode;
217
int i;
218
219
for (i = 0; i < ARRAY_SIZE(hdmi_aud_ncts); i++) {
220
if (rate == hdmi_aud_ncts[i].sample_rate &&
221
- adjusted_mode->crtc_clock == hdmi_aud_ncts[i].clock) {
+ crtc_state->port_clock == hdmi_aud_ncts[i].clock) {
222
return hdmi_aud_ncts[i].n;
223
}
224
0 commit comments