From patchwork Tue Oct 22 18:40:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 3084461 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B6BB2BF924 for ; Tue, 22 Oct 2013 18:40:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B472620499 for ; Tue, 22 Oct 2013 18:40:51 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id B788620497 for ; Tue, 22 Oct 2013 18:40:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 99833E5EE0 for ; Tue, 22 Oct 2013 11:40:50 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yh0-f53.google.com (mail-yh0-f53.google.com [209.85.213.53]) by gabe.freedesktop.org (Postfix) with ESMTP id 93F8CE6129 for ; Tue, 22 Oct 2013 11:40:37 -0700 (PDT) Received: by mail-yh0-f53.google.com with SMTP id z20so2215886yhz.40 for ; Tue, 22 Oct 2013 11:40:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=2wktsTKQagIHbkr8wrZyvUZ19gS5R5hH5I5Z9Y1ror0=; b=y5FIRM3dHCD2lHxzBIb8mbEnYwMrCdk+jrvWrEriNZlzCpwUAdAXtAm0g/22YkxIp2 +LYO12gG77SmHPQwv18zCWIjCMc3Z4T9aFJyWdFOUuwEWgRgvSw7j62xPzrhl3TBDkMN lACACKzGyUJB2WUdZMFVNuzAfNLqYoMptIR1FVBr1o0wklMmT+mZThJCOQs5OmYugel9 v7Jyf0XpBbo71hpoPuHx1c0mS6FjFBafKDtREnPzYY8MX7hlZ5ah3cpf0tVqXbO/M0h1 ohhKIRxQwPwTpE0x+wbt9TShMWGxC1rzfGipmtvC6RnJpANLyKloryfK9ioRjFt/OVDX 9Auw== X-Received: by 10.236.41.102 with SMTP id g66mr16720151yhb.20.1382467236852; Tue, 22 Oct 2013 11:40:36 -0700 (PDT) Received: from localhost.localdomain (static-74-96-105-49.washdc.fios.verizon.net. [74.96.105.49]) by mx.google.com with ESMTPSA id v22sm38187570yhn.12.2013.10.22.11.40.36 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Tue, 22 Oct 2013 11:40:36 -0700 (PDT) From: Alex Deucher To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/radeon: use sw CTS/N values for audio on DCE4+ Date: Tue, 22 Oct 2013 14:40:30 -0400 Message-Id: <1382467230-8565-1-git-send-email-alexander.deucher@amd.com> X-Mailer: git-send-email 1.8.3.1 Cc: Alex Deucher , stable@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use the driver calculated CTS and N values rather than having hardware generate them. This allows us to use the modeline pixel clock rather than the actual pll clock when setting up the dto for audio. Fixes problems with audio playback rate on certain asics if the pll clock does not match the pixel clock exactly. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/evergreen_hdmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/radeon/evergreen_hdmi.c b/drivers/gpu/drm/radeon/evergreen_hdmi.c index fe1de85..57fcc4b 100644 --- a/drivers/gpu/drm/radeon/evergreen_hdmi.c +++ b/drivers/gpu/drm/radeon/evergreen_hdmi.c @@ -291,6 +291,7 @@ void evergreen_hdmi_setmode(struct drm_encoder *encoder, struct drm_display_mode /* fglrx clears sth in AFMT_AUDIO_PACKET_CONTROL2 here */ WREG32(HDMI_ACR_PACKET_CONTROL + offset, + HDMI_ACR_SOURCE | /* select SW CTS value */ HDMI_ACR_AUTO_SEND); /* allow hw to sent ACR packets when required */ evergreen_hdmi_update_ACR(encoder, mode->clock);