drm/radeon: Use correct value for unknown audio/video latency
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Sat, 12 Jul 2014 23:47:14 +0000 (01:47 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Aug 2014 12:53:27 +0000 (08:53 -0400)
Valid values are 1 to 251 for 0 to 500 ms latency, 0 for unknown
and 255 for audio/video unsupported by sink, according to HDMI 1.3 spec.
Also matches Radeon HDA verb 0xf7b documentation.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/dce6_afmt.c

index 0a65dc7e93e7f8ed2fe06b4ccd07d9bfcf9e462c..af936cc09b614e26ac2ea450d207c3a0f3d53458 100644 (file)
@@ -136,13 +136,13 @@ void dce6_afmt_write_latency_fields(struct drm_encoder *encoder,
                        tmp = VIDEO_LIPSYNC(connector->video_latency[1]) |
                                AUDIO_LIPSYNC(connector->audio_latency[1]);
                else
-                       tmp = VIDEO_LIPSYNC(255) | AUDIO_LIPSYNC(255);
+                       tmp = VIDEO_LIPSYNC(0) | AUDIO_LIPSYNC(0);
        } else {
                if (connector->latency_present[0])
                        tmp = VIDEO_LIPSYNC(connector->video_latency[0]) |
                                AUDIO_LIPSYNC(connector->audio_latency[0]);
                else
-                       tmp = VIDEO_LIPSYNC(255) | AUDIO_LIPSYNC(255);
+                       tmp = VIDEO_LIPSYNC(0) | AUDIO_LIPSYNC(0);
        }
        WREG32_ENDPOINT(offset, AZ_F0_CODEC_PIN_CONTROL_RESPONSE_LIPSYNC, tmp);
 }