diff options
author | Koen Kooi <koen@openembedded.org> | 2009-06-10 19:46:52 +0200 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-06-10 19:46:52 +0200 |
commit | c34afca7ebd0868fa78ded64c5cd2fd53b4d78bc (patch) | |
tree | a19914c937408dad038c1b26ba8c47d4a4d2e745 /recipes/libdlo/kernel-module-udlfb/udlfb.h | |
parent | d302cb3796aea6f77e3a32ae2e5d6c807ddbbcd0 (diff) |
kernel-module-udlfb: update to 0.2.3
Diffstat (limited to 'recipes/libdlo/kernel-module-udlfb/udlfb.h')
-rw-r--r-- | recipes/libdlo/kernel-module-udlfb/udlfb.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes/libdlo/kernel-module-udlfb/udlfb.h b/recipes/libdlo/kernel-module-udlfb/udlfb.h index f0508628f0..d587088913 100644 --- a/recipes/libdlo/kernel-module-udlfb/udlfb.h +++ b/recipes/libdlo/kernel-module-udlfb/udlfb.h @@ -50,6 +50,24 @@ static void dlfb_bulk_callback(struct urb *urb) } +static void dlfb_edid(struct dlfb_data *dev_info) +{ + int i; + int ret; + char rbuf[2]; + + for (i = 0; i < 128; i++) { + ret = + usb_control_msg(dev_info->udev, + usb_rcvctrlpipe(dev_info->udev, 0), (0x02), + (0x80 | (0x02 << 5)), i << 8, 0xA1, rbuf, 2, + 0); + /*printk("ret control msg edid %d: %d [%d]\n",i, ret, rbuf[1]);*/ + dev_info->edid[i] = rbuf[1]; + } + +} + static int dlfb_bulk_msg(struct dlfb_data *dev_info, int len) { |