From patchwork Thu Apr 18 15:35:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 2461421 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id CB07DDF2E5 for ; Thu, 18 Apr 2013 15:52:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A682DE6452 for ; Thu, 18 Apr 2013 08:52:46 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qc0-f180.google.com (mail-qc0-f180.google.com [209.85.216.180]) by gabe.freedesktop.org (Postfix) with ESMTP id 9D02CE64D7 for ; Thu, 18 Apr 2013 08:35:51 -0700 (PDT) Received: by mail-qc0-f180.google.com with SMTP id b40so1429204qcq.11 for ; Thu, 18 Apr 2013 08:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=ASqTJHtEGCxlKA0QyjFXuTovrC/EJuu3ydoVX6m08zA=; b=tkqJIytVDp2nNDUL+rTFVDq95Tz9fbEVjb3XaTC1wonnl5ycG8sK1ZR5QB56hKu/lt Q5bT3mF1olkk8MMWKZ7xUDl7oGUmd1V0hJfZZpTQ9XRd0a9DHpOafdYWbpUoOfqEnnOg Ns2pNAZZPdCwKRtaVKyeBnBObNkWvL759OleQLKHbNdWUR1f9Smn+arz6PRrA8i5/fYK SEiv3izW1j5PuCG1zDc/wbrvbmLVlPTgpW4mbZaTdmsD0oE4fnIS4uI5o7mU/FHX5we2 pLninYgi4QYRpK8aAge/6jN9htmR7jd4mtDQ/ATaso+hj7B/6gTLOdxZL4BYoNYO8uEX z5Wg== X-Received: by 10.49.25.81 with SMTP id a17mr11920557qeg.58.1366299351207; Thu, 18 Apr 2013 08:35:51 -0700 (PDT) Received: from localhost.localdomain (static-74-96-105-49.washdc.fios.verizon.net. [74.96.105.49]) by mx.google.com with ESMTPS id z2sm13528802qad.4.2013.04.18.08.35.50 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 18 Apr 2013 08:35:50 -0700 (PDT) From: alexdeucher@gmail.com To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/3] drm/radeon: clean up audio supported check Date: Thu, 18 Apr 2013 11:35:41 -0400 Message-Id: <1366299343-28669-2-git-send-email-alexdeucher@gmail.com> X-Mailer: git-send-email 1.7.7.5 In-Reply-To: <1366299343-28669-1-git-send-email-alexdeucher@gmail.com> References: <1366299343-28669-1-git-send-email-alexdeucher@gmail.com> Cc: Alex Deucher 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 From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600_audio.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_audio.c b/drivers/gpu/drm/radeon/r600_audio.c index cb03fe2..72561e4 100644 --- a/drivers/gpu/drm/radeon/r600_audio.c +++ b/drivers/gpu/drm/radeon/r600_audio.c @@ -57,10 +57,7 @@ static bool radeon_dig_encoder(struct drm_encoder *encoder) */ static int r600_audio_chipset_supported(struct radeon_device *rdev) { - return (rdev->family >= CHIP_R600 && !ASIC_IS_DCE6(rdev)) - || rdev->family == CHIP_RS600 - || rdev->family == CHIP_RS690 - || rdev->family == CHIP_RS740; + return ASIC_IS_DCE2(rdev) && !ASIC_IS_DCE6(rdev); } struct r600_audio r600_audio_status(struct radeon_device *rdev)