static int __media_get_media_fd(const char *filename, struct media_device *media)
{
- ssize_t num;
- int media_node;
- char *ptr;
-
ALOGD("%s: %s", __func__, filename);
media->fd = open(filename, O_RDWR, 0);
return ret;
}
-#else /* HAVE_LIBUDEV */
-
-struct udev;
-
-static inline int __media_udev_open(struct udev **udev) { return 0; }
-
-static inline void __media_udev_close(struct udev *udev) { }
-
-static inline int __media_get_devname_udev(struct udev *udev,
- struct media_entity *entity)
-{
- return -ENOTSUP;
-}
-
#endif /* HAVE_LIBUDEV */
/**
return fd;
}
-int exynos_subdev_get_node_num(const char *devname, int oflag, ...)
+int exynos_subdev_get_node_num(const char *devname, int oflag __unused, ...)
{
bool found = false;
int ret = -1;
struct stat s;
- va_list ap;
FILE *stream_fd;
char filename[64], name[64];
int i = 0;
va_list ap;
FILE *stream_fd;
char filename[64], name[64];
- long size;
int i = 0;
do {