Hi all,
I want to know, how to change the value of fb_fix.smem_len.
The default value here is 2488320=720x576x16/8x3. The information is as
follows:
-------------
#
./testfb
Success opening framebuffer device
/dev/fb/3
fb_fix_screeninfo
fb_fix.id="dm_vid1_fb"
fb_fix.smem_start=0x82400000
fb_fix.smem_len=2488320 /* 720x576x16/8x3 = 2488320 */
/* 720x576x16/8x2 = 1658880
*/
fb__fix.type=0
fb_fix.type_aux=0
fb_fix.visual=2
fb_fix.xpanstep=0
fb_fix.ypanstep=1
fb_fix.ywrapstep=0
fb_fix.line_length=1440
fb_fix.mmio_start=0xe1070200
fb_fix.mmio_len=0x180
fb_fix.accel=0
fb_fix.reserved[0]=0
fb_fix.reserved[1]=0
fb_fix.reserved[2]=0
fb_var_screeninfo
fb_var.xres=720
fb_var.yres=480
fb_var.xres_virtual=720
fb_var.yres_virtual=1728
fb_var.xoffset=0
fb_var.yoffset=480
fb_var.bits_per_pixel=16
fb_var.grayscale=0
fb_var.red=0
fb_var.green=0
fb_var.blue=0
fb_var.transp=0
fb_var.nonstd=0
fb_var.activate=0
fb_var.height=0
fb_var.width=0
fb_var.accel_flags=0
fb_var.pixclock=180000
fb_var.left_margin=0
fb_var.right_margin=0
fb_var.upper_margin=0
fb_var.lower_margin=0
fb_var.hsync_len=0
fb_var.vsync_len=0
fb_var.sync=0
fb_var.vmode=1
fb_var.rotate=0
fb_var.reserved[0]=0
fb_var.reserved[1]=0
fb_var.reserved[2]=0
fb_var.reserved[3]=0
fb_var.reserved[4]=0
Screen information show end
-------------
Obviously there are three buffers in /dev/fb/3.
I want it to be two buffers.
How could I do that?
--
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source