From: "Rafał Miłecki" <zajec5@gmail.com>
To: dri-devel@lists.freedesktop.org, Dave Airlie <airlied@linux.ie>,
Alex Deucher <alexdeucher@gmail.com>
Subject: [PATCH V2 2/2] drm/radeon: initialize AFMT blocks on DCE6
Date: Thu, 1 Aug 2013 17:29:17 +0200 [thread overview]
Message-ID: <1375370957-21168-2-git-send-email-zajec5@gmail.com> (raw)
In-Reply-To: <1375370957-21168-1-git-send-email-zajec5@gmail.com>
It was succesfully tested on HD7750 (DCE6).
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
---
V2: Update comments, change DCE61 AFMTs amount to 6
---
drivers/gpu/drm/radeon/radeon_display.c | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index 31d9fbe..8da4fc6 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -1267,9 +1267,18 @@ static void radeon_afmt_init(struct radeon_device *rdev)
};
int num_afmt;
- /* DCE4/5 has 6 audio blocks tied to DIG encoders */
- /* DCE4.1 has 2 audio blocks tied to DIG encoders */
- if (ASIC_IS_DCE5(rdev))
+ /*
+ * DCE64 most probably has just 2 AFMTs
+ * DCE61 supports 6 DIG encoders, so should have 6 AFMTs
+ * DCE6 was verified to have 6th AFMT using HD7750
+ * DCE4/5 has 6 audio blocks tied to DIG encoders
+ * DCE4.1 has 2 audio blocks tied to DIG encoders
+ */
+ if (ASIC_IS_DCE64(rdev))
+ num_afmt = 2;
+ else if (ASIC_IS_DCE6(rdev))
+ num_afmt = 6;
+ else if (ASIC_IS_DCE5(rdev))
num_afmt = 6;
else if (ASIC_IS_DCE41(rdev))
num_afmt = 2;
--
1.7.10.4
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
prev parent reply other threads:[~2013-08-01 15:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-01 15:29 [PATCH 1/2] drm/radeon: use loop for initializing AFMT blocks Rafał Miłecki
2013-08-01 15:29 ` Rafał Miłecki [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1375370957-21168-2-git-send-email-zajec5@gmail.com \
--to=zajec5@gmail.com \
--cc=airlied@linux.ie \
--cc=alexdeucher@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox