diff mbox

drm/radeon: Use correct value for unknown audio/video latency

Message ID 1405208836-14854-1-git-send-email-stefan.bruens@rwth-aachen.de (mailing list archive)
State New, archived
Headers show

Commit Message

Stefan Brüns July 12, 2014, 11:47 p.m. UTC
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>
---
 drivers/gpu/drm/radeon/dce6_afmt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Alex Deucher July 14, 2014, 3:14 p.m. UTC | #1
On Sat, Jul 12, 2014 at 7:47 PM, Stefan Brüns
<stefan.bruens@rwth-aachen.de> wrote:
> 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>

Applied.  Thanks.

Alex

> ---
>  drivers/gpu/drm/radeon/dce6_afmt.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/dce6_afmt.c b/drivers/gpu/drm/radeon/dce6_afmt.c
> index e0a6e9e..2b14506 100644
> --- a/drivers/gpu/drm/radeon/dce6_afmt.c
> +++ b/drivers/gpu/drm/radeon/dce6_afmt.c
> @@ -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);
>  }
> --
> 1.8.4.5
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox

Patch

diff --git a/drivers/gpu/drm/radeon/dce6_afmt.c b/drivers/gpu/drm/radeon/dce6_afmt.c
index e0a6e9e..2b14506 100644
--- a/drivers/gpu/drm/radeon/dce6_afmt.c
+++ b/drivers/gpu/drm/radeon/dce6_afmt.c
@@ -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);
 }