dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: John Sledge <john_sledget@yahoo.com>
To: "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org>
Subject: DRM Inquiry DPCD
Date: Wed, 23 May 2018 02:42:53 +0000 (UTC)	[thread overview]
Message-ID: <1276988254.133081.1527043373244@mail.yahoo.com> (raw)
In-Reply-To: 1276988254.133081.1527043373244.ref@mail.yahoo.com


[-- Attachment #1.1: Type: text/plain, Size: 1216 bytes --]

Hi ,

I’ve been doing some PTN3460 programming under Linux and I have some questions regarding on setting the brightness level via DisplayPort Native Aux.
The display device with PTN3460 is connected in DP (display port) to my computer. I’m currently looking into the DRM (Direct Rendering Manager) a subsystem of the Linux kernel. It has a methods drm_dp_dpcd_readb, drm_dp_dpcd_read and drm_dp_dpcd_write. 
Do you have any suggestions or advice how to use the kernel driver in DRM in regards to how to implement the method drm_dp_dpcd_readb for example? I couldn't not find any test tool examples that implement it.


My goal is to create an application that would send/read bytes (brightness level) to address 0x722 or 0x723.


Namedrm_dp_dpcd_readb — read a single byte from the DPCDSynopsisssize_t drm_dp_dpcd_readb (    struct drm_dp_aux * aux,
               unsigned int offset,               u8 * valuep);
Argumentsaux - DisplayPort AUX channeloffset - address of the register to readvaluep - location where the value of the register will be storedDescriptionReturns the number of bytes transferred (1) on success, or a negative error code on failure.
Regards,John


[-- Attachment #1.2: Type: text/html, Size: 1925 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

       reply	other threads:[~2018-05-23  2:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1276988254.133081.1527043373244.ref@mail.yahoo.com>
2018-05-23  2:42 ` John Sledge [this message]
2018-05-23  6:41   ` DRM Inquiry DPCD Jani Nikula

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=1276988254.133081.1527043373244@mail.yahoo.com \
    --to=john_sledget@yahoo.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;
as well as URLs for NNTP newsgroup(s).