From: Wu Fengguang <fengguang.wu@intel.com>
To: Keith Packard <keithp@keithp.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Wang Zhenyu <zhenyu.z.wang@intel.com>,
"intel-gfx@lists.freedesktop..."
<intel-gfx@lists.freedesktop.org>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
Chris Wilson <chris@chris-wilson.co.uk>,
Zhao Yakui <yakui.zhao@intel.com>,
"Fu, Michael" <michael.fu@intel.com>,
Ben Skeggs <bskeggs@redhat.com>, James Cloos <cloos@jhcloos.com>,
Christopher White <c.white@pulseforce.com>,
Jeremy Bush <contractfrombelow@gmail.com>,
Paul Menzel <paulepanter@users.sourceforge.net>,
Pierre-Louis Bossart <pierre-louis.bossart@intel.com>
Subject: Re: [PATCH 2/2] drm/i915: pass ELD to HDMI/DP audio driver
Date: Mon, 5 Sep 2011 14:50:42 +0800 [thread overview]
Message-ID: <20110905065042.GB20230@localhost> (raw)
In-Reply-To: <20110905062534.GA20230@localhost>
I'd like to do more cleanups:
> + int aud_cntl_st;
> + int aud_cntrl_st2;
s/aud_cntrl_st2/aud_cntl_st2/
> + if (IS_IVYBRIDGE(connector->dev)) {
> + hdmiw_hdmiedid = GEN7_HDMIW_HDMIEDID_A;
> + aud_cntl_st = GEN7_AUD_CNTRL_ST_A;
> + aud_cntrl_st2 = GEN7_AUD_CNTRL_ST2;
> + } else {
> + hdmiw_hdmiedid = GEN5_HDMIW_HDMIEDID_A;
> + aud_cntl_st = GEN5_AUD_CNTL_ST_A;
> + aud_cntrl_st2 = GEN5_AUD_CNTL_ST2;
> + }
> +
> + i = to_intel_crtc(crtc)->pipe;
> + hdmiw_hdmiedid += i * 0x100;
> + aud_cntl_st += i * 0x100;
> +
> + DRM_DEBUG_DRIVER("ELD on pipe %c\n", pipe_name(i));
[...]
> + len = min_t(uint8_t, eld[2], 21); /* 84 bytes of hw ELD buffer */
> + DRM_DEBUG_DRIVER("ELD size %d\n", len);
Merge the above two DRM_DEBUG_DRIVER() calls into:
+ DRM_DEBUG_DRIVER("writing %d ELD dword(s) on pipe %c\n",
+ len, pipe_name(to_intel_crtc(crtc)->pipe));
> + for (i = 0; i < len; i++)
> + I915_WRITE(hdmiw_hdmiedid, *((uint32_t *)eld + i));
Thanks,
Fengguang
next prev parent reply other threads:[~2011-09-05 6:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-05 6:23 [PATCH 1/2] drm: support routines for HDMI/DP ELD Wu Fengguang
2011-09-05 6:25 ` [PATCH 2/2] drm/i915: pass ELD to HDMI/DP audio driver Wu Fengguang
2011-09-05 6:50 ` Wu Fengguang [this message]
2011-09-05 6:51 ` [PATCH 2/2 v2] " Wu Fengguang
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=20110905065042.GB20230@localhost \
--to=fengguang.wu@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=bskeggs@redhat.com \
--cc=c.white@pulseforce.com \
--cc=chris@chris-wilson.co.uk \
--cc=cloos@jhcloos.com \
--cc=contractfrombelow@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=keithp@keithp.com \
--cc=michael.fu@intel.com \
--cc=paulepanter@users.sourceforge.net \
--cc=pierre-louis.bossart@intel.com \
--cc=yakui.zhao@intel.com \
--cc=zhenyu.z.wang@intel.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.