From: "Christian König" <deathsimple@vodafone.de>
To: "Rafał Miłecki" <zajec5@gmail.com>
Cc: dri-devel@lists.sourceforge.net
Subject: Re: [PATCH 2/6] drm/radeon/kms: clean assigning HDMI blocks to encoders
Date: Sat, 06 Mar 2010 17:26:41 +0100 [thread overview]
Message-ID: <1267892801.2409.92.camel@zweiundvierzig> (raw)
In-Reply-To: <1267880618-9909-3-git-send-email-zajec5@gmail.com>
Am Samstag, den 06.03.2010, 14:03 +0100 schrieb Rafał Miłecki:
> + struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv;
> int base_rate = 48000;
>
> + if (!dig) {
> + dev_err(rdev->dev, "Setting audio clock on non-dig encoder\n");
> + return;
> + }
> +
...
> - switch (r600_audio_tmds_index(encoder)) {
> + switch (dig->dig_encoder) {
> case 0:
> WREG32(R600_AUDIO_PLL1_MUL, base_rate*50);
> WREG32(R600_AUDIO_PLL1_DIV, clock*100);
....
> WREG32(R600_AUDIO_PLL2_DIV, clock*100);
> WREG32(R600_AUDIO_CLK_SRCSEL, 1);
> break;
> + default:
> + dev_err(rdev->dev, "Unsupported DIG on encoder 0x%02X\n",
> + radeon_encoder->encoder_id);
> + return;
I know that I made the suggestion to code it like this, but now I'm
thinking that we should make it depend on the hdmi_offset instead of the
dig_encoder number. First I'm not sure that radeon_encoder->enc_priv
will always point to a radeon_encoder_atom_dig structure, and second I
think the possibility of rerouting the signals on pre DCE3 makes this
decision depend on the wrong index.
Currently checking this out on my hardware, so stay tuned for an update.
Regards,
Christian.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel
next prev parent reply other threads:[~2010-03-06 16:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1267880618-9909-1-git-send-email-zajec5@gmail.com>
2010-03-06 13:03 ` [PATCH 2/6] drm/radeon/kms: clean assigning HDMI blocks to encoders Rafał Miłecki
2010-03-06 16:26 ` Christian König [this message]
2010-03-06 16:48 ` Rafał Miłecki
2010-03-07 20:59 ` Christian König
2010-03-06 13:03 ` [PATCH 3/6] drm/radeon/kms: add HDMI code for pre-DCE3 R6xx GPUs Rafał Miłecki
2010-03-06 16:46 ` [PATCH 0/6] HDMI clean & DCE32 support Mike Lothian
2010-03-06 16:49 ` Rafał Miłecki
2010-03-06 17:14 ` Mike Lothian
2010-03-19 0:14 ` Mike Lothian
2010-03-19 0:36 ` Dave Airlie
2010-03-20 16:25 ` Christian König
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=1267892801.2409.92.camel@zweiundvierzig \
--to=deathsimple@vodafone.de \
--cc=dri-devel@lists.sourceforge.net \
--cc=zajec5@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.