mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-27 22:48:47 +08:00
add option for platform px30
This commit is contained in:
@@ -952,6 +952,12 @@ static void DRM_DeleteDevice(GAL_VideoDevice *device)
|
|||||||
free(device);
|
free(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __TARGET_PX30__
|
||||||
|
static char* find_driver_for_device (const char *dev_name)
|
||||||
|
{
|
||||||
|
return strdup ("rockchip");
|
||||||
|
}
|
||||||
|
#else
|
||||||
static char* find_driver_for_device (const char *dev_name)
|
static char* find_driver_for_device (const char *dev_name)
|
||||||
{
|
{
|
||||||
char *driver;
|
char *driver;
|
||||||
@@ -961,9 +967,6 @@ static char* find_driver_for_device (const char *dev_name)
|
|||||||
char device_link_path[PATH_MAX + 1] = "";
|
char device_link_path[PATH_MAX + 1] = "";
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
#ifdef __TARGET_PX30__
|
|
||||||
return strdup ("rockchip");
|
|
||||||
#else
|
|
||||||
if (stat (dev_name, &file_attrs) < 0) {
|
if (stat (dev_name, &file_attrs) < 0) {
|
||||||
_ERR_PRINTF("NEWGAL>DRM: failed to call stat on %s\n", dev_name);
|
_ERR_PRINTF("NEWGAL>DRM: failed to call stat on %s\n", dev_name);
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -998,8 +1001,8 @@ static char* find_driver_for_device (const char *dev_name)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return strdup (driver + strlen ("/"));
|
return strdup (driver + strlen ("/"));
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static DrmDriverOps* load_external_driver (DrmVideoData* vdata,
|
static DrmDriverOps* load_external_driver (DrmVideoData* vdata,
|
||||||
const char* driver_name, int device_fd)
|
const char* driver_name, int device_fd)
|
||||||
|
|||||||
Reference in New Issue
Block a user