uint32_t src_w,
uint32_t src_h)
{
- unsigned int i, j;
+ __u32 j;
struct gralloc_drm_handle_t *drm_handle =
gralloc_drm_handle(handle);
- int plane_count = drm->plane_resources->count_planes;
+ __u32 plane_count = drm->plane_resources->count_planes;
struct gralloc_drm_plane_t *plane = drm->planes;
/* no supported planes for this handle */
int gralloc_drm_init_kms(struct gralloc_drm_t *drm)
{
drmModeConnectorPtr lvds, hdmi;
- int i, ret;
+ int ret;
if (drm->resources)
return 0;
if (!drm->plane_resources) {
ALOGD("no planes found from drm resources");
} else {
+ __u32 i;
ALOGD("supported drm planes and formats");
/* fill a helper structure for hwcomposer */
drm->planes = calloc(drm->plane_resources->count_planes,
/* if still no connector, find first connected connector and try it */
if (!drm->primary.active) {
+ int i;
for (i = 0; i < drm->resources->count_connectors; i++) {
drmModeConnectorPtr connector;